Skip to content

Commit

Permalink
test: redesign grid lang
Browse files Browse the repository at this point in the history
  • Loading branch information
michiboo committed Jul 18, 2023
1 parent 02fbe55 commit c47e6d2
Show file tree
Hide file tree
Showing 5 changed files with 174 additions and 327 deletions.
269 changes: 101 additions & 168 deletions python/tests/test_framework/test_configs/cb.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,90 +49,56 @@
"--cb_explore 2"
]
},
[
{"*": [
{
"+": [
{
"--epsilon": [
0.1,
0.2,
0.3
]
}
]
},
{
"+": [
{
"--first": [
1,
2
]
}
]
},
{
"+": [
{
"--bag": [
5,
6,
7
]
}
]
},
{
"+": [
{
"--cover": [
1,
2,
3
]
}
]
},
{
"+": [
{
"--squarecb": [
"--gamma_scale 1000",
"--gamma_scale 10000"
]
}
]
},
{
"+": [
{
"--synthcover": [
""
]
}
]
},
{
"+": [
{
"--regcb": [
""
]
}
]
},
{
"+": [
{
"--softmax": [
""
]
}
]
}
]}
]],
{
"--epsilon": [
0.1,
0.2,
0.3
]
},
{
"--first": [
1,
2
]
},
{
"--bag": [
5,
6,
7
]
},
{
"--cover": [
1,
2,
3
]
},
{
"--squarecb": [
"--gamma_scale 1000",
"--gamma_scale 10000"
]
},
{
"--synthcover": [
""
]
},
{
"--regcb": [
""
]
},
{
"--softmax": [
""
]
}
],
"grids_expression": "g0 * (g1 + g2 + g3 + g4 + g5 +g6 + g7 + g8)",
"output": [
"--readable_model",
"-p"
Expand Down Expand Up @@ -188,6 +154,7 @@
]
}
],
"grids_expression": "g0 * g1",
"output": [
"--readable_model",
"-p"
Expand Down Expand Up @@ -241,90 +208,56 @@
"--cb_explore_adf"
]
},
[
{"*": [
{
"+": [
{
"--epsilon": [
0.1,
0.2,
0.3
]
}
]
},
{
"+": [
{
"--first": [
1,
2
]
}
]
},
{
"+": [
{
"--bag": [
5,
6,
7
]
}
]
},
{
"+": [
{
"--cover": [
1,
2,
3
]
}
]
},
{
"+": [
{
"--squarecb": [
"--gamma_scale 1000",
"--gamma_scale 10000"
]
}
]
},
{
"+": [
{
"--synthcover": [
""
]
}
]
},
{
"+": [
{
"--regcb": [
""
]
}
]
},
{
"+": [
{
"--softmax": [
""
]
}
]
}
]}
]],
{
"--epsilon": [
0.1,
0.2,
0.3
]
},
{
"--first": [
1,
2
]
},
{
"--bag": [
5,
6,
7
]
},
{
"--cover": [
1,
2,
3
]
},
{
"--squarecb": [
"--gamma_scale 1000",
"--gamma_scale 10000"
]
},
{
"--synthcover": [
""
]
},
{
"--regcb": [
""
]
},
{
"--softmax": [
""
]
}
],
"grids_expression": "g0 * (g1 + g2 + g3 + g4 + g5 +g6 + g7 + g8)",
"output": [
"--readable_model",
"-p"
Expand Down
2 changes: 2 additions & 0 deletions python/tests/test_framework/test_configs/classification.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
]
}
],
"grids_expression": "g0",
"output": [
"--readable_model",
"-p"
Expand Down Expand Up @@ -92,6 +93,7 @@
]
}
],
"grids_expression": "g0",
"output": [
"--readable_model",
"-p"
Expand Down
Loading

0 comments on commit c47e6d2

Please sign in to comment.