Skip to content
This repository was archived by the owner on May 16, 2025. It is now read-only.

Commit 438ab13

Browse files
committed
little changes regarding comments
1 parent 72f8246 commit 438ab13

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

app/utils/result_class.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ def populate_row(df_name, leader, res_as, res_t, res_h, res_mj, res_ag, s):
121121

122122
return new_row_1, new_row_2, new_row_pipelines, new_row_options_end
123123

124+
125+
# Function for adding the 'date' column in each dataframe
124126
def add_date(dfs, date):
125127
for df in dfs:
126128
df.insert(0, 'date', date)

app/webapp/frontend.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# Definition of the sidebar
2121
sidebar = html.Div(
2222
[
23-
html.H2("AutoML BenchMark", className="display-4"),
23+
html.H2("AutoML Benchmark", className="display-4"),
2424
html.Hr(),
2525
html.P(
2626
"Choose an Options", className="lead"
@@ -29,10 +29,10 @@
2929
[
3030
dbc.NavLink("Home", href="/", active="exact"),
3131
dbc.NavLink("OpenML Benchmark", href="/openml", active="exact"),
32-
dbc.NavLink("Kaggle BenchMark", href="/kaggle", active="exact"),
33-
dbc.NavLink("Test BenchMark", href="/test", active="exact"),
34-
dbc.NavLink("Past Results OpenML", href="/results-openml", active="exact"),
35-
dbc.NavLink("Past Results Kaggle", href="/results-kaggle", active="exact"),
32+
dbc.NavLink("Kaggle Benchmark", href="/kaggle", active="exact"),
33+
dbc.NavLink("Test Benchmark", href="/test", active="exact"),
34+
dbc.NavLink("Past OpenML Benchmark", href="/results-openml", active="exact"),
35+
dbc.NavLink("Past Kaggle Benchmark", href="/results-kaggle", active="exact"),
3636
],
3737
vertical=True,
3838
pills=True,

app/webapp/utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def get_dfs_from_timestamp(timestamp, type_bench): # Return a list of lists of d
108108
df.append(pd.read_csv('./results/'+ type_bench +'/'+ts+'/options_start.csv'))
109109
dfs.append(df)
110110

111-
return dfs # da 0 a 8
111+
return dfs
112112

113113

114114
# Function for managing the display of tables and graphs of the benchmarks
@@ -166,11 +166,13 @@ def get_dfs_to_compare(dfs_class, dfs_reg, options_start, type, all_list):
166166
else: reg = [None]
167167
time_limit = (pd.read_csv('./results/'+ type +'/'+past_bench+'/options_start.csv')).iloc[0].to_list()
168168

169-
# Check if the benchmark is comparable to the one selected initially
169+
170170
#if collections.Counter(cls) == collections.Counter(dfs_class) and collections.Counter(reg) == collections.Counter(dfs_reg) and collections.Counter(pip) != collections.Counter(options_end):
171171

172172
# Ora ho messo che posso comparare dei benchmark aventi gli stessi dataframe ma con start time limit diiferenti, conmfronti effettuati tutti sul primo benchmark scelto
173173
# Devo decidere se implementare il confronto tra tutti quelli selezionati
174+
175+
# Check if the benchmark is comparable to the one selected initially
174176
if collections.Counter(cls) == collections.Counter(dfs_class) and collections.Counter(reg) == collections.Counter(dfs_reg) and collections.Counter(time_limit) != collections.Counter(options_start):
175177
dfs_comapre.append({'label': past_bench, 'value': past_bench})
176178
return dfs_comapre

makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
install:
22
pip3 install -Ur requirements.txt
33
pip3 install -q -U git+https://github.com/mljar/mljar-supervised.git@master
4-
pip3 uninstall bokeh -y
54

65
remove:
76
pip3 uninstall -r requirements.txt

0 commit comments

Comments
 (0)