tecton.FeatureVector¶
-
class
tecton.
FeatureVector
(names, values, effective_times, slo_info=None)¶ FeatureVector Class.
A FeatureVector is a representation of a single feature vector. Usage of a FeatureVector typically involves extracting the feature vector using
to_pandas()
,to_dict()
, orto_numpy()
.Methods
Method generated by attrs for class FeatureVector.
Turns vector into a Python dict.
Turns vector into a numpy array.
Turns vector into a Pandas DataFrame.
-
__init__
(names, values, effective_times, slo_info=None)¶ Method generated by attrs for class FeatureVector.
-
to_dict
(return_effective_times=False)¶ Turns vector into a Python dict.
- Param
return_effective_times: Whether to return the effective time of the feature.
- Returns
A Python dict.
-
to_numpy
(return_effective_times=False)¶ Turns vector into a numpy array.
- Param
return_effective_times: Whether to return the effective time of the feature as part of the list.
- Returns
A numpy array.
-
to_pandas
(return_effective_times=False)¶ Turns vector into a Pandas DataFrame.
- Param
return_effective_times: Whether to return the effective time of the feature as part of the DataFrame.
- Returns
A Pandas DataFrame.
-