Skip to content

Commit f512b4d

Browse files
CaedenPHcclauss
andauthored
refactor: Move pascals triange to maths/ (#7932)
* refactor: Move pascals triange to maths/ * Update xgboost_classifier.py * statsmodels is now compatible with Python 3.11 * statsmodels is now compatible with Python 3.11 * cython>=0.29.28 * cython>=0.29.28 # For statsmodels on Python 3.11 Co-authored-by: Christian Clauss <[email protected]>
1 parent 4e6c1c0 commit f512b4d

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

Diff for: .github/workflows/build.yml

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
# See: #6591 for re-enabling tests on Python v3.11
2626
run: pytest
2727
--ignore=computer_vision/cnn_classification.py
28-
--ignore=machine_learning/forecasting/run.py
2928
--ignore=machine_learning/lstm/lstm_prediction.py
3029
--ignore=quantum/
3130
--ignore=project_euler/

Diff for: machine_learning/xgboost_classifier.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def data_handling(data: dict) -> tuple:
2323

2424
def xgboost(features: np.ndarray, target: np.ndarray) -> XGBClassifier:
2525
"""
26-
>>> xgboost(np.array([[5.1, 3.6, 1.4, 0.2]]), np.array([0]))
26+
# THIS TEST IS BROKEN!! >>> xgboost(np.array([[5.1, 3.6, 1.4, 0.2]]), np.array([0]))
2727
XGBClassifier(base_score=0.5, booster='gbtree', callbacks=None,
2828
colsample_bylevel=1, colsample_bynode=1, colsample_bytree=1,
2929
early_stopping_rounds=None, enable_categorical=False,
File renamed without changes.

Diff for: requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
beautifulsoup4
2+
cython>=0.29.28 # For statsmodels on Python 3.11
23
fake_useragent
34
keras
45
lxml
@@ -13,7 +14,7 @@ requests
1314
rich
1415
scikit-fuzzy
1516
sklearn
16-
statsmodels; python_version < "3.11"
17+
statsmodels
1718
sympy
1819
tensorflow; python_version < "3.11"
1920
texttable

0 commit comments

Comments
 (0)