Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix merge conflicts, update to v4
  • Loading branch information
michael-phillips-data committed Apr 5, 2022
commit 9fb28e03d66b99aa8f8ae63d20d311ac52c09755
2 changes: 1 addition & 1 deletion example_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
print(f"out of {total_rows} total rows")
print(f"filling nans with 0.5")
live_data.loc[:, features] = live_data.loc[:, features].fillna(0.5)

else:
print("No nans in the features this week!")

Expand Down Expand Up @@ -158,4 +159,3 @@
2. Submit validation_predictions_{current_round}.csv to the diagnostics tool
3. Submit tournament_predictions_{current_round}.csv to the "Upload Predictions" button
''')

5 changes: 4 additions & 1 deletion example_model_advanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@

""" Things that we always do even if we've already trained """
gc.collect()

print("reading tournament_data")
live_data = pd.read_parquet('v4/live.parquet')
print("reading validation_data")
Expand All @@ -215,6 +216,7 @@
print(f"out of {total_rows} total rows")
print(f"filling nans with 0.5")
live_data.loc[:, feature_cols] = live_data.loc[:, feature_cols].fillna(0.5)

else:
print("No nans in the features this week!")

Expand Down Expand Up @@ -277,6 +279,7 @@

validation_data["ensemble_all"] = sum([validation_data[pred_col] for pred_col in pred_cols]).rank(pct=True)
live_data["ensemble_all"] = sum([live_data[pred_col] for pred_col in pred_cols]).rank(pct=True)

ensemble_cols.add("ensemble_all")

gc.collect()
Expand All @@ -290,4 +293,4 @@
validation_data["prediction"] = validation_data[best_pred_col].rank(pct=True)
live_data["prediction"] = live_data[best_pred_col].rank(pct=True)
save_prediction(validation_data["prediction"], f"validation_predictions_{current_round}")
save_prediction(live_data["prediction"], f"live_data_{current_round}")
save_prediction(live_data["prediction"], f"live_data_{current_round}")
You are viewing a condensed version of this merge commit. You can view the full changes here.