8968646a38f0704029f699a50ef5ce4c87012655,examples/runner_example.py,,runner_example,#Any#Any#,13
Before Change
m2 = {"model": nx.extratrees(), "prediction_file": "extratrees.pred"}
m3 = {"model": nx.randomforest(), "prediction_file": "randomforest.pred"}
m4 = {"model": nx.mlpc(), "prediction_file": "mlpc.pred"}
m5 = {"model": nx.logisticPCA(), "prediction_file": "logisticPCA.pred"}
run_list = [m1, m2, m3, m4, m5]
// run all models and save results
runner = nx.Runner(run_list, splitter, save_dir, verbosity=1)
runner.run()
// Alternatively:
//
After Change
report["logistic"] = nx.backtest(nx.logistic(), data, verbosity=1)
report["extratrees"] = nx.backtest(nx.extratrees(), data, verbosity=1)
report["randomforest"] = nx.backtest(nx.randomforest(), data, verbosity=1)
report["mlpc"] = nx.backtest(nx.mlpc(), data, verbosity=1)
report["logisticPCA"] = nx.backtest(nx.logisticPCA(), data, verbosity=1)
// correlation of models with logistic regression
print("\nCorrelation:\n")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: kwgoodman/numerox
Commit Name: 8968646a38f0704029f699a50ef5ce4c87012655
Time: 2017-12-29
Author: kwgoodman@gmail.com
File Name: examples/runner_example.py
Class Name:
Method Name: runner_example
Project Name: reinforceio/tensorforce
Commit Name: 88caabc1afc64121fa68b91e9b6c6515d566c8ec
Time: 2017-06-11
Author: mi.schaarschmidt@gmail.com
File Name: examples/lab_main.py
Class Name:
Method Name: main
Project Name: reinforceio/tensorforce
Commit Name: 9000ad931722064fb2efe38649389a5154538ce4
Time: 2019-02-13
Author: alexkuhnle@t-online.de
File Name: examples/quickstart.py
Class Name:
Method Name: