スコアラーオブジェクトを返す関数を持っています カスタムSklearnスコアラーにどのように統合できますか?要するにsklearnカスタムスコアラー複数の指標を一度に
{ 'AUC_R': 0.6892943119440752,
'Accuracy': 0.9815382629183745,
'Error rate': 0.018461737081625407,
'False negative rate': 0.6211453744493393,
'False positive rate': 0.0002660016625103907,
'Lift value': 33.346741089307166,
'Precision J': 0.9772727272727273,
'Precision N': 0.9815872808592603,
'Rate of negative predictions': 0.0293063938288739,
'Rate of positive predictions': 0.011361068973307943,
'Sensitivity (true positives rate)': 0.3788546255506608,
'Specificity (true negatives rate)': 0.9997339983374897,
'f1_R': 0.9905775376404309,
'kappa': 0.5384745595159575}
私は理解しています。しかし、1回のパスでいくつかのスコアリングを得るには、http://scikit-learn.org/stable/modules/generated/sklearn.metrics.classification_report.htmlと同様に可能でしょうか? –
あなたは既にこれを実装していますので、私はあなたの質問を理解していません。 classification_reportはスコアラーではないため、スコアラーのコンテキストでは使用できません。 – lejlot
正しい。私は手動でループの列車テストを実装しました。私はスタッキングとブレンド(https://github.com/rushter/heamy)を試したいと思っていましたが、スコアラー機能とうまく統合されたsklearnパイプラインに移行しました。 –