a09d1f3c4b979972c6594133c21b2783c9234482,mltsp/tests/test_featurize.py,,test_write_features_to_disk,#,50

Before Change


    with open(pjoin(cfg.FEATURES_FOLDER,
                    "test_featset01_features.csv")) as f:
        feat_cont = f.read()
    with open(pjoin(cfg.FEATURES_FOLDER,
                    "test_featset01_features_with_targets.csv")) as f:
        feat_class_cont = f.read()
    targets_list = list(np.load(pjoin(cfg.FEATURES_FOLDER,
                                      "test_featset01_targets.npy")))
    os.remove(pjoin(cfg.FEATURES_FOLDER,
                    "test_featset01_features.csv"))

After Change


    npt.assert_equal(list(featureset.coords), ["target", "name"])
    npt.assert_equal(featureset["f1"].values, [21.0, 23.4])
    npt.assert_equal(featureset["f2"].values, [0.15, 2.31])
    npt.assert_equal(featureset["target"].values, ["c1", "c2"])


@with_setup(copy_classification_test_data, remove_test_data)
def test_main_featurize_function():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: cesium-ml/cesium
Commit Name: a09d1f3c4b979972c6594133c21b2783c9234482
Time: 2015-11-10
Author: brettnaul@gmail.com
File Name: mltsp/tests/test_featurize.py
Class Name:
Method Name: test_write_features_to_disk


Project Name: pantsbuild/pants
Commit Name: d50d16232641f373c31cf4e0f8b6abdb74326f7d
Time: 2019-09-08
Author: ericarellano@me.com
File Name: tests/python/pants_test/init/test_logging.py
Class Name: LoggingTest
Method Name: test_utf8_logging


Project Name: pantsbuild/pants
Commit Name: 67910fe07f5a6d5e1e0ab89353467a4956499a03
Time: 2017-11-11
Author: dkatz@zendesk.com
File Name: contrib/buildrefactor/tests/python/pants_test/contrib/buildrefactor/test_buildozer.py
Class Name: BuildozerTest
Method Name: test_custom_command


Project Name: facebook/FAI-PEP
Commit Name: c68815a01e04ad21d0128b53235ab1bd915b6c6a
Time: 2018-09-07
Author: sf_wind@hotmail.com
File Name: benchmarking/platforms/ios/ios_platform.py
Class Name: IOSPlatform
Method Name: preprocess