FeatureRecord

class vallenae.io.FeatureRecord(trai, features)[source]

Transient feature record in trfdb.

__init__(trai, features)

Methods

__init__(trai, features)

from_sql(row)

Create FeatureRecord from SQL row.

Attributes

trai

Transient recorder index

features

Feature dictionary (feature name -> value)

trai: int

Transient recorder index

features: dict[str, float]

Feature dictionary (feature name -> value)

classmethod from_sql(row)[source]

Create FeatureRecord from SQL row.

Parameters:

row (dict[str, Any]) – Dict of column names and values

Return type:

FeatureRecord