c9a04b3cf7d85e3243912738c901bafb66219ad0,tests/test_utilities.py,,test_generate_predictions,#,325

Before Change


    Test generate predictions API with hashing and a threshold
    

    yield check_generate_predictions, False, False
    yield check_generate_predictions, True, False
    yield check_generate_predictions, False, True
    yield check_generate_predictions, True, True

After Change



def test_generate_predictions():

    for (use_feature_hashing,
         use_threshold,
         test_on_subset) in product([True, False], [True, False], [True, False]):
        yield check_generate_predictions, use_feature_hashing, use_threshold, test_on_subset


def check_generate_predictions_console(use_threshold=False):

    // create some simple classification data without feature hashing
    train_fs, test_fs = make_classification_data(num_examples=1000,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: EducationalTestingService/skll
Commit Name: c9a04b3cf7d85e3243912738c901bafb66219ad0
Time: 2018-02-11
Author: nmadnani@ets.org
File Name: tests/test_utilities.py
Class Name:
Method Name: test_generate_predictions


Project Name: EducationalTestingService/skll
Commit Name: 94f2c9d4bd78723440418b6ea914012d83b00bed
Time: 2019-10-18
Author: nmadnani@ets.org
File Name: tests/test_utilities.py
Class Name:
Method Name: test_generate_predictions


Project Name: scikit-optimize/scikit-optimize
Commit Name: 7743f789123b8ea206253ba9da98a6a9ed0f7a8f
Time: 2016-07-23
Author: manojkumarsivaraj334@gmail.com
File Name: skopt/tests/test_common.py
Class Name:
Method Name: