Hi Sportspimp here, turns out that neuralnet no longer uses the compute command, just predict. I thought it worked but error message I thought I could research the fix but no luck. Back for more help
Model is labeled OU, using the command you gave me with predict instead of compute I get this
> OUPred<- predict(OU, new_data)$net.result, %>% sapply(denormalize)
Error: unexpected ',' in "OUPred<- predict(OU, new_data)$net.result,"
Can you figure out what "," is the problem,
Answer
- The questioner was satisfied with and accepted the answer, or
- The answer was evaluated as being 100% correct by the judge.
-
Predict() directly returns the predictions as a matrix (unlike compute(), which returns a list containing $net.result), so you don’t need $net.result.
-
Try removing $net.results.
-
It is hard to read code in comments. Please add your full code to the question so I can better assess where the issue may be.
-
I have to step away for an hour, I will respond as soon as I return. Thank you for your time and patience. I will return as fast as I can.
-
OK. No rush!
-
-
Im back, asking new question to allow me to insert code in a legible way
- answered
- 176 views
- $15.00
Related Questions
- Help structure linear mixed effects model random effects structure
- Two statistics proofs with regressions, any help much appreciated!
- Use the Desmos graphing calculator to find slope and y-intercept for the least-squares regression line for the dataset in the table
- How can I calculate incremental growth rate using a logarithm regression analysis? I have count data from 1992-2022 of a species and want to calculate the growth rate on a 3 year moving average.
- How do I start using a trained neural network in R . When I try to put new data I get an error message that "y" is missing. Of course its missing, "y" is the dependent variable I want predicted.
- Interpretation of signifcance of continous by continous regression with interaction term
- Mathematical modeling
No luck > OUPred <- predict(OU, new_data)$net.result %>% sapply(denormalize) Error in predict(OU, new_data)$net.result : $ operator is invalid for atomic vectors
> OUPred <- predict(OU, new_data_norm)$net.result %>% sapply(denormalize) Error: object 'new_data_norm' not found and class is nn