Spaces:
Running
Running
Andrea Maldonado
commited on
Commit
·
7dcfb88
1
Parent(s):
115a32d
Fixes import of config_fabric
Browse files- utils/config_fabric.py +17 -1
utils/config_fabric.py
CHANGED
@@ -13,7 +13,7 @@ import time
|
|
13 |
import shutil
|
14 |
import zipfile
|
15 |
import io
|
16 |
-
|
17 |
from feeed.feature_extractor import extract_features
|
18 |
|
19 |
st.set_page_config(layout='wide')
|
@@ -171,6 +171,22 @@ def create_objectives_grid(df, objectives, n_para_obj=2, method="combinatorial")
|
|
171 |
|
172 |
def set_generator_experiments(generator_params):
|
173 |
def handle_csv_file(uploaded_file,grid_option):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
# uploaded_file = st.file_uploader("Pick a csv-file containing feature values for features:", type="csv")
|
175 |
if uploaded_file is not None:
|
176 |
df = pd.read_csv(uploaded_file)
|
|
|
13 |
import shutil
|
14 |
import zipfile
|
15 |
import io
|
16 |
+
import sys
|
17 |
from feeed.feature_extractor import extract_features
|
18 |
|
19 |
st.set_page_config(layout='wide')
|
|
|
171 |
|
172 |
def set_generator_experiments(generator_params):
|
173 |
def handle_csv_file(uploaded_file,grid_option):
|
174 |
+
#TODO: This code is duplicated. Should be moved and removed.
|
175 |
+
def column_mappings():
|
176 |
+
column_names_short = {
|
177 |
+
'rutpt': 'ratio_unique_traces_per_trace',
|
178 |
+
'rmcv': 'ratio_most_common_variant',
|
179 |
+
'tlcv': 'trace_len_coefficient_variation',
|
180 |
+
'mvo': 'mean_variant_occurrence',
|
181 |
+
'enve': 'epa_normalized_variant_entropy',
|
182 |
+
'ense': 'epa_normalized_sequence_entropy',
|
183 |
+
'eself': 'epa_sequence_entropy_linear_forgetting',
|
184 |
+
'enself': 'epa_normalized_sequence_entropy_linear_forgetting',
|
185 |
+
'eseef': 'epa_sequence_entropy_exponential_forgetting',
|
186 |
+
'enseef': 'epa_normalized_sequence_entropy_exponential_forgetting'
|
187 |
+
}
|
188 |
+
|
189 |
+
return column_names_short
|
190 |
# uploaded_file = st.file_uploader("Pick a csv-file containing feature values for features:", type="csv")
|
191 |
if uploaded_file is not None:
|
192 |
df = pd.read_csv(uploaded_file)
|