File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ There are three other ways to define custom settings/hyperparameters:
222
222
223
223
config = Config(config=' path_to_a_config.yaml' )
224
224
` ` `
225
- 3. You can pass a nested dictionary defining configuration settings to ` expfig.Config` .
225
+ 3. You can pass a nested or period-deliminated dictionary defining configuration settings to ` expfig.Config` .
226
226
For example:
227
227
` ` ` python
228
228
from expfig import Config
@@ -234,6 +234,19 @@ There are three other ways to define custom settings/hyperparameters:
234
234
}
235
235
config = Config(config_dict)
236
236
` ` `
237
+ or
238
+ ` ` ` python
239
+ from expfig import Config
240
+
241
+ config_dict = {
242
+ ' microgrid.config.scenario' : 1,
243
+ ' algo.sampler.type' : ' local' ,
244
+ ' algo.sampler.n_workers' : 4,
245
+ ' context.verbose' : True
246
+ }
247
+ config = Config(config_dict)
248
+ ` ` `
249
+ Both of the above methods result is identical ` Config` s.
237
250
238
251
# # Hyperparameter Resolution Order
239
252
You can’t perform that action at this time.
0 commit comments