Skip to main content
Version: 0.8

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
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.

Was this page helpful?