Skip to content
Advertisement

imblearn.oversampling SMOTENC ValueError

This is my first time using SMOTENC to upsampling my categorical data. However, I’ve been getting error. Can you please advice what should I pass for categorical_features in SMOTENC?

JavaScript

ERROR:

JavaScript

Advertisement

Answer

As per documentation:

JavaScript

So, just replace the line

JavaScript

with the line

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement