Start Free Trial

Alteryx Designer Desktop Discussions

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

Logistic Regression giving errors

alastairramlakan
5 - Atom

Hi,

 

I'm trying to setup a logistic regression model to predict which store orders would be returned (I've used the Superstore data to setup the model). See the Alteryx workflow attached.

 

I am getting the following two error messages:

- Error: Logistic Regression (23): Tool #214: Tool #30: The field "Fit_Stats" is not contained in the record.
- Error: Logistic Regression (23): Logistic Regression: The target variable must only have two unique values.

I'm not sure that I understand the first error message but for the second my target variable only has the values 'True' or 'False'.

 

Kind regards

 

Alastair

 

 

 

1 REPLY 1
BenMoss
ACE Emeritus
ACE Emeritus

Alteryx doesn't seem to like your target field being a bool.

 

Leave it as a V_String and it will work.

 

On a side note, I'm not sure 'orderID' should be considered as a predictor variable to whether an order is returned or not because they are all unique!

 

Ben

Labels
Top Solution Authors