thieu1995 / mafese

Feature Selection using Metaheuristics Made Easy: Open Source MAFESE Library in Python
https://mafese.readthedocs.io
GNU General Public License v3.0
62 stars 21 forks source link

[BUG]: TypeError: __init__() takes from 2 to 3 positional arguments but 4 were given #5

Closed SafwanAlselwi closed 10 months ago

SafwanAlselwi commented 10 months ago

Description of the bug

Getting this error while calling the feature selection fit function TypeError: init() takes from 2 to 3 positional arguments but 4 were given

Steps To Reproduce

In feat_selector.fit(data.X_train, data.y_train)

I'm Getting this error while running the code TypeError: init() takes from 2 to 3 positional arguments but 4 were given

it happened in the file "mealpy_util.py" in init function when calling the super().__init__(lb, ub, minmax, **kwargs)

I tried to change the superclass "problem" function init to receive the lb,ub as bounds but still getting the error

any help?

Additional Information

No response

SafwanAlselwi commented 10 months ago

I got the solution form the Telegram group

whoever is getting this error, should use mealpy==2.5.4

Tq