コード例 #1
0
def run_example(sigopt_width=1, sigopt_depth=100):
  boxscores_path = os.path.join(os.path.dirname(__file__), '../boxscores/all_boxscores.json')
  box_scores = read_data.read_box_scores(boxscores_path)

  historical_games = get_historical_games(box_scores)
  historical_games_training_set = get_historical_games(box_scores, max_date=SEASON_1314_END)

  bet_info_s15 = bet_reader.read_info()
  bet_info = bet_reader.transform_old_format(bet_info_s15)
  historical_games_by_tuple = evaluator.get_historical_games_by_tuple(historical_games)

  return run_sigopt(box_scores, historical_games, historical_games_training_set, bet_info, sigopt_width=sigopt_width, sigopt_depth=sigopt_depth)
コード例 #2
0
def run_example(user_token, client_token, client_id, sigopt_width=1, sigopt_depth=100):
    box_scores = read_data.read_box_scores("../boxscores/all_boxscores.json")
    historical_games = get_historical_games(box_scores)
    historical_games_training_set = get_historical_games(box_scores, max_date=SEASON_1314_END)

    bet_info_s15 = bet_reader.read_info()
    bet_info = bet_reader.transform_old_format(bet_info_s15)
    historical_games_by_tuple = evaluator.get_historical_games_by_tuple(historical_games)

    return run_sigopt(
        box_scores,
        user_token,
        client_token,
        client_id,
        historical_games,
        historical_games_training_set,
        bet_info,
        sigopt_width=sigopt_width,
        sigopt_depth=sigopt_depth,
    )
コード例 #3
0
def run_example(sigopt_width=1, sigopt_depth=100):
    boxscores_path = os.path.join(os.path.dirname(__file__),
                                  '../boxscores/all_boxscores.json')
    box_scores = read_data.read_box_scores(boxscores_path)

    historical_games = get_historical_games(box_scores)
    historical_games_training_set = get_historical_games(
        box_scores, max_date=SEASON_1314_END)

    bet_info_s15 = bet_reader.read_info()
    bet_info = bet_reader.transform_old_format(bet_info_s15)
    historical_games_by_tuple = evaluator.get_historical_games_by_tuple(
        historical_games)

    return run_sigopt(box_scores,
                      historical_games,
                      historical_games_training_set,
                      bet_info,
                      sigopt_width=sigopt_width,
                      sigopt_depth=sigopt_depth)
コード例 #4
0
def run_example(user_token,
                client_token,
                client_id,
                sigopt_width=1,
                sigopt_depth=100):
    box_scores = read_data.read_box_scores('../boxscores/all_boxscores.json')
    historical_games = get_historical_games(box_scores)
    historical_games_training_set = get_historical_games(
        box_scores, max_date=SEASON_1314_END)

    bet_info_s15 = bet_reader.read_info()
    bet_info = bet_reader.transform_old_format(bet_info_s15)
    historical_games_by_tuple = evaluator.get_historical_games_by_tuple(
        historical_games)

    return run_sigopt(box_scores,
                      user_token,
                      client_token,
                      client_id,
                      historical_games,
                      historical_games_training_set,
                      bet_info,
                      sigopt_width=sigopt_width,
                      sigopt_depth=sigopt_depth)