Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Error in Naive Bayes Model

dhavasa3
7 - Meteor

I get the following error while scoring using Naive Bayes model

 

predprob.naivebayes(mod.obj,newdata=new.data)

 

This is the case even if the test data and training data are exactly the same and there are no elements missing in the training data that are present in the test data

 

Please help resolve this. Workflow attached

 

5 REPLIES 5
benakesh
12 - Quasar

Hi @dhavasa3 ,

Can you attach sample data   or  export  the workflow  with data  .

dhavasa3
7 - Meteor

Sorry for missing the sample data. Please find attached.

dhavasa3
7 - Meteor

Sorry for missing the data. Please find attached.

benakesh
12 - Quasar

Hi @dhavasa3 ,

The score tool  runs without errors with  this configuration.  

clipboard_image_0.png

 

"Do Not Send Marketing Material"   is not good predictor  as  it has  same values for all records .  

 

The "Sales_Bins_Estimated"  formula needs to be changed  to check  max  values  in   Score_Bins+Score_1/2/3/4 and assign  bin  1/2/3/4 . 

 

dhavasa3
7 - Meteor

Thank you for the solution. It works.

Labels