9ca3f533cb6d467a1ebffda880137d3cc0ef9561,mltsp/tests/test_custom_feats.py,,test_extract_feats_in_docker_container,#,176

Before Change



def test_extract_feats_in_docker_container():
    Test custom feature extraction in Docker container
    tmp_dir_path = tempfile.mkdtemp()
    feats_known_dict_list = [{"feat1": 0.215, "feat2": 0.311}]
    ts_datafile_paths = [pjoin(DATA_PATH, "dotastro_215153.dat")]
    cft.add_tsdata_to_feats_known_dict(feats_known_dict_list,
                                       ts_datafile_paths, None)

After Change



def test_extract_feats_in_docker_container():
    Test custom feature extraction in Docker container
    tmp_dir_path = os.path.join(cfg.PROJECT_PATH, "tmp", str(uuid.uuid4())[:10])
    os.makedirs(tmp_dir_path)
    feats_known_dict_list = [{"feat1": 0.215, "feat2": 0.311}]
    ts_datafile_paths = [pjoin(DATA_PATH, "dotastro_215153.dat")]
    cft.add_tsdata_to_feats_known_dict(feats_known_dict_list,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: cesium-ml/cesium
Commit Name: 9ca3f533cb6d467a1ebffda880137d3cc0ef9561
Time: 2015-05-13
Author: a.crellinquick@gmail.com
File Name: mltsp/tests/test_custom_feats.py
Class Name:
Method Name: test_extract_feats_in_docker_container


Project Name: cesium-ml/cesium
Commit Name: 08ebd680e2a4dca6b00871e313a6a0fda8e6f618
Time: 2015-05-06
Author: a.crellinquick@gmail.com
File Name: mltsp/predict_class.py
Class Name:
Method Name: featurize_tsdata


Project Name: cesium-ml/cesium
Commit Name: 08ebd680e2a4dca6b00871e313a6a0fda8e6f618
Time: 2015-05-06
Author: a.crellinquick@gmail.com
File Name: mltsp/custom_feature_tools.py
Class Name:
Method Name: make_tmp_dir