pesser / edflow

Reduce boilerplate code for your ML projects. TensorFlow and PyTorch.
https://edflow.readthedocs.io/
MIT License
25 stars 13 forks source link

negative numbers as commandline parameters #154

Closed pesser closed 4 years ago

pesser commented 5 years ago
(tfp) [pesser@compgpu2 edse]$ edsetup
(tfp) [pesser@compgpu2 edse]$ edflow -t edflow_project/config.yaml --param1 "-1.0" --param2 "1.0"

leads to the following config

[INFO] [main]: Training config: edflow_project/config.yaml
'1.0': --param2
batch_size: 10
dataset: edflow_project.dataset.Dataset
feature_dimension: 10
iterator: edflow_project.iterator.Iterator
model: edflow_project.model.Model
num_epochs: 1
num_example: 1000
param1: -1.0
param2: 1.0

Note the first line.