d554d2ce78425cc70f690ad76972949c94fc6a7e,tpot/tpot.py,,main,#,738

Before Change


    tpot.fit(training_features, training_classes)

    if args.VERBOSITY >= 1:
        print("\nTraining accuracy: {}".format(tpot.score(training_features, training_classes)))
        print("Holdout accuracy: {}".format(tpot.score(testing_features, testing_classes)))

    if args.OUTPUT_FILE != "":

After Change



    tpot.fit(training_features, training_classes)

    if args.VERBOSITY in [1, 2] and tpot._optimized_pipeline:
        print("\nTraining score: {}".format(max([tpot.hof.keys[x].wvalues[1] for x in range(len(tpot.hof.keys))])))
        print("Holdout score: {}".format(tpot.score(testing_features, testing_classes)))
    elif args.VERBOSITY >= 3 and tpot.hof:
        print("\nFinal Pareto front testing scores:")
        for pipeline_num, pipeline in enumerate(tpot.hof.items):
            print("{}\t{}\t{}".format(-tpot.hof.keys[pipeline_num].wvalues[0],
                                      tpot.hof_fitted_pipelines[str(pipeline)].score(testing_features, testing_classes),
                                      pipeline))

    if args.OUTPUT_FILE != "":
        tpot.export(args.OUTPUT_FILE)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: EpistasisLab/tpot
Commit Name: d554d2ce78425cc70f690ad76972949c94fc6a7e
Time: 2016-08-23
Author: rso@randalolson.com
File Name: tpot/tpot.py
Class Name:
Method Name: main


Project Name: scikit-optimize/scikit-optimize
Commit Name: 9cdd21160f4b4352b05f7b7ce9f0f63506c585c9
Time: 2017-04-17
Author: iaroslav-ai@users.noreply.github.com
File Name: benchmarks/bench_ml.py
Class Name: MLBench
Method Name: evaluate


Project Name: scikit-learn-contrib/DESlib
Commit Name: b741c84d29914319cff4ba9604a7c97281b00090
Time: 2020-02-07
Author: rafaelmenelau@gmail.com
File Name: deslib/static/single_best.py
Class Name: SingleBest
Method Name: fit