Skip to content

ETS-Research-Repositories/Config-Parser-battery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Configuration Parser as a battery for deepclusteringtoolbox

install:

pip install git+https://github.com/ETS-Research-Repositories/Config-Parser-battery.git

example

# base:
echo "base config"
>>{'A': {'B': 1, 'C': True, 'E': False, 'F': [1, 2, 3], 'G': {1: 2, 3: 4}}}
echo "single variable assignment"
python demo.py A.B="A.B has been changed" A.C=False
>>{'A': {'B': 'A.B has been changed',
       'C': False,
       'E': False,
       'F': [1, 2, 3],
       'G': {1: 2, 3: 4}}}
echo "assigning a list"
python demo.py A.F="[1,2,3,4,5]"
>>{'A': {'B': 1, 'C': True, 'E': False, 'F': [1, 2, 3, 4, 5], 'G': {1: 2, 3: 4}}}
echo "assigning more complex variables"
python demo.py  trainer.lr:!seq="[{1:2},{'true':True}]" lr.yes=0.94 lr.no=False
>>{'A': {'B': 1, 'C': True, 'E': False, 'F': [1, 2, 3], 'G': {1: 2, 3: 4}},
 'lr': {'no': False, 'yes': 0.94},
 'trainer': {'lr': [{1: 2}, {'true': True}]}}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages