Skip to main content
Version: Beta 🚧

tecton.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
__init__(...)Method generated by attrs for class FeatureVector.
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__(...)​

Method generated by attrs for class FeatureVector.

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.

Was this page helpful?

Happy React is loading...