caret :: train: określ parametry generowania modelu
Używamcaret
biblioteka w R do generowania modelu. Chcę wygenerowaćearth
(aka model MARS) i chcę określićdegree
parametr dla tej generacji modelu. Wedługdokumentacja (strona 11)earth
metoda obsługuje ten parametr.
Podczas określania parametru pojawia się następujący komunikat o błędzie:
<code>> library(caret) > data(trees) > train(Volume~Girth+Height, data=trees, method='earth', degree=1) Error in { : task 1 failed - "formal argument "degree" matched by multiple actual arguments" </code>
Jak mogę uniknąć tego błędu podczas określaniadegree
parametr?
<code>> sessionInfo() R version 2.15.0 (2012-03-30) Platform: x86_64-pc-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_GB.UTF-8 LC_COLLATE=en_GB.UTF-8 [5] LC_MONETARY=en_GB.UTF-8 LC_MESSAGES=en_GB.UTF-8 [7] LC_PAPER=C LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] earth_3.2-3 plotrix_3.4 plotmo_1.3-1 leaps_2.9 caret_5.15-023 [6] foreach_1.4.0 cluster_1.14.2 reshape_0.8.4 plyr_1.7.1 lattice_0.20-6 loaded via a namespace (and not attached): [1] codetools_0.2-8 compiler_2.15.0 grid_2.15.0 iterators_1.0.6 [5] tools_2.15.0 </code>