AppliedPredictiveModeling | : exclamation : This is a read-only mirror of the CRAN R | Data Visualization library
kandi X-RAY | AppliedPredictiveModeling Summary
kandi X-RAY | AppliedPredictiveModeling Summary
:exclamation: This is a read-only mirror of the CRAN R package repository. AppliedPredictiveModeling — Functions and Data Sets for 'Applied Predictive Modeling'. Homepage: http://appliedpredictivemodeling.com/
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of AppliedPredictiveModeling
AppliedPredictiveModeling Key Features
AppliedPredictiveModeling Examples and Code Snippets
Community Discussions
Trending Discussions on AppliedPredictiveModeling
QUESTION
I am looking at the answers to the Chapter 6 exercise 3 questions from the Applied Predictive Modeling book Max Kuhn and I am getting an error in the imputation prediction step (despite following their answer exactly). The reproducible code and problem is as follows:
...ANSWER
Answered 2021-Mar-20 at 09:54You get that error because the boxcox transformation does not take in zero. If you check the help page for BoxCoxTrans it writes:
If any(y <= 0) or if length(unique(y)) < numUnique, lambda is not estimated and no transformation is applied.
So if your preProcess()
is run on a train set with no zeros in the columns, the boxcox transformation is applied, but it will not work on a test set with zeros.
In the book example above, most likely the seed was set with an older R version, so it works. If you are using a newer version of R, then it doesn't work. So if I check with your example:
QUESTION
I'm interested in learning tidymodels and have tried to apply it to some exercises in Appied Predictive Modeling. This is Exercise 6.2. I would like to specify a Partial Least Squares (PLS) model to the permeability data set.
I have the following code that works all the way up to the tune grid. I've modeled my analysis off of Julia Silge's - Lasso regression with tidymodels and The Office found here.
You can see my script and the tune_grid error message below.
...ANSWER
Answered 2020-Nov-12 at 22:12I am guessing that you may be using a Windows computer, because we currently have a bug in the CRAN version of tune for parallel processing on Windows. Try either:
- training sequentially without parallel processing, or
- installing the development version of tune where we have fixed this bug, via
devtools::install_github("tidymodels/tune")
You should see results like this:
QUESTION
I'm using tidymodels to fit a PLS model but I'm struggling to find the PLS variable importance scores or coefficients.
This is what I've tried so far; the example data is from AppliedPredictiveModeling package.
Modeling fitting ...ANSWER
Answered 2020-Oct-19 at 19:20You can directly tidy()
the output of the PLS model to get the coefficients:
QUESTION
I'm trying to do a PCR with tidymodels however i'm keep runing into this problem. I know there is a similar post but the solution over there, doesn't work form my case.
My data
...ANSWER
Answered 2020-Sep-20 at 10:21It is because workflow
needs a recipe specification that is not prepped.
So, in your code, removing the prep()
from the recipe specification will eliminate the error.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install AppliedPredictiveModeling
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page