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

Teradata® R Package User Guide

Product
Teradata R Package
Release Number
16.20
Published
February 2020
Language
English (United States)
Last Update
2022-05-02
dita:mapPath
qbt1519078127352.ditamap
dita:ditavalPath
Generic_no_ie_no_tempfilter.ditaval

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.