Alteryx Designer Desktop Discussions

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

Logistic Regression Error

galit_wernick
6 - Meteoroid

Any ideas what's going on?

 

Logistic Regression (5) Tool #127: Error in ROCR::prediction(predictions = probability_v, labels = actual_values) :

4 REPLIES 4
Charity_K_Wilson
10 - Fireball

In the Age category, you have a couple of null values.  Once I filtered those out, it ran just fine.  It looks great.

 

By the way, great analysis!  Would love to hear more about what the use case is.  

Inactive User
Not applicable

When I deselect Age-years it works. I think that is because there are nulls in there; just replace the nulls and it should be fine.

galit_wernick
6 - Meteoroid

Thank you!

BenMoss
ACE Emeritus
ACE Emeritus

Just as an FYI, as I know the two posters above have provided you with the solution.

 

There are a fair few ways you could deal with NULLs here. Use the filter tool as @galit_wernick and @Inactive User say, alternatively you could use the data cleanse tool to convert NULLs to Zeros.

 

You can also use the impute tool to replace NULLs with say the median, or average value.

 

Ben

Labels