()
| 566 | |
| 567 | |
| 568 | def main(): |
| 569 | cVals = 10. ** np.arange(-3, 3) |
| 570 | d = {"classifier": "SVM", 'C': Options(cVals)} |
| 571 | # generate_params_combinations(d, update) |
| 572 | combos = generate_params_combinations(d, update) |
| 573 | |
| 574 | # add a fake outcome variable |
| 575 | for combo in combos: |
| 576 | combo['runtime'] = np.random.rand() * 10 |
| 577 | |
| 578 | # print out a dataframe so we can see that this worked |
| 579 | import pandas as pd |
| 580 | print pd.DataFrame.from_records(combos) # woot; it worked |
| 581 | |
| 582 | |
| 583 | if __name__ == '__main__': |
no test coverage detected