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

Teradata® Package for Python User Guide

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Teradata Package for Python
Release Number
20.00
Published
March 2024
Language
English (United States)
Last Update
2024-04-09
dita:mapPath
nvi1706202040305.ditamap
dita:ditavalPath
plt1683835213376.ditaval
dita:id
rkb1531260709148
Product Category
Teradata Vantage

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.