@@ -117,12 +117,15 @@ def _clean_prior(prior):
117117# Predefined systems
118118#####################
119119
120- def get_system (system_name ):
120+ def get_system (system_name , ** kwargs ):
121121 """
122122 Gets the system with the given name.
123123 If system_name is one of 'lorenz', 'thomas', 'rossler', or 'softrobot', uses the predefined system object.
124124 Otherwise, attempts to load a file.
125125
126+ For 'lorenz', 'thomas', 'rossler', and 'softrobot', the train_time, test_time, and dt parameters can be
127+ specified as keyword arguments.
128+
126129 Returns a rescomp.optimizer.System object
127130 """
128131
@@ -131,12 +134,23 @@ def get_system(system_name):
131134 # -test time
132135 # -dt
133136 if system_name == 'lorenz' :
134- return ChaosODESystem ('lorenz' , 6.6 , 8 , 0.01 )
137+ params = {'train_time' :6.6 , 'test_time' :8. , 'dt' :0.01 }
138+ params = {** params , ** kwargs }
139+ return ChaosODESystem ('lorenz' , ** params )
140+
135141 elif system_name == 'rossler' :
136- return ChaosODESystem ('rossler' , 165 , 120 , 0.01 )
142+ params = {'train_time' :165 , 'test_time' :120 , 'dt' :0.01 }
143+ params = {** params , ** kwargs }
144+ return ChaosODESystem ('rossler' , ** params )
145+
137146 elif system_name == 'thomas' :
138- return ChaosODESystem ('thomas' , 660 , 360 , 0.1 )
147+ params = {'train_time' :660 , 'test_time' :360 , 'dt' :0.1 }
148+ params = {** params , ** kwargs }
149+ return ChaosODESystem ('thomas' , ** params )
150+
139151 elif system_name == 'softrobot' :
152+ params = {'train_time' :165 , 'test_time' :80 , 'dt' :0.01 }
153+ params = {** params , ** kwargs }
140154 return SoftRobotSystem (165 , 80 , 0.01 )
141155 else :
142156 try :
0 commit comments