Closed SafwanAlselwi closed 10 months ago
Getting this error while calling the feature selection fit function TypeError: init() takes from 2 to 3 positional arguments but 4 were given
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)
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?
No response
I got the solution form the Telegram group
whoever is getting this error, should use mealpy==2.5.4
Tq
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