We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cells to AI-Lab notebook nbtest_sklearn.py
nbtest_sklearn.py
scikit-learn
%pip install "scikit_learn=={slc_version}"
Notes
pip
PATH
Checking the version of sklearn in a shell
python -c "import sklearn; print(sklearn.__version__)"
Installing sklearn:
python3 -m pip install "scikit_learn==1.4.2"
Sample UDF for detecting scikit-learn version inside the database SLC
--/ CREATE OR REPLACE PYTHON3 SCALAR SCRIPT detect_skikit_learn_version() RETURNS VARCHAR(100) AS import sklearn def run(ctx): return sklearn.__version__ / select detect_skikit_learn_version();
During implementation of #301, PR #311 showed an error when running nbtest_sklearn.py
FAILURES ... test_regression[StorageBackend.saas] AttributeError: 'OneHotEncoder' object has no attribute '_infrequent_enabled'
1.0.2
1.4.2
The text was updated successfully, but these errors were encountered:
The following zip contains an SQL script for running pip and the results of pip list on different stages. sql.zip
pip list
Sorry, something went wrong.
#313: Enabled fixing differing versions of dependency scikit-learn
d159c7d
#313 enabled fix differing versions of dependency scikit learn (#316)
fd290cd
* #313: Enabled fixing differing versions of dependency scikit-learn * Added functionality to notebook sklearn_fix_version * Updated notebook test * Fixed sk_train to remove feature labels * [CodeBuild]
ckunki
Successfully merging a pull request may close this issue.
Solution strategy
Add cells to AI-Lab notebook
nbtest_sklearn.py
scikit-learn
versions inside the database SLC and in the AI-LabNotes
pip
to be available in thePATH
, see Add jupyterenv to PATH #273Sample Snippets
Checking the version of sklearn in a shell
python -c "import sklearn; print(sklearn.__version__)"
Installing sklearn:
python3 -m pip install "scikit_learn==1.4.2"
Sample UDF for detecting
scikit-learn
version inside the database SLCBackground
During implementation of #301, PR #311 showed an error when running
nbtest_sklearn.py
scikit-learn
version1.0.2
1.4.2
Other options
scikit-learn
, depends highly on version ofscikit-learn
The text was updated successfully, but these errors were encountered: