Comments (7)
@thinkall
Thanks for your hint. Error occurs when import StratifiedGroupKFold
.
According to the change log of scikit-learn
, model_selection.StratifiedGroupKFold
is added in version 1.0, while the minimum version required by FLAML's setup.py
is 0.24.
After update scikit-learn
to version 1.0, the error disappears.
And sorry for misleading @Programmer-RD-AI , I will check the reason for abnormal behaviors more carefully next time.
from flaml.
@thinkall Thanks for your hint. Error occurs when import
StratifiedGroupKFold
.According to the change log of
scikit-learn
,model_selection.StratifiedGroupKFold
is added in version 1.0, while the minimum version required by FLAML'ssetup.py
is 0.24. After updatescikit-learn
to version 1.0, the error disappears.And sorry for misleading @Programmer-RD-AI , I will check the reason for abnormal behaviors more carefully next time.
Thank you @ao-zz for your feedback, looks like it's time to update the dependencies. I'm working on adding support to python 3.11, will update the dependencies accordingly.
from flaml.
Could you provide the entire error if possible?
or the code to replicate?
from flaml.
@Programmer-RD-AI
My error message:
File "/xxx/python3.8/site-packages/flaml/automl/task/generic_task.py" , line 425, in prepare_data
X_train_all, y_train_all = shuffle(X_train_all, y_train_all, random_state=RANDOM_SEED)
NameError: name 'shuffle' is not defined
I think it may need import random
and use random.shuffle
from flaml.
Hi,
I will put up a PR for this issue ASAP
from flaml.
@flippercy Looks like your scikit-learn is not working as expected. What do you see with below code:
from sklearn.model_selection import (
GroupKFold,
GroupShuffleSplit,
RepeatedKFold,
RepeatedStratifiedKFold,
StratifiedGroupKFold,
TimeSeriesSplit,
train_test_split,
)
from sklearn.utils import shuffle
from flaml.
Fixed in #1326
from flaml.
Related Issues (20)
- Typo or misnaming in automl/timeseries/ts_model.py HOT 1
- Update Optuna HOT 2
- Shifting of Time Series data HOT 1
- BlendSearch in UDF mode HOT 6
- Official example: Time Series Forecast TypeError: 'NoneType' object is not callable HOT 2
- ml.py contains conflicting references to Numpy
- Cannot reproduce Flaml predictions using SkLearn RF HOT 1
- Wrong index during CV HOT 1
- Unable to work with root_mean_squared_log_error HOT 1
- Inconsistent naming HOT 3
- automl broken with pandas 2 HOT 4
- Add (built-in) multi-target support HOT 1
- TypeError: StratifiedKFold.split() missing 1 required positional argument: 'y'
- Inconsistent Usage of .format() and f-strings in FLAML Codebase HOT 1
- `TypeError: fit() got an unexpected keyword argument 'callbacks'` with xgboost 2.1.0 HOT 2
- Incompatibility with NumPy 2.0.0: Module Crashes Due to Binary Incompatibility and Attribute Errors HOT 1
- n_estimators value on automl.model differs from value in logs (for CatBoost models) HOT 2
- starting_point not used HOT 15
- AutoML does not pass proper `objective` to `estimator_class` when `metric` is non-default. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flaml.