FeatureAutoDeriveOnTrainCustom#

class howso.openapi.models.FeatureAutoDeriveOnTrainCustom#

Derive feature using the specified code. For each series, where each series is defined by series_id_features, the rows are processed in order, after being sorted by ordered_by_features. If series is not specified, processes the entire dataset. Referencing data in rows uses 0-based indexing, where the current row index is 0, the previous row’s is 1, etc. Specified code may do simple logic and numeric operations on feature values referenced via feature name and row offset.

Examples:

  • "#x 1" : Use the value for feature ‘x’ from the previously processed row (offset of 1, one lag value).

  • "(- #y 0 #x 1)" : Feature ‘y’ value from current (offset 0) row minus feature ‘x’ value from previous (offset 1) row.

derive_type: str#

The train derive operation type.

code: str#

Amalgam code describing how feature could be derived.

series_id_features: List[str] | None#

Feature name(s) of series for which to derive this feature. A series is the conjunction of all the features specified by this attribute.

ordered_by_features: List[str] | None#

Feature name(s) by which to order the series specified by series_id_features. Series values are order by the order of feature names specified by this attribute.