Error Using responses Argument | Teradata Python Package - 17.00 - Error Using responses Argument in MLE Function NaïveBayesTextClassifierPredict - Teradata Package for Python

Teradata® Package for Python User Guide

Product
Teradata Package for Python
Release Number
17.00
Release Date
November 2021
Content Type
User Guide
Publication ID
B700-4006-070K
Language
English (United States)

The 'responses' argument in the ML Engine NaïveBayesTextClassifierPredict function (teradataml.mle.NaiveBayesTextClassifierPredict) is not supported in this release. Using this argument will result in an error.

For example:

>>> nbt_predict_out = NaiveBayesTextClassifierPredict(object = nbt_out,
                                                      newdata = complaints_tokens_test,
                                                      input_token_column = 'token',
                                                      doc_id_columns = 'doc_id',
                                                      model_type = "Bernoulli",
                                                      model_token_column = 'token',
                                                      model_category_column = 'category',
                                                      model_prob_column = 'prob',
                                                      newdata_partition_column = 'doc_id',
                                                      responses=['crash','no_crash'])
 
[Teradata Database] [Error 4382] Argument Responses is not defined in the function mapping definition.