类 AbstractSerialTrainer
java.lang.Object
org.dromara.northstar.strategy.tester.AbstractTester
org.dromara.northstar.strategy.trainer.AbstractSerialTrainer
- 所有已实现的接口:
ModuleTesterContext,RLAgentTrainingContext
public abstract class AbstractSerialTrainer
extends AbstractTester
implements RLAgentTrainingContext
串行训练器
- 作者:
- KevinHuangwl
-
字段概要
字段从类继承的字段 org.dromara.northstar.strategy.tester.AbstractTester
contractMgr, gatewayMgr, gatewayService, moduleMgr, moduleService -
构造器概要
构造器限定符构造器说明protectedAbstractSerialTrainer(ObjectManager<Gateway> gatewayMgr, ObjectManager<IModule> moduleMgr, IContractManager contractMgr, IGatewayService gatewayService, IModuleService moduleService) -
方法概要
修饰符和类型方法说明protected voidcreateModules(ModuleAccountDescription mad, ComponentAndParamsPair strategySettings, ContractSimpleInfo csi) protected voidcreateModules(TradeGateway tdGateway) protected TradeGatewaycreateSimGateway(MarketGateway mktGateway) protected TradeGatewaycreateSimGateway(MarketGateway mktGateway, String symbolName) protected voidvoidstart()protected List<ContractSimpleInfo>从类继承的方法 org.dromara.northstar.strategy.tester.AbstractTester
convertParams, createModule, load, pause, save, strategy, strategyParams, testPeriods从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.dromara.northstar.strategy.tester.ModuleTesterContext
precision, speed, symbolTestAmount, testSymbols从接口继承的方法 org.dromara.northstar.strategy.trainer.RLAgentTrainingContext
endDate, hasPerformanceConverged, maxTrainingEpisodes, preStartDate, startDate
-
字段详细资料
-
mrdMap
-
-
构造器详细资料
-
AbstractSerialTrainer
protected AbstractSerialTrainer(ObjectManager<Gateway> gatewayMgr, ObjectManager<IModule> moduleMgr, IContractManager contractMgr, IGatewayService gatewayService, IModuleService moduleService)
-
-
方法详细资料
-
start
public void start()- 覆盖:
start在类中AbstractTester
-
createSimGateway
-
resetModule
-
createModules
-
testContracts
-
createModules
protected void createModules(ModuleAccountDescription mad, ComponentAndParamsPair strategySettings, ContractSimpleInfo csi) -
createSimGateway
- 覆盖:
createSimGateway在类中AbstractTester
-