build_topic_explainer: build_topic_explainer

Description Usage Arguments Value

View source: R/build_topic_explainer.R

Description

For the chosen topic, this function creates an explainer that helps the user to better understand how the xgboost model creates predictions. The explainer is to be created before using the explain_comment function.

Usage

1
build_topic_explainer(full_labelled_dtm, full_labels, topic, model)

Arguments

full_labelled_dtm

Full labelled document-term matrix.

full_labels

Labelled matrix for labelled_dtm.

topic

The topic to explain.

model

Xgboost model

Value

The trained xgboost model and explainer for the chosen topic


rosepeglershare/TagR documentation built on Dec. 31, 2020, 3:12 a.m.