tecton.FeatureVector

class tecton.FeatureVector(names: List[str], values: List[Union[int, str, bytes]])

FeatureVector Class.

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

__init__

Initialize self.

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__(names: List[str], values: List[Union[int, str, bytes]])None

Initialize self. See help(type(self)) for accurate signature.

to_dict()

Turns vector into a Python dict.

Returns

A Python dict.

to_numpy()

Turns vector into a numpy array.

Returns

A numpy array.

to_pandas()

Turns vector into a Pandas DataFrame.

Returns

A Pandas DataFrame.