API Reference

Attributes

class monad.ui.target_function.Attributes

Contains main entity attribute data sources defined in the pretrain phase.


Methods

Attributes.__getitem__(self, i)

def target_fn(history: Events, future: Events, attributes: Attributes, ctx: Dict) -> np.ndarray:
  ...
    
	# here we get attributes from the datasource customers
	city = attributes["customers"]

  ...

Parameters

i: str
Name of the attribute data source defined in pretrain YAML config.

Returns

DataSourceAttributes