56fb5f5ecfdaafc57b67db632004c6272f068e2e,seglearn/util.py,,check_ts_data,#,9
Before Change
"""
if type(X) is np.recarray:
_check_ts(X["ts"])
elif type (X) is list or type(X) is np.nda rray:
_check_ts(X)
else:
raise TypeError
def _check_ts(X):
Nvars = np.array([np.row_stack(X[i]).shape[1] for i in range(len(X))])
assert len(np.unique(Nvars)) == 1
After Change
Xt, Xs = get_ts_data_parts(X)
if Xs is not None:
assert len(Xt) == len(Xs)
N_tvars = np.array([np.row_stack(Xt[i]).shape[1] for i in range(len(Xt))])
assert len(np.unique(N_tvars)) == 1
def ts_stats(Xt, y, fs = 1.0, class_labels = None):
"""
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances Project Name: dmbee/seglearn
Commit Name: 56fb5f5ecfdaafc57b67db632004c6272f068e2e
Time: 2018-03-08
Author: david.mo.burns@gmail.com
File Name: seglearn/util.py
Class Name:
Method Name: check_ts_data
Project Name: keras-team/keras-preprocessing
Commit Name: 75c9e8cbcd9da21591cd5f8aaaa99205f48fa606
Time: 2021-01-19
Author: eli.osherovich@gmail.com
File Name: keras_preprocessing/image/image_data_generator.py
Class Name: ImageDataGenerator
Method Name: fit
Project Name: cesium-ml/cesium
Commit Name: e547a82c24b37c157bc9b40d2724a7b1fd0a7b0f
Time: 2017-04-17
Author: brettnaul@gmail.com
File Name: cesium/featurize.py
Class Name:
Method Name: save_featureset
Project Name: neuroailab/tnn
Commit Name: ec872ac8f3e8d62bb78819761cc33d5f2faf4580
Time: 2019-12-26
Author: anayebi@stanford.edu
File Name: tnn/cell.py
Class Name: GenFuncCell
Method Name: __init__