1cf1a4c00ba6404bb7387c722187a22357b2f193,mltsp/custom_feature_tools.py,,parse_tsdata_from_file,#Any#,355
Before Change
tme = []
with open(ts_datafile_path) as f:
all_lines = f.readlines()
for i in range(len(all_lines)):
if all_lines[i].strip() == "":
continue
else:
tme.append([x.strip() for x in all_lines[i].strip().split(",")])
return tme
def add_tsdata_to_feats_known_dict(features_already_known_list,
After Change
with open(ts_datafile_path) as f:
ts_data = np.loadtxt(f, delimiter=",")
ts_data = ts_data[:,:3].tolist() // Only using T, M, E; convert to list
for row in ts_data:
if len(row) < 2:
raise custom_exceptions.DataFormatError(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: cesium-ml/cesium
Commit Name: 1cf1a4c00ba6404bb7387c722187a22357b2f193
Time: 2015-02-13
Author: a.crellinquick@gmail.com
File Name: mltsp/custom_feature_tools.py
Class Name:
Method Name: parse_tsdata_from_file
Project Name: oddt/oddt
Commit Name: e626254b74ecb6dc71396c1b35237b53a5e35163
Time: 2017-08-23
Author: maciek@wojcikowski.pl
File Name: oddt/datasets.py
Class Name: pdbbind
Method Name: __init__
Project Name: pgmpy/pgmpy
Commit Name: f58745ab284f48b7ef4ce813f5f8cd26bdb3c0a8
Time: 2015-06-16
Author: ankurankan@gmail.com
File Name: pgmpy/inference/Sampling.py
Class Name: BayesianModelSampling
Method Name: forward_sample