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

EvalML how to pass target for prediction explanations

IraWatt
17 - Castor
17 - Castor

Hi all,

I've created a LogisticRegressionClassifier classifier using the Alteryx Assisted modelling tool using data provided in Alteryx's logistic regression example. I'm trying to use the explain_predictions function from the EvalML library but I', unsure where the predicted class is specified to the model/pipeline. I've attached my workflow.

IraWatt_0-1651007924533.png

When I look at the prediction explanations all the class names are one. This makes me think the target feature is not being passed correctly.

IraWatt_1-1651007993297.png

Here is my target variable before the model: 

IraWatt_2-1651008058011.png

 

 

3 REPLIES 3
IraWatt
17 - Castor
17 - Castor

I asked the developers and got a great response: Unexpected argument y in explain predictions · Issue #3514 · alteryx/evalml (github.com)
essentially I needed to update my version of EvalML and use the parameter indices_to_explain.

Shifty
12 - Quasar

Nice solve, @IraWatt 

IraWatt
17 - Castor
17 - Castor

😂Thankyou Mr @Shifty 

Labels