View source: R/createPredictor.R
Return a closure that can predict the success of a novel
1 | createPredictor(vectorizer, tfidf, model, threshold = 0.5)
|
vectorizer |
a text2vec vectorizer |
tfidf |
tfidf instance used to train model |
model |
a glmnet model |
threshold |
specify the threshold for success |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.