TradePredictionStrategy¶
- class scml.scml2020.TradePredictionStrategy(*args, predicted_outputs=None, predicted_inputs=None, add_trade=False, **kwargs)[source]¶
Bases:
object
A prediction strategy for expected inputs and outputs at every step
- Parameters:
predicted_inputs (-) – None for default, a number of an n_steps numbers giving predicted inputs
predicted_outputs (-) – None for default, a number of an n_steps numbers giving predicted outputs
- Provides:
expected_inputs
: n_steps vector giving the predicted inputs at every time-step. It defaults to the number of lines.expected_outputs
: n_steps vector giving the predicted outputs at every time-step. It defaults to the number of lines.input_cost
: n_steps vector giving the predicted input cost at every time-step. It defaults to catalog price.output_price
: n_steps vector giving the predicted output price at every time-step. It defaults to catalog price.
- Hooks Into:
- Abstract:
trade_prediction_init
: Called during init() to initialize the trade prediction.trade_prediction_step
: Called during step() to update the trade prediction.
- Remarks:
Attributes
section describes the attributes that can be used to construct the component (passed to its__init__
method).Provides
section describes the attributes (methods, properties, data-members) made available by this component directly. Note that everything provided by the bases of this components are also available to the agent (Check theBases
section above for all the bases of this component).Requires
section describes any requirements from the agent using this component. It defines a set of methods or properties/data-members that must exist in the agent that uses this component. These requirement are usually implemented as abstract methods in the componentAbstract
section describes abstract methods that MUST be implemented by any descendant of this component.Hooks Into
section describes the methods this component overrides callingsuper
() which allows other components to hook into the same method (by overriding it). Usually callbacks starting withon_
are hooked into this way.Overrides
section describes the methods this component overrides without callingsuper
effectively disallowing any other components after it in the MRO to call this method. Usually methods that do some action (i.e. not starting withon_
) are overridden this way.
Methods Summary
init
()step
()Will be called at the beginning of every step to update the prediction
Will be called to update expected_outputs, expected_inputs, input_cost, output_cost during init()
Will be called at the end of every step to update the prediction
Methods Documentation
- trade_prediction_before_step()[source]¶
Will be called at the beginning of every step to update the prediction
- Return type: