Hi,
I was using SPLS package to do multi-class classification and would require
probabilities to be output for each class.
In the vignette, the documentation does say that you can output
probabilities by requesting fit.type = "response", however I still only get
predicted classes, rather than the respective probabilities.

library(spls)
data(prostate)
# SPLSDA with eta=0.8 & 3 hidden components
f <- splsda( prostate$x, prostate$y, K=3, eta=0.8, scale.x=FALSE )
# Prediction on the training dataset
(pred.f <- predict( f, type="fit" ))
#predict probabilities
pred.f_withprobs <- predict( f, type="fit", fit.type = "response" )



--
View this message in context: 
http://r.789695.n4.nabble.com/SPLS-does-not-output-probabilities-for-predicted-classes-tp4503031p4503031.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to