GSTT-CSC / MLOps

Framework for building ML apps
GNU General Public License v3.0
9 stars 5 forks source link

utilise configparser's ExtendedInterpolation functionality #62

Closed laurencejackson closed 1 year ago

laurencejackson commented 2 years ago

using the extended interpolation fucntionality will mean we can pass the data path from the config file straight into the entry point .e.g.

instead of:

[entry_points]
main = python3 train.py  /DATA/BarrettsPathLabelled_2.csv
tune = python3 tune.py  /DATA/BarrettsPathLabelled_2.csv

we can use:

[entry_points]
main = python3 train.py ${data:DATA_PATH}
tune = python3 tune.py ${data:DATA_PATH}

[data]
DATA_PATH = /DATA/BarrettsPathLabelled_2.csv

example implementation https://stackoverflow.com/questions/42839889/extended-interpolation-not-working-in-configparser

laurencejackson commented 1 year ago

Changes to the way projects are run since #92 means that this is no longer applicable