Commit 35621ffd authored by Paulo Medeiros's avatar Paulo Medeiros
Browse files

Allow choosing metrics calc method in cluster app

parent 11e352b8
Pipeline #10368 failed with stage
in 0 seconds
......@@ -263,6 +263,34 @@ def generate_control_card():
),
html.Br(),
#
html.Div(
id="metrics_method_div",
children=[
html.Br(),
html.P("Metrics Calculation Method"),
dcc.Dropdown(
id="metrics_method",
options=[
{
"label": "Correlation-Aware Euclidean",
"value": "correlation_aware_euclidean",
},
{
"label": "Haversine + Manhattan",
"value": "haversine_plus_manhattan",
},
{
"label": "Haversine + Euclidean",
"value": "haversine_plus_euclidean",
},
],
value="correlation_aware_euclidean",
),
],
style={"display": "block", "text-align": "center"},
),
html.Br(),
#
html.Div(
id="optionals_div",
children=[
......@@ -604,6 +632,7 @@ def show_hide_max_num_refining_iter(outlier_rm_method):
State("eps", "value"),
State("date-picker-select", "date"),
State("cycle-select", "value"),
State("metrics_method", "value"),
State("outlier_rm_method", "value"),
State("max_num_refine_iter", "value"),
State("max_n_std_around_mean", "value"),
......@@ -624,6 +653,7 @@ def run_clustering_and_make_plot(
eps,
date,
cycle,
metrics_method,
outlier_rm_method,
max_num_refining_iter,
refine_max_std,
......@@ -665,7 +695,10 @@ def run_clustering_and_make_plot(
cycle_length=config.general.dtgs.cycle_length.freqstr,
),
),
"metrics": config.metrics,
"metrics": dict(
method=metrics_method,
optimize_mode=config.metrics.optimize_mode,
),
"clustering_method.%s"
% (method): dict(
eps=eps,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment