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

Teradata® Package for R User Guide

Product
Teradata Package for R
Release Number
17.00
Published
July 2021
Language
English (United States)
Last Update
2023-08-08
dita:mapPath
yih1585763700215.ditamap
dita:ditavalPath
ayr1485454803741.ditaval
dita:id
B700-4005
Product Category
Teradata Vantage

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

> nbt_predict_out1 <- td_naivebayes_textclassifier_predict_mle(newdata=complaints_tokens_test,
                                         newdata.partition.column='doc_id',
                                         object=nbt_out,
                                         input.token.column='token',
                                         doc.id.columns='doc_id',
                                         model.token.column='token',
                                         model.category.column='category',
                                         model.prob.column='prob',
                                         model.type='Bernoulli',
                                         terms = 'token',
                                         output.prob = TRUE,  
                                         responses = c('crash','no_crash'),
                                         newdata.sequence.column = 'token',
                                         object.sequence.column = 'token',
                                         newdata.order.column = 'doc_id',
                                         object.order.column = 'category')

> nbt_predict_out1
$`result`
Error in obtainRows(res, FALSE, params) : 
  [Version 16.20.0.18] [Session 50500] [Teradata Database] [Error 4382] Argument Responses is not defined in the function mapping definition.

This limitation is applicable only when tdplyr is connected to Vantage 1.1.

This limitation is not applicable when the connection is made to Vantage 1.1.1.