diff --git a/app/main.py b/app/main.py index 6b6d12a..6e4afc7 100644 --- a/app/main.py +++ b/app/main.py @@ -56,9 +56,28 @@ def set_benchmark(benchmark_id): @main.route("/config") @login_required def config(): + explanations = { + "score": "Deafult score if none is provided", + "platform": "Name of the platform running benchmarks", + "n_folds": "# of folds to split train & test samples", + "model": "Default model used if none is provided", + "stratified": "Wether or not to split data in a stratified way", + "source_data": "Type of datasets", + "discretize": "Discretize of not datasets before training", + "fit_features": "Wheter or not to include features names in fit", + "seeds": "Seeds used to train/test models", + "nodes": "Label for nodes in report", + "leaves": "Label for leaves in report", + "depth": "Label for depth in report", + "margin": "Margin to add to ZeroR classifier in binary classes " + "datasets", + "framework": "HTML Framework default used in be_flask command", + } os.chdir(current_user.benchmark.folder) env = dotenv.dotenv_values(".env") - return render_template("config.html", config_env=env) + return render_template( + "config.html", config_env=env, explanations=explanations + ) @main.route("/login", methods=["GET", "POST"]) diff --git a/app/static/css/main.css b/app/static/css/main.css index cae3be0..3772daa 100644 --- a/app/static/css/main.css +++ b/app/static/css/main.css @@ -48,4 +48,8 @@ body { color:yellow; } - +.custom-popover { + --bs-popover-border-color: var(--bs-primary); + --bs-popover-header-bg: var(--bs-primary); + --bs-popover-header-color: var(--bs-white); +} diff --git a/app/templates/config.html b/app/templates/config.html index a72386d..8696b84 100644 --- a/app/templates/config.html +++ b/app/templates/config.html @@ -13,7 +13,16 @@ {% for item, value in config_env.items() %} - {{ item }} + + {{ item }} + + {{ value }} {% endfor %} @@ -21,3 +30,10 @@ {% endblock content %} +{% block jscript %} + {{ super() }} + +{% endblock jscript %}