performance_classification()

オープン
#350 コメント 0 件 リアクション 2 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
r

調査の方向性

この issue では実装ファイル、テスト、エントリーポイントのいずれも指定されていません。まず caret::confusionMatrix の例と、プロジェクトに既存するパフォーマンス指標を確認してください。完了には、分類指標の合意された一式と、予測レベルおよび参照レベルの一貫した扱いが必要です。

索引モデルが issue の本文から書いたものです。

説明

Feature idea :fire:

We should add a function that computes typical classification indices derived from the confusion matrix. We could perhaps, as a start, wrap around the caret function, even though I think that the underlying maths are fairly simple.

pred <-kmeans(iris[1:4], 3)$cluster

caret::confusionMatrix(as.factor(pred), as.factor(as.numeric(iris$Species)))
#> Confusion Matrix and Statistics
#> 
#>           Reference
#> Prediction  1  2  3
#>          1 50  0  0
#>          2  0 48 14
#>          3  0  2 36
#> 
#> Overall Statistics
#>                                           
#>                Accuracy : 0.8933          
#>                  95% CI : (0.8326, 0.9378)
#>     No Information Rate : 0.3333          
#>     P-Value [Acc > NIR] : < 2.2e-16       
#>                                           
#>                   Kappa : 0.84            
#>                                           
#>  Mcnemar's Test P-Value : NA              
#> 
#> Statistics by Class:
#> 
#>                      Class: 1 Class: 2 Class: 3
#> Sensitivity            1.0000   0.9600   0.7200
#> Specificity            1.0000   0.8600   0.9800
#> Pos Pred Value         1.0000   0.7742   0.9474
#> Neg Pred Value         1.0000   0.9773   0.8750
#> Prevalence             0.3333   0.3333   0.3333
#> Detection Rate         0.3333   0.3200   0.2400
#> Detection Prevalence   0.3333   0.4133   0.2533
#> Balanced Accuracy      1.0000   0.9100   0.8500

Created on 2021-08-11 by the reprex package (v2.0.1)

One of the things that we could improve is the need to relevel / modify the input so that is has exactly the same levels and level types.

主要言語
R
スター
1.2k
フォーク
113
平均マージ
13時間 19分
マージ済み PR(30日)
31

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

easystats/performance のほかの issue

easystats/performance の issue をすべて見る

似ている issue

R の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。