Skip to content

Commit

Permalink
Avoid list / int division error in relimp
Browse files Browse the repository at this point in the history
Fix #399
  • Loading branch information
raphaelvallat authored Jan 29, 2024
1 parent ae09514 commit d26af45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pingouin/regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ def _relimp(S):
stats_relimp = {
"names": predictors,
"relimp": all_preds,
"relimp_perc": all_preds / sum(all_preds) * 100,
"relimp_perc": np.array(all_preds) / sum(all_preds) * 100,
}

return stats_relimp
Expand Down

0 comments on commit d26af45

Please sign in to comment.