Description Usage Arguments Value References Examples
View source: R/machineLearning.R
Given two numeric vectors, obs and pred, of data, the performance is calculated.
1 | tradeModelSummary(data, lev = NULL, model = NULL)
|
data |
Data.frame. Required. A data frame with columns, obs and pred, for the observed and predicted outcomes. For metrics that rely on class probabilities, such as twoClassSummary, columns should also include predicted probabilities for each class. See the classProbs argument to R CRAN package caret function trainControl. |
lev |
Character vector of factors levels for the response. In regression cases, this would be NULL. . Default is NULL. |
model |
String. Default is NULL. Required. A character string for the model name (as taken from the method argument of train). |
profit
Zachary Mayer, Time series cross-validation 5, January 24, 2013 https://www.r-bloggers.com/2013/01/time-series-cross-validation-5/
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.