FeatureVector
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()
, or to_numpy()
.
Methods​
Name | Description |
---|---|
to_dict(...) | Turns vector into a Python dict. |
to_numpy(...) | Turns vector into a numpy array. |
to_pandas(...) | Turns vector into a Pandas DataFrame. |
__init__(...)​
Parameters​
names
values
effective_times
slo_info
(Default:None
)
to_dict(...)​
Parameters​
return_effective_times
:False
Turns vector into a Python dict.
Parameters​
return_effective_times
: Whether to return the effective time of the feature.
Returns​
A Python dict.
to_numpy(...)​
Turns vector into a numpy array.
Parameters​
return_effective_times
: Whether to return the effective time of the feature as
part of the list. (Default: False
)
Returns​
A numpy array.
to_pandas(...)​
Turns vector into a Pandas DataFrame.
Parameters​
return_effective_times
: Whether to return the effective time of the feature as
part of the DataFrame. (Default: False
)
Returns​
A Pandas DataFrame.