Skip to main content
Version: 1.0

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) - Whether to return the effective time of the feature. Default: false

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) - Whether to return the effective time of the feature as part of the list. Default: false

Returns

array: A numpy array.

to_pandas(...)​

Turns vector into a Pandas DataFrame.

Parameters

  • return_effective_times (bool) - Whether to return the effective time of the feature as part of the DataFrame. Default: false

Returns

DataFrame: A Pandas DataFrame.

Was this page helpful?