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

Teradata® R Package User Guide

prodname
Teradata R Package
vrm_release
17.00
created_date
November 2020
category
User Guide
featnum
B700-4005-090K

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.