AlexOlza / estratificacion

Risk Stratification project to predict the healthcare needs of the Basque population (Osakidetza & BCAM)
0 stars 0 forks source link

TypeError in commpare.py #59

Closed AlexOlza closed 2 years ago

AlexOlza commented 2 years ago

This happens when we need to select a single model (when there is only one algorithm present in the model directory):

  File "/home/aolza/Desktop/estratificacion/modelEvaluation/compare.py", line 50, in <listcomp>
    selected=[available_models[i] for i in selected]

TypeError: only integer scalar arrays can be converted to a scalar index
AlexOlza commented 2 years ago

Solution: selected=[available_models[i] for i in selected.ravel()]