community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

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

Logistic Regression Error

Meteoroid

Any ideas what's going on?

 

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

Alteryx Certified Partner

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.  

Alteryx Certified Partner

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.

Meteoroid

Thank you!

Highlighted
Alteryx Certified Partner
Alteryx Certified Partner

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 @ryan_lambert 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