Mercurial > repos > ufz > dfpl_train
comparison json_train.py @ 0:e0bb949eac45 draft default tip
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/dfpl commit 66c6acfeff5441c36fba97787ddc5ee3d6a4a6ec
author | ufz |
---|---|
date | Thu, 19 Dec 2024 12:51:21 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e0bb949eac45 |
---|---|
1 import json | |
2 from sys import stdin | |
3 | |
4 d = json.load(stdin) | |
5 | |
6 d["py/object"] = "dfpl.options.Options" | |
7 d["outputDir"] = "./model/" | |
8 d["ecModelDir"] = "./autoencoder/" | |
9 | |
10 # <select> tags provide string values -> parse to boolean | |
11 d["trainAC"] = bool(d["trainAC"] == "true") | |
12 d["compressFeatures"] = bool(d["compressFeatures"] == "true") | |
13 | |
14 print(json.dumps(d)) |