API Reference

Events

class monad.ui.target_function.Events

Contains events from all event type data sources.

Methods

Events.__getitem__(self, i)

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

  ...
Parameters

i: str | int
Name of the attribute from the data source on index of the data source.

Returns

DataSourceEvents