Want to Stop Rebuilding "Expensive" Parts of your Flow? Explicit Builds are the Answer!READ MORE

Help building a Custom Python Model with kmodes

juan_delacalle
Level 1
Help building a Custom Python Model with kmodes

We are trying to run k-prototypes as a Custom Python Model, the model comes from the library kmodes.

When running the Custom Python Model, the following mistake appears:

<type 'exceptions.ImportError'>: No module named kmodes.kmodes.

 

We would like to see the same metrics as other clustering models.

 

Any help would be appreciated.

0 Kudos
3 Replies
AlexT
Dataiker
Dataiker

Hi,

The error suggests either kmodes is not installed in the code environment used.

Or a naming conflict as suggested in this thread.

 

0 Kudos
juan_delacalle
Level 1
Author

Thank you @AlexT, we solved it by working in a Python Environment, not the Lab option

0 Kudos
CoreyS
Community Manager
Community Manager

Thank you for sharing your solution with the rest of the community @juan_delacalle

Looking for more resources to help you use Dataiku effectively and upskill your knowledge? Check out these great resources: Dataiku Academy | Documentation | Knowledge Base

A reply answered your question? Mark as ‘Accepted Solution’ to help others like you!
0 Kudos