rosacastillo commited on
Commit
73a0272
·
1 Parent(s): 3a4d653

adjusting the text of the metrics description

Browse files
Files changed (1) hide show
  1. tabs/metrics.py +10 -11
tabs/metrics.py CHANGED
@@ -239,14 +239,13 @@ def plot_tool_metrics(wins_df: pd.DataFrame, winning_selector: str) -> gr.Plot:
239
  yaxis_title = "Gross profit per trade (xDAI)"
240
 
241
 
242
- def get_trade_metrics_text(metric_name: str) -> gr.Text:
243
- metric_text = (
244
- "This "
245
- + metric_name
246
- + " metric is computed weekly and the graph shows the different statistical measures including "
247
- + "the min, max, median (line inside the box), mean(dotted line) and several percentiles:"
248
- + " the lower (first) quartile, q1, is the median of the bottom half, and the upper (third) quartile, q3, is the median of the top half."
249
- + " The whiskers correspond to the boxes' edges +/- 1.5 times the interquartile range (IQR: Q3-Q1)"
250
- )
251
-
252
- return gr.Text(label=metric_text)
 
239
  yaxis_title = "Gross profit per trade (xDAI)"
240
 
241
 
242
+ def get_trade_metrics_text() -> gr.Markdown:
243
+ metric_text = """
244
+ ## Description of the graph
245
+ These metrics are computed weekly. The statistical measures are:
246
+ * min, max values, 25th(q1), 50th(median), 75th(q2) percentiles
247
+ * the upper and lower fences to delimit possible outliers
248
+ * the average values as the dotten lines
249
+ """
250
+
251
+ return gr.Markdown(metric_text)