performance_accuracy: cross-validated R2 vs cor(pred, resp)

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

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

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

評価

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

調査の方向性

エントリーポイント performance_accuracy() から始め、線形モデルの精度が現在、テストサンプル間の相関をどのように使用しているかを調査します。その動作を、issue に記載された交差検証 R2 の式と比較します。完了には、メトリクスを置き換えるのか両方のメトリクスを公開するのか、また既存のメトリクスをどのように命名するのかについて、結論を出す必要があります。

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

説明

Enhancement :boom:

Currently, in performance_accuracy(), accuracy for linear models is indexed as the average correlation between the test sample predictions and responses. That's a potential index accuracy, but I think users might confuse it for the cross-validated R2.

The cross-validated R2 is 1 - mean((pred - resp)^2) / mean((resp - mean(resp))^2)

cor(pred, resp) is different because it standardizes the pred and resp variables, removing any misestiamates of the predicted mean or variance.

We should either replace the current metric with the cross-validated R2 or add both as an option. What do you think of "sample_R" as the name for the current metric? Does that convey the difference/potential issue?

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

環境構築

はじめの一歩

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

easystats/performance のほかの issue

easystats/performance の issue をすべて見る

似ている issue

R の issue をもっと見る

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

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