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

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Teradata Package for R
Release Number
17.20
Published
March 2024
Language
English (United States)
Last Update
2024-04-09
dita:mapPath
efv1707506846369.ditamap
dita:ditavalPath
ayr1485454803741.ditaval
dita:id
nqx1518630623256
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.