Description Usage Arguments Value
View source: R/validate-model.R
This function tests model predictions against a small sample of inputs with predictable outputs. For example, a sentiment analysis model that returns a sentiment of "bad" for "love" should not be used. We can also demand a minimum level of accuracy according to one or more metrics. Any failed assertions will raise an error. This validation approach could also be used to perform rudimentary checks for model bias (in the ethics sense).
1 | validate_model(random_forest, vectoriser, tfidf = NULL)
|
random_forest |
A model created with the randomForest package. |
vectoriser |
A vectoriser constructed with the text2vec package. |
tfidf |
A tfidf object constructed with the text2vec package. If no tfidf is NULL, then weighting will not be applied. |
The MD5 hash of the random_forest object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.