Open Zhuoli opened 1 week ago
There is breaking change on SQLAlchemy causing the issue. The workaround is to install order version:
pip install "SQLAlchemy<2"
There is breaking change on SQLAlchemy causing the issue. The workaround is to install order version:
pip install "SQLAlchemy<2"
Good now, thanks for your quick reply!
Oracle-ads version used
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of oracle-ads.
[X] I have confirmed this bug exists on the main branch of oracle-ads.
[X] I agree to follow Code of Conduct.
Description
The example of ADSTuner is broken [here] I ran in multiple issues complaining dependenct methods no longer available even after downgrading sklearn matplot.
Python 3.10.12
How to Reproduce
What was Observed
ERROR - Exception Traceback (most recent call last): File "/home/zhuoli/Projects/github/zhuoli/automlx/.env/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3577, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "/tmp/ipykernel_3001602/1993493913.py", line 4, in
tuner = ADSTuner(model, cv=3) ## cv is cross validation splits
File "/home/zhuoli/Projects/github/zhuoli/automlx/.env/lib/python3.10/site-packages/ads/common/decorator/runtime_dependency.py", line 174, in wrapper
return func(*args, **kwargs)
File "/home/zhuoli/Projects/github/zhuoli/automlx/.env/lib/python3.10/site-packages/ads/hpo/search_cv.py", line 382, in init
self._study = optuna.study.create_study(
File "/home/zhuoli/Projects/github/zhuoli/automlx/.env/lib/python3.10/site-packages/optuna/study/study.py", line 1136, in create_study
storage = storages.get_storage(storage)
File "/home/zhuoli/Projects/github/zhuoli/automlx/.env/lib/python3.10/site-packages/optuna/storages/init.py", line 31, in get_storage
return _CachedStorage(RDBStorage(storage))
File "/home/zhuoli/Projects/github/zhuoli/automlx/.env/lib/python3.10/site-packages/optuna/storages/_rdb/storage.py", line 187, in init
self._version_manager.check_table_schema_compatibility()
File "/home/zhuoli/Projects/github/zhuoli/automlx/.env/lib/python3.10/site-packages/optuna/storages/_rdb/storage.py", line 1310, in check_table_schema_compatibility
current_version = self.get_current_version()
File "/home/zhuoli/Projects/github/zhuoli/automlx/.env/lib/python3.10/site-packages/optuna/storages/_rdb/storage.py", line 1337, in get_current_version
assert version is not None
AssertionError
AssertionError:
What was Expected
No error expected
Version
2.11.19