Main functions doesn't do any input checking on `data` argument
まだ誰も着手していません。
評価
調査の方向性
Start by reproducing the reported cases for the bootstraps and vfold_cv entry points with the invalid data values shown in the issue. Review how these functions currently handle those inputs and add input checking so invalid data produces an appropriate error rather than an empty result or an internal error; add tests for the examples.
索引モデルが issue の本文から書いたものです。
説明
sooo, there isn't much input checking for some of the main functions here in {rsample}, to the point of bootstraps(bootstraps) not returning an error 😬
bootstraps
library(rsample)
mat_cars <- as.matrix(mtcars)
bootstraps(mat_cars, times = 2)
#> # Bootstrap sampling
#> # A tibble: 2 × 2
#> splits id
#> <list> <chr>
#> 1 <split [32/11]> Bootstrap1
#> 2 <split [32/11]> Bootstrap2
bootstraps(1:10, times = 2)
#> # Bootstrap sampling
#> # A tibble: 0 × 2
#> # ℹ 2 variables: splits <list>, id <chr>
bootstraps(NULL)
#> # Bootstrap sampling
#> # A tibble: 0 × 2
#> # ℹ 2 variables: splits <list>, id <chr>
bootstraps(lm(mpg ~ disp, data = mtcars))
#> # Bootstrap sampling
#> # A tibble: 0 × 2
#> # ℹ 2 variables: splits <list>, id <chr>
vfold_cv
library(rsample)
mat_cars <- as.matrix(mtcars)
vfold_cv(mat_cars)
#> # 10-fold cross-validation
#> # A tibble: 10 × 2
#> splits id
#> <list> <chr>
#> 1 <split [28/4]> Fold01
#> 2 <split [28/4]> Fold02
#> 3 <split [29/3]> Fold03
#> 4 <split [29/3]> Fold04
#> 5 <split [29/3]> Fold05
#> 6 <split [29/3]> Fold06
#> 7 <split [29/3]> Fold07
#> 8 <split [29/3]> Fold08
#> 9 <split [29/3]> Fold09
#> 10 <split [29/3]> Fold10
vfold_cv(1:10)
#> Error in if (v > max_v) {: argument is of length zero
vfold_cv(NULL)
#> Error in if (v > max_v) {: argument is of length zero
vfold_cv(lm(mpg ~ disp, data = mtcars))
#> Error in if (v > max_v) {: argument is of length zero
- 主要言語
- 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 が 32 日前に担当しました。 オープン
難易度 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
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
HenrikBengtsson/R.matlab#61 ·
-
multi_class that used on tutorial has been deprecated on sklearn 1.5 version対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 72/100
microsoft/ML-For-Beginners#1059 · コメント 1 件 ·
-
easy first-contributor first-contributors good first issue help wanted r up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
fork-commit-merge/fork-commit-merge#8524 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
waldronlab/bedbaser#27 ·
-
documentation good first issue priority: low
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
Pascal-Kueng/dyadMLM#157 ·
メンテナーはふだん 1 日以内に返信