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.