|
|
|
@ -4,10 +4,16 @@ from test import * # Assurez-vous d'avoir un fichier predict.py avec votre fonc
|
|
|
|
|
|
|
|
|
|
app = Flask(__name__)
|
|
|
|
|
|
|
|
|
|
colonnes = ['B_fighter','R_fighter','title_bout','B_avg_BODY_landed', 'B_avg_HEAD_landed', 'B_avg_TD_att', 'B_avg_TOTAL_STR_landed',
|
|
|
|
|
colonnes = ['B_fighter','R_fighter','title_bout',
|
|
|
|
|
'B_avg_BODY_landed', 'B_avg_HEAD_landed', 'B_avg_TD_att', 'B_avg_TOTAL_STR_landed',
|
|
|
|
|
'B_avg_opp_BODY_att', 'B_avg_opp_HEAD_landed', 'B_avg_opp_LEG_landed',
|
|
|
|
|
'B_avg_opp_SIG_STR_att', 'B_avg_opp_TOTAL_STR_att', 'R_avg_TD_att', 'R_avg_opp_GROUND_att',
|
|
|
|
|
'R_avg_opp_SIG_STR_landed', 'B_age', 'R_age','date','Winner','weight_class','B_Stance','R_Stance']
|
|
|
|
|
'B_avg_opp_SIG_STR_att', 'B_avg_opp_TOTAL_STR_att',
|
|
|
|
|
|
|
|
|
|
'R_avg_BODY_landed', 'R_avg_HEAD_landed', 'R_avg_TD_att', 'R_avg_TOTAL_STR_landed',
|
|
|
|
|
'R_avg_opp_BODY_att', 'R_avg_opp_HEAD_landed', 'R_avg_opp_LEG_landed',
|
|
|
|
|
'R_avg_opp_SIG_STR_att', 'R_avg_opp_TOTAL_STR_att',
|
|
|
|
|
|
|
|
|
|
'B_age', 'R_age','date','Winner','weight_class','B_Stance','R_Stance']
|
|
|
|
|
|
|
|
|
|
# Charger le DataFrame une seule fois pour économiser des ressources
|
|
|
|
|
df = pd.read_csv('archive/data.csv') # Assurez-vous de spécifier le bon chemin vers votre fichier de données
|
|
|
|
|