createPredictor: Return a closure that can predict the success of a novel

Description Usage Arguments

View source: R/createPredictor.R

Description

Return a closure that can predict the success of a novel

Usage

1
createPredictor(vectorizer, tfidf, model, threshold = 0.5)

Arguments

vectorizer

a text2vec vectorizer

tfidf

tfidf instance used to train model

model

a glmnet model

threshold

specify the threshold for success


John-Poplett/novels documentation built on Jan. 28, 2020, 12:02 a.m.