Description Usage Arguments Value
View source: R/build_topic_explainer.R
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.
1 | build_topic_explainer(full_labelled_dtm, full_labels, topic, model)
|
full_labelled_dtm |
Full labelled document-term matrix. |
full_labels |
Labelled matrix for labelled_dtm. |
topic |
The topic to explain. |
model |
Xgboost model |
The trained xgboost model and explainer for the chosen topic
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.