bt_estimate_news_leads: Generates predictions for relevance using the most recent Mrs...

View source: R/bt_estimate_news_leads.R

bt_estimate_news_leadsR Documentation

Generates predictions for relevance using the most recent Mrs Hudson model.

Description

Generates predictions for relevance using the most recent Mrs Hudson model.

Usage

bt_estimate_news_leads(
  leads.core.news,
  keep.results.ratio = 1,
  binary.prediction = T,
  return.both = F,
  conf.cutoff = 0.5
)

Arguments

leads.core.news

A dataframe of leads in the standard format. Requires acting.agency, act.title.en, act.description.en

keep.results.ratio

what fraction of the results you want to keep. 1 = keep all, 0 = discard all. the ones with lowest relevance prob will be discarded. If set to 1, the conf.cutoff value will be used to determine the binary.prediction.

binary.prediction

return results as a binary prediction or as their raw 0 ~ 1 confidence values.

return.both

return both binary and raw.score in a list.

conf.cutoff

threshold score for a doc to qualify as 'relevant', lower tends to mean more recall and less precision

Value

A vector of Mrs. Hudson's predictions.

References

www.globaltradealert.org


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