Skip to content

Instantly share code, notes, and snippets.

@blakewest
Created May 22, 2024 01:09
Show Gist options
  • Save blakewest/4317836c839a73cc1de8017ddd754806 to your computer and use it in GitHub Desktop.
Save blakewest/4317836c839a73cc1de8017ddd754806 to your computer and use it in GitHub Desktop.
A sample of one production model, and it's full `info.json` for the Robin Project (machine learning)
{
"adjuster_model_params": {},
"best_algorithm_params": {
"": [
{
"classifier": "BaggedLogisticRegression",
"training_duration_in_days": "3650",
"feature_selector": {
"group": "all",
"list": "manual",
"feature_list": "rfe"
}
}
]
},
"best_ensemble": {
"": "1_BaggedLogisticRegression"
},
"data_params": {
"career_stats": {
"run": {
"adjustment": "median_regression",
"adjustment_options": {
"adjustment_style": "linear",
"grouping": "Gender"
},
"contexts": [
"Surface"
],
"discount_options": {
"discount_span_days": 1095,
"discount_style": "linear"
},
"discounting": true,
"limit": null,
"rank_adjusting": false,
"raw_data_subfolder": "feb_2020_data"
}
},
"feature_selector": {
"init": {
"end_date": "2018-11-01",
"groups": [
"all"
]
},
"run": {
"include_women": true
}
},
"matchup_stats": {
"run": {
"choose_p1_by": "rank",
"context_options": {
"Surface": {
"alpha": 1,
"columns_to_keep": null,
"min_matches": 1
},
"use_context_adjuster": false
},
"min_matches": 5
}
},
"sport": "tennis"
},
"model_runner_params": {
"bet_strategy": "2019_10_27_201910_june2019data",
"init": {
"adjust_confidence": false,
"groups": [
{
"query_filter": "Date == Date",
"weight_samples": false,
"name": "all",
"algorithms": [
{
"classifier": "BaggedLogisticRegression",
"feature_selectors": [
{
"group": "all",
"list": "manual",
"feature_list": "rfe"
}
],
"training_duration_in_days": "3650",
"feature_transformations": [
{
"function": "bin",
"params": [
[
0,
0.1,
0.15,
0.2,
0.25,
0.3,
0.33,
0.36,
0.4,
0.45,
0.5,
0.55,
0.6,
0.65,
0.7,
0.8,
0.9,
1.0,
1.2,
1.5,
100
]
],
"column": "MoneyLineFractional_P1"
},
{
"function": "bin",
"params": [
[
0,
0.5,
0.65,
0.8,
0.9,
1.05,
1.2,
1.3,
1.4,
1.5,
1.6,
1.75,
1.9,
2.1,
2.3,
2.6,
3,
3.5,
4.5,
6,
100
]
],
"column": "MoneyLineFractional_P2"
}
],
"options": {
"outlier_removal": {
"detector_options": {
"behaviour": "new",
"contamination": 0.03,
"max_samples": 0.01
}
}
}
}
],
"classifiers": [
"BaggedLogisticRegression"
]
}
],
"include_women": true,
"matchup_stats_folder": "relevance_solely",
"sport": "tennis"
},
"run": {
"end_date": "2020-02-10",
"evaluation_metric": "risk_adjusted_return",
"model_name": "prod_2020_02_16",
"rank_by_cross_val": false,
"save": true,
"save_model": true,
"start_date": "2020-02-03",
"update_model_every": "2D",
"validation_segment": null,
"weight_samples": false
}
},
"results": {
"": [
{
"P1WinsProbBaggedLogisticRegression_relevance_solelymanual3650": -0.6619460812084501,
"classifier": "BaggedLogisticRegression",
"optimal_algorithm": "P1WinsProbBaggedLogisticRegression_relevance_solelymanual3650",
"optimal_params": {
"classifier": "BaggedLogisticRegression",
"training_duration_in_days": "3650",
"feature_selector": {
"group": "all",
"list": "manual",
"feature_list": "rfe"
}
}
}
]
},
"run_at": "2020-02-16 00:41:29.909253"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment