rtModClass-class | R Documentation |
rtemis Classification Model Class
rtemis Classification Model Class
R6 Class for rtemis Classification Models
rtemis::rtMod
-> rtModClass
fitted.prob
Training set probability estimates
predicted.prob
Testing set probability estimates
new()
Initialize rtModClass
object
rtModClass$new( mod.name = character(), y.train = numeric(), y.test = numeric(), x.name = character(), y.name = character(), xnames = character(), mod = list(), type = character(), gridsearch = NULL, parameters = list(), fitted = numeric(), fitted.prob = numeric(), se.fit = numeric(), error.train = list(), predicted = NULL, predicted.prob = NULL, se.prediction = NULL, error.test = NULL, varimp = NULL, question = character(), extra = list() )
mod.name
Character: Algorithm name
y.train
Training set output
y.test
Testing set output
x.name
Character: Feature set name
y.name
Character: Output name
xnames
Character vector: Feature names
mod
Trained model
type
Character: Type of model (Regression, Classification, Survival)
gridsearch
Grid search output
parameters
List of training parameters
fitted
Fitted values (training set predictions)
fitted.prob
Training set probability estimates
se.fit
Standard error of the fit
error.train
Training set error
predicted
Predicted values (Testing set predictions)
predicted.prob
Testing set probability estimates
se.prediction
Testting set standard error
error.test
Testing set error
varimp
Variable importance
question
Question the model is trying to answer
extra
List of extra model info
sessionInfo
R session info at time of training
plotROC()
plot ROC. Uses testing set if available, otherwise training
rtModClass$plotROC(theme = rtTheme, filename = NULL, ...)
theme
Theme to pass to plotting function
filename
Character: Path to file to save plot
...
Extra arguments to pass to plotting function
plotROCfitted()
Plot training set ROC
rtModClass$plotROCfitted( main = "ROC Training", theme = rtTheme, filename = NULL, ... )
main
Character: Main title
theme
Theme to pass to plotting function
filename
Character: Path to file to save plot
...
Extra arguments to pass to plotting function
plotROCpredicted()
plot testing set ROC
rtModClass$plotROCpredicted( main = "ROC Testing", theme = rtTheme, filename = NULL, ... )
main
Character: Main title
theme
Theme to pass to plotting function
filename
Character: Path to file to save plot
...
Extra arguments to pass to plotting function
plotPR()
plot Precision-Recall curve. Uses testing set if available, otherwise training
rtModClass$plotPR(theme = rtTheme, filename = NULL, ...)
theme
Theme to pass to plotting function
filename
Character: Path to file to save plot
...
Extra arguments to pass to plotting function
plotPRfitted()
Plot training set Precision-Recall curve.
rtModClass$plotPRfitted( main = "P-R Training", theme = rtTheme, filename = NULL, ... )
main
Character: Main title
theme
Theme to pass to plotting function
filename
Character: Path to file to save plot
...
Extra arguments to pass to plotting function
plotPRpredicted()
plot testing set Precision-Recall curve.
rtModClass$plotPRpredicted( main = "P-R Testing", theme = rtTheme, filename = NULL, ... )
main
Character: Main title
theme
Theme to pass to plotting function
filename
Character: Path to file to save plot
...
Extra arguments to pass to plotting function
clone()
The objects of this class are cloneable with this method.
rtModClass$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.