Skip to content

Commit

Permalink
fix(Evaluation): replaced np.object with object due to deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
muellerdo committed Feb 21, 2024
1 parent 6990dd5 commit 6d0df6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aucmedi/evaluation/performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def evalby_barplot(metrics, out_path, class_names, show=False, suffix=None):
#-----------------------------------------------------#
def evalby_rocplot(fpr_list, tpr_list, out_path, class_names, show=False, suffix=None):
# Initialize result dataframe
df_roc = pd.DataFrame(data=[fpr_list, tpr_list], dtype=np.object)
df_roc = pd.DataFrame(data=[fpr_list, tpr_list], dtype=object)
# Preprocess dataframe
df_roc = df_roc.transpose()
df_roc = df_roc.apply(pd.Series.explode)
Expand Down

0 comments on commit 6d0df6a

Please sign in to comment.