a5e0d49ea4234a6692f3504f24d558902f9a91c2,tslearn/datasets.py,UCR_UEA_datasets,load_dataset,#UCR_UEA_datasets#Any#,179

Before Change


                if os.path.exists(os.path.join(full_path, fname)):
                    os.remove(os.path.join(full_path, fname))
            extract_from_zip_url(url, target_dir=self._data_dir, verbose=False)
            data_train = numpy.loadtxt(os.path.join(full_path, fname_train), delimiter=",")
            data_test = numpy.loadtxt(os.path.join(full_path, fname_test), delimiter=",")
        X_train = to_time_series_dataset(data_train[:, 1:])
        y_train = data_train[:, 0].astype(numpy.int)
        X_test = to_time_series_dataset(data_test[:, 1:])

After Change


            data_train = numpy.loadtxt(os.path.join(full_path, fname_train), delimiter=",")
            data_test = numpy.loadtxt(os.path.join(full_path, fname_test), delimiter=",")
        except:
            return None, None, None, None
        X_train = to_time_series_dataset(data_train[:, 1:])
        y_train = data_train[:, 0].astype(numpy.int)
        X_test = to_time_series_dataset(data_test[:, 1:])
        y_test = data_test[:, 0].astype(numpy.int)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: rtavenar/tslearn
Commit Name: a5e0d49ea4234a6692f3504f24d558902f9a91c2
Time: 2018-05-21
Author: romain.tavenard@univ-rennes2.fr
File Name: tslearn/datasets.py
Class Name: UCR_UEA_datasets
Method Name: load_dataset


Project Name: nipy/dipy
Commit Name: 3a07a2952a118adfba640cf6aeb6c63721d79648
Time: 2014-11-19
Author: garyfallidis@gmail.com
File Name: dipy/core/optimize.py
Class Name: Optimizer
Method Name: evolution


Project Name: nipy/dipy
Commit Name: 3d8011f9ce1dba31df7c83f07dcf481a65926aa4
Time: 2014-11-21
Author: garyfallidis@gmail.com
File Name: dipy/core/optimize.py
Class Name: Optimizer
Method Name: evolution