giseldo commited on
Commit
b4a6b00
·
1 Parent(s): a4839f9

ultima versao

Browse files
Files changed (2) hide show
  1. app.py +4 -5
  2. requirements.txt +4 -2
app.py CHANGED
@@ -1,19 +1,18 @@
1
  import gradio as gr
2
  import pandas as pd
3
- import plotly.express as px
4
  import matplotlib.pyplot as plt
5
- import statistics
6
 
7
- LIBRARIES = ["ALOY", "APSTUD", "CLI", "TIMOB", "XD"]
8
 
 
9
 
10
  def grafico(list_output_mean, list_output_neosp, nome_projeto, pip_choices):
11
  list_output_mean = [3.152778, 3.375000, 1.423820, 1.052039, 1.297747, 1.224785, 2.250000, 2.375000, 1.540773, 1.847639, 1.491953, 1.052039, 0.983369, 1.669528,
12
  1.665236, 1.412554, 1.375000, 1.078326, 1.556330, 1.625000, 1.860515, 1.491953, 1.160944, 1.675966, 1.987661, 2.369099, 1.431867, 1.944742, 2.329399, 1.925429]
13
  list_output_NEOSP = [3.191631, 3.417342, 1.202562, 0.867979, 1.225224, 1.028501, 2.165318, 2.291910, 1.141041, 1.785504, 1.086850, 0.875381, 0.714992, 1.604599,
14
  1.833541, 0.860600, 1.393656, 1.152935, 1.364006, 1.647414, 1.527748, 1.236909, 1.403306, 1.655692, 1.770828, 1.937058, 0.861534, 1.341726, 1.904503, 1.449757]
15
- list_results = [["Median Regressor", statistics.mean(list_output_mean)], [
16
- "NEOSP-SVR Regressor", statistics.mean(list_output_NEOSP)]]
17
  fig, (ax1, ax2) = plt.subplots(1, 2)
18
  # ax1
19
  if "Median Regressor" in pip_choices:
 
1
  import gradio as gr
2
  import pandas as pd
 
3
  import matplotlib.pyplot as plt
4
+ import numpy as np
5
 
 
6
 
7
+ LIBRARIES = ["ALOY", "APSTUD", "CLI", "TIMOB", "XD"]
8
 
9
  def grafico(list_output_mean, list_output_neosp, nome_projeto, pip_choices):
10
  list_output_mean = [3.152778, 3.375000, 1.423820, 1.052039, 1.297747, 1.224785, 2.250000, 2.375000, 1.540773, 1.847639, 1.491953, 1.052039, 0.983369, 1.669528,
11
  1.665236, 1.412554, 1.375000, 1.078326, 1.556330, 1.625000, 1.860515, 1.491953, 1.160944, 1.675966, 1.987661, 2.369099, 1.431867, 1.944742, 2.329399, 1.925429]
12
  list_output_NEOSP = [3.191631, 3.417342, 1.202562, 0.867979, 1.225224, 1.028501, 2.165318, 2.291910, 1.141041, 1.785504, 1.086850, 0.875381, 0.714992, 1.604599,
13
  1.833541, 0.860600, 1.393656, 1.152935, 1.364006, 1.647414, 1.527748, 1.236909, 1.403306, 1.655692, 1.770828, 1.937058, 0.861534, 1.341726, 1.904503, 1.449757]
14
+ list_results = [["Median Regressor", np.mean(list_output_mean)], [
15
+ "NEOSP-SVR Regressor", np.mean(list_output_NEOSP)]]
16
  fig, (ax1, ax2) = plt.subplots(1, 2)
17
  # ax1
18
  if "Median Regressor" in pip_choices:
requirements.txt CHANGED
@@ -1,2 +1,4 @@
1
- plotly
2
- helpers
 
 
 
1
+ matplotlib
2
+ gradio
3
+ pandas
4
+ numpy