我有一个这样的数据框-
Metric Value Model
f1_measure 0.854053454 Logistic_Regression
auc 0.927363382 Logistic_Regression
precision 0.871229558 Logistic_Regression
f1_measure 0.957372309 Random_Forest
auc 0.994050551 Random_Forest
precision 0.974012599 Random_Forest
f1_measure 0.823266765 Naive_Bayes
auc 0.91573591 Naive_Bayes
precision 0.83156611 Naive_Bayes
现在我想创建另一个数据框-
Model_name Rank Metric
Random_Forest 1 auc
Logistic_Regression 2 auc
Naive_Bayes 3 auc
'auc'此数据框是使用用户提供的Metric== 创建的。我需要创建一个新的数据框,其排名基于用户给定的指标值,如上所示。
30秒到达战场
一只斗牛犬
慕哥6287543
相关分类