Skip to main content
Version: 1.2

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​

NameDescription
to_dict(...)Turns vector into a Python dict.
to_numpy(...)Turns vector into a numpy array.
to_pandas(...)Turns vector into a Pandas DataFrame.

to_dict(...)​

Turns vector into a Python dict.

Parameters

  • return_effective_times: bool = False Whether to return the effective time of the feature.

Returns

Dict[str,Union[int, str, bytes, float, list, dict, NoneType]]: A Python dict.

to_numpy(...)​

Turns vector into a numpy array.

Parameters

  • return_effective_times: bool = False Whether to return the effective time of the feature as part of the list.

Returns

array: A numpy array.

to_pandas(...)​

Turns vector into a Pandas DataFrame.

Parameters

  • return_effective_times: bool = False Whether to return the effective time of the feature as part of the DataFrame.

Returns

DataFrame: A Pandas DataFrame.

Was this page helpful?