You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
H2O version, Operating System and Environment
main branch, windows, python 3.12+
Actual behavior
There are some invalid escape sequences in the docstrings of h2o-py.
These will eventually raise errors when the package is imported. https://docs.python.org/3/whatsnew/3.12.html#other-language-changes. I ran in to this when generating documentation via sphinx when h2o is installed. It causes sphinx to crash since sphix is using the content of the docstrings.
- h2oModelD = H2OXGBoostEstimator(\*\*h2oParamsD) # parameters specified as a dict()
Expected behavior
Replace the invalid sequences with valid escapes or use raw strings
Steps to reproduce
Steps to reproduce the behavior (with working code on a sample dataset, if possible):
Just running the file is enough to trigger this i.e. python -Werror ./venv/Lib/site-packages/h2o/estimators/xgboost.py
Upload logs
If you can, please upload the H2O logs. More information on how to do that is available here, or you can use the h2o.downloadAllLogs() in R or the h2o.download_all_logs() function in Python.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
H2O version, Operating System and Environment
main branch, windows, python 3.12+
Actual behavior
There are some invalid escape sequences in the docstrings of h2o-py.
These will eventually raise errors when the package is imported. https://docs.python.org/3/whatsnew/3.12.html#other-language-changes. I ran in to this when generating documentation via sphinx when h2o is installed. It causes sphinx to crash since sphix is using the content of the docstrings.
h2o-3/h2o-py/h2o/model/model_base.py
Line 918 in 8ff06da
h2o-3/h2o-py/h2o/estimators/xgboost.py
Line 2571 in 8ff06da
Expected behavior
Replace the invalid sequences with valid escapes or use raw strings
Steps to reproduce
Steps to reproduce the behavior (with working code on a sample dataset, if possible):
Just running the file is enough to trigger this i.e.
python -Werror ./venv/Lib/site-packages/h2o/estimators/xgboost.py
Upload logs
If you can, please upload the H2O logs. More information on how to do that is available here, or you can use the
h2o.downloadAllLogs()
in R or theh2o.download_all_logs()
function in Python.Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: