56fb5f5ecfdaafc57b67db632004c6272f068e2e,seglearn/util.py,,check_ts_data,#Any#,9
Before Change
"""
if type(X) is np.recarray:
_check_ts(X["ts"])
elif type(X) is list o r type(X) is np.ndarray:
_check_ts(X)
else:
raise TypeError
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: 3
Non-data size: 9
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: prody/ProDy
Commit Name: 54239cd1ce143d387b24d7ae93bc4ebd61fa6f8a
Time: 2018-02-20
Author: jamesmkrieger@gmail.com
File Name: prody/utilities/catchall.py
Class Name:
Method Name: reorderMatrix
Project Name: dmbee/seglearn
Commit Name: b7eb836b40893bc25e782658cfec6f7bd6c4c451
Time: 2018-03-06
Author: david.mo.burns@gmail.com
File Name: seglearn/segment.py
Class Name: Segment
Method Name: transform