Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Model Comparison Tool Error

Swest4190
6 - Meteoroid

I just downloaded the model comparison tool from the gallery and i receive the below error when i run it in a workflow i built trying to compare a decision tree and a forest model. 

 

Capture 1.PNG

 

I expanded the model comparison tool to check out the background workflow to confirm it wasn't an issue with my input and i receive the error listed below.

 

Capture 3.PNG

 

Is there a known issue with the Model Comparison Tool download or is there something else im missing? Screen shot of my workflow provided below as info. 

 

Capture 4.PNG

3 REPLIES 3
Thableaus
17 - Castor
17 - Castor

Hi @Swest4190 

 

This explanation by @mbarone probably clarifies your problem.

 

https://community.alteryx.com/t5/Alteryx-Designer-Discussions/Model-Comparison-12-Tool-3-Error-in-c-...

 

"

In the data set I used to build the model, some of the levels of the categorical  variables that were in the Evaluation data set were NOT in the Validation data set.  So when you use the Model Comparison Tool, it can't find some values in the Eval set that were in the Validation Set.

 

For example:

 

Variable "Business Type" in the Evaluation set has levels of "Pizza Shop, Auto Repair, Glass Cleaning".  But in the Validation set, the levels are "Pizza Shop, Auto Repair, Glass Cleaning, Car Wash".

 

When it goes to do the Model Comparison, it looks at all the levels and sees that it can't trace all the ones in the Validation set back to the Model itself, which was built using the Eval set.

 

I've built into my model builds a step where I check the Eval set categorical variables levels against the Validation set categorical variables levels.  If there are mismatches, then I force some observations in so all levels in the Eval and Validation sets are accounted for."

 

I'd check his advice, it seems valuable

 

Cheers,

danilang
19 - Altair
19 - Altair

Hi @Swest4190 

 

Have you given unique names to both of your models 

 

Model Names.png

 

This is confusing because it's  not actually required to run the model.  It's only important when you pass the model to other tools.

 

Dan

Swest4190
6 - Meteoroid

Yep that was the problem. Thanks for the help!

Labels
Top Solution Authors