frncscp commited on
Commit
da6bf3e
·
1 Parent(s): e4ba9ea

Update pages/Entorno de Ejecución.py

Browse files
Files changed (1) hide show
  1. pages/Entorno de Ejecución.py +2 -1
pages/Entorno de Ejecución.py CHANGED
@@ -47,7 +47,8 @@ def _pca_predict(models, _img):
47
  fl_img =[img.flatten()]
48
  data = pca.transform(fl_img)
49
  for model in models:
50
- y_gorrito += model.predict_proba(data)[0][Categories.index("Patacon-True")]
 
51
  return [y_gorrito / len(models), raw_img]
52
 
53
  #def classic_ml_prediction(clfs, _img):
 
47
  fl_img =[img.flatten()]
48
  data = pca.transform(fl_img)
49
  for model in models:
50
+ prediction = model.predict_proba(data)
51
+ y_gorrito += prediction[0][Categories.index("Patacon-True")]
52
  return [y_gorrito / len(models), raw_img]
53
 
54
  #def classic_ml_prediction(clfs, _img):