def __init__(self, strategies = None, account = None, weight = None, normalizer = None, corrector = None): from marketsim.gen._out.strategy.account.inner._inner_virtualmarket import inner_VirtualMarket_ as _strategy_account_inner_inner_VirtualMarket_ from marketsim.gen._out.strategy.weight.array._array_identityl import array_IdentityL_ as _strategy_weight_array_array_IdentityL_ from marketsim.gen._out.strategy.weight.f._f_atanpow import f_AtanPow_Float as _strategy_weight_f_f_AtanPow_Float from marketsim.gen._out.strategy._empty import Empty_ as _strategy_Empty_ from marketsim.gen._out.strategy.weight.trader._trader_traderefficiencytrend import trader_TraderEfficiencyTrend_Float as _strategy_weight_trader_trader_TraderEfficiencyTrend_Float from marketsim import deref_opt self.strategies = strategies if strategies is not None else [deref_opt(_strategy_Empty_())] self.account = account if account is not None else deref_opt(_strategy_account_inner_inner_VirtualMarket_()) self.weight = weight if weight is not None else deref_opt(_strategy_weight_trader_trader_TraderEfficiencyTrend_Float()) self.normalizer = normalizer if normalizer is not None else deref_opt(_strategy_weight_f_f_AtanPow_Float()) self.corrector = corrector if corrector is not None else deref_opt(_strategy_weight_array_array_IdentityL_()) MultiarmedBandit2_Impl.__init__(self)
def __init__(self, strategies=None, account=None, weight=None, normalizer=None, corrector=None): from marketsim.gen._out.strategy.account.inner._inner_virtualmarket import ( inner_VirtualMarket_ as _strategy_account_inner_inner_VirtualMarket_, ) from marketsim.gen._out.strategy.weight.array._array_identityl import ( array_IdentityL_ as _strategy_weight_array_array_IdentityL_, ) from marketsim.gen._out.strategy.weight.f._f_atanpow import ( f_AtanPow_Float as _strategy_weight_f_f_AtanPow_Float, ) from marketsim.gen._out.strategy._empty import Empty_ as _strategy_Empty_ from marketsim.gen._out.strategy.weight.trader._trader_traderefficiencytrend import ( trader_TraderEfficiencyTrend_Float as _strategy_weight_trader_trader_TraderEfficiencyTrend_Float, ) from marketsim import deref_opt self.strategies = strategies if strategies is not None else [deref_opt(_strategy_Empty_())] self.account = account if account is not None else deref_opt(_strategy_account_inner_inner_VirtualMarket_()) self.weight = ( weight if weight is not None else deref_opt(_strategy_weight_trader_trader_TraderEfficiencyTrend_Float()) ) self.normalizer = normalizer if normalizer is not None else deref_opt(_strategy_weight_f_f_AtanPow_Float()) self.corrector = corrector if corrector is not None else deref_opt(_strategy_weight_array_array_IdentityL_()) MultiarmedBandit2_Impl.__init__(self)
def reset(self): MultiarmedBandit2_Impl.reset(self)
def bind_impl(self, ctx): MultiarmedBandit2_Impl.bind_impl(self, ctx)