diff --git a/app/app.db b/app/app.db index cacd22d..39f99b2 100644 Binary files a/app/app.db and b/app/app.db differ diff --git a/app/results/main_select.py b/app/results/main_select.py index 045eb42..05b9d6a 100644 --- a/app/results/main_select.py +++ b/app/results/main_select.py @@ -106,6 +106,7 @@ def report(file_name): os.chdir(current_user.benchmark.folder) back = request.args.get("url") or "" back_name = request.args.get("url_name") or "" + app_config = dotenv_values(".env") with open(os.path.join(Folders.results, file_name)) as f: data = json.load(f) try: @@ -121,6 +122,7 @@ def report(file_name): summary=summary, back=back, back_name=back_name, + app_config=app_config, ) diff --git a/app/results/templates/_table_dataset.html b/app/results/templates/_table_dataset.html new file mode 100644 index 0000000..f291047 --- /dev/null +++ b/app/results/templates/_table_dataset.html @@ -0,0 +1,76 @@ +
Model | +Metric | +Platform | +Stratified | +Samples | +Features | +Classes | +{{ app_config.nodes }} | +{{ app_config.leaves }} | +{{ app_config.depth }} | +Score | +Time | +Hyperparameters | ++ |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ parts[2] }} | +{{ parts[1] }} | +{{ parts[3] }} | +{{ 'True' if stratified =='1' else 'False' }} | +{{ '{:,}'.format(item.samples) }} | +{{"%d" % item.features }} | +{{"%d" % item.classes }} | +{{ '{:,.2f}'.format(item.nodes) }} | +{{ '{:,}'.format(item.leaves) }} | +{{ '{:,}'.format(item.depth) }} | +{{"%.6f±%.4f" % (item.score, item.score_std)}} | +{{"%.6f±%.4f" % (item.time, item.time_std)}} | +{{ item.hyperparameters }} | ++ + | +
Dataset | diff --git a/app/results/templates/_table_report.html b/app/results/templates/_table_report.html index 6bd2d7c..c3101a3 100644 --- a/app/results/templates/_table_report.html +++ b/app/results/templates/_table_report.html @@ -52,7 +52,7 @@
---|
{{ app_config.leaves }} | +{{ app_config.depth }} | Hyperparameters | - {% for item in data.results %}|||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{"%d" % item.features}} | {{"%d" % item.classes}} | {{ '{:,.2f}'.format(item.nodes) }} | +{{ '{:,}'.format(item.leaves) }} | +{{ '{:,}'.format(item.depth) }} | {{"%.6f±%.4f" % (item.score, item.score_std)}} | {{ item.symbol|safe }} | {{"%.6f±%.4f" % (item.time, item.time_std)}} | diff --git a/app/results/templates/dataset.html b/app/results/templates/dataset.html index 3421279..019a917 100644 --- a/app/results/templates/dataset.html +++ b/app/results/templates/dataset.html @@ -3,44 +3,9 @@
File Name | -Samples | -Features | -Classes | -{{ app_config.nodes }} | -{{ app_config.leaves }} | -{{ app_config.depth }} | -Score | -Time | -Hyperparameters | -
---|---|---|---|---|---|---|---|---|---|
- {% set url = url_for(request.endpoint, **request.view_args)|urlencode %} - {{ file_name }} - | -{{ '{:,}'.format(item.samples) }} | -{{"%d" % item.features}} | -{{"%d" % item.classes}} | -{{ '{:,.2f}'.format(item.nodes) }} | -{{ '{:,}'.format(item.leaves) }} | -{{ '{:,}'.format(item.depth) }} | -{{"%.6f±%.4f" % (item.score, item.score_std)}} | -{{"%.6f±%.4f" % (item.time, item.time_std)}} | -{{ item.hyperparameters }} | -