bt_update_news_classifier: Pulls news leads from the Ricardomain database and trains a...

View source: R/bt_update_news_classifier.R

bt_update_news_classifierR Documentation

Pulls news leads from the Ricardomain database and trains a new Mrs Hudson model based on these leads, then saves it.

Description

Pulls news leads from the Ricardomain database and trains a new Mrs Hudson model based on these leads, then saves it.

Usage

bt_update_news_classifier(
  db.connection = NULL,
  show.text.summary = T,
  create.training.testing.split = F,
  training.testing.split = 0.9,
  mrs.h.method = "d2v",
  mrs.h.gen.alg = "XGB",
  use.tf.idf = TRUE
)

Arguments

db.connection

Database connection, should default to the correct one.

show.text.summary

Do you want to see a summary of the input training data wordcounts?

create.training.testing.split

Do you want to test the model on part of the training data and see its precision and recall?

training.testing.split

Proportion to split for training and testing.

Value

Void. Returns a summary of the precision and recall of the model if create.training.testing.split=T

References

www.globaltradealert.org


global-trade-alert/gtabastiat documentation built on June 4, 2023, 6:40 a.m.