Feature Request: `kfold_cv()` Wrapper Function for Terminology Consistency and Usability
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 45/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- r
- 領域
- data, machine-learning
調査の方向性
Start by locating the existing vfold_cv() entry point and its documentation in rsample, then check how exported functions and aliases are tested. Define done as a documented, exported kfold_cv() interface that accepts the requested arguments and preserves vfold_cv() behavior, with coverage for the wrapper and its k argument.
索引モデルが issue の本文から書いたものです。
説明
Dear Tidymodels Development Team,
First, thank you for the excellent work on the rsample package and the entire tidymodels ecosystem. Your contributions have significantly improved accessibility and usability for data science and machine learning in R, and your consistent, high-quality work is truly appreciated.
Feature Request: kfold_cv() Wrapper Function
I would like to suggest adding a kfold_cv() function as a wrapper for vfold_cv(). This request is aimed at enhancing both terminology consistency and user accessibility, as "k-fold cross-validation" is overwhelmingly the more common term in the literature and among practitioners.
It could simply be implemented as:
#' @rdname vfold_cv
#' @param v,k The number of partitions of the data set
#' @export
kfold_cv(data, k = 10, repeats = 1, strata = NULL, breaks = 4, pool = 0.1, ...) {
vfold_cv(data = data, v = k, repeats = repeats, strata = strata, breaks = breaks, pool = pool, ...)
}
Rationale
-
Standard Terminology Usage: The term "k-fold cross-validation" is widely recognized as the standard across numerous publications and textbooks on machine learning and statistics. Here are some authoritative sources where the term "k-fold cross-validation" is used consistently:
- Hastie, Tibshirani, and Friedman (2009) in The Elements of Statistical Learning specifically refer to "k-fold cross-validation" (p. 222, Springer) as a foundational resampling method.
- James, Witten, Hastie, and Tibshirani (2013) in An Introduction to Statistical Learning also use "k-fold cross-validation" (p. 176, Springer), reflecting the term’s adoption in foundational texts.
- Goodfellow, Bengio, and Courville (2016) in Deep Learning further emphasize "k-fold cross-validation" as a core method in machine learning (MIT Press, p. 120).
The popularity of the term "k-fold" over "v-fold" is also evident in applied contexts, including online courses, tutorials, and the documentation of other machine learning libraries such as scikit-learn in Python, where
KFoldis explicitly named. -
User Familiarity and Accessibility: Most users, especially those new to tidymodels, might be more familiar with the term "k-fold" and may not immediately recognize "v-fold" as equivalent. This can lead to confusion, especially for those coming from other languages or tools where "k-fold" is standard. A
kfold_cv()function could help bridge this gap, enhancing the user experience without altering any functionality. -
Maintaining Code Consistency and Readability: Many users adapt code from textbooks or other languages, where
kis typically the identifier for the number of folds. Allowing bothvfold_cv()andkfold_cv()would support more readable code for these users and may help streamline transitions for those migrating workflows into R and tidymodels.
Thank you for considering this suggestion, and for your commitment to improving the tools available to the R and data science communities. Your work has set a high standard, and small enhancements like this can make an even greater impact on usability.
- 主要言語
- R
- スター
- 343
- フォーク
- 68
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
tidymodels/rsample のほかの issue
-
tidy-dev-day :nerd_face:
難易度 1/5 1〜3時間 初心者へのやさしさ 92/100
tidymodels/rsample#611 ·
-
repeats attribute is hardcoded to 1 for group_vfold_cv()対応中かも @taekop が 26 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
tidymodels/rsample#607 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 68/100
tidymodels/rsample#618 ·
-
documentation
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
tidymodels/rsample#608 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
tidymodels/rsample#600 ·
tidymodels/rsample の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
urbio-ecology/urbioconnect#182 ·
メンテナーはふだん 1 日以内に返信
-
area: future priority: high type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Bioconductor/BiocCheck#264 ·
-
Length 1 columns are written as scalars対応中かも @lazappi が 1 日前に担当しました。 オープンbug triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信