'Numeric feature in setup function

I want to pass all my features(100+) as a numeric feature is there any method to do it without writing all features in the setup column?



Solution 1:[1]

I would create a list of all the features and pass that list to setup. Something like this:

num_cols = data.columns().to_list() or num_cols = data.select_dtypes(include=['float64'])

clf = setup(data, numeric_features= num_cols, target='yourtarget')

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Gopakumar G