cesium-ml / cesium

Machine Learning Time-Series Platform
Other
670 stars 101 forks source link

Featurization exception does not explain error #179

Closed stefanv closed 8 years ago

stefanv commented 8 years ago
In [10]: featurize.featurize_time_series([0,1], [0,1], errors=[0.1, 0.1])
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-10-8937c844ee5c> in <module>()
----> 1 featurize.featurize_time_series([0,1], [0,1], errors=[0.1, 0.1])

/home/stefan/akad/projekte/cesium/cesium/cesium/featurize.py in featurize_time_series(times, values, errors, features_to_use, targets, meta_features, labels, custom_script_path, custom_functions, use_celery)
    178         meta_feature_dicts = []
    179         for t, m, e, label in zip(times, values, errors, labels):
--> 180             ts = TimeSeries(t, m, e, meta_features=meta_features.loc[label])
    181             feature_dict = ft.featurize_single_ts(ts, features_to_use,
    182                                                   custom_script_path=custom_script_path,

/home/stefan/akad/projekte/cesium/cesium/cesium/time_series.py in __init__(self, t, m, e, target, meta_features, name, path, channel_names)
    167                 e = _default_values_like(m, value=DEFAULT_ERROR_VALUE)
    168         else:
--> 169             raise ValueError("...")
    170 
    171         self.time = t

ValueError: ...