From f721fd7ed0da643af0f34a7b37da0632c7b24ffc Mon Sep 17 00:00:00 2001 From: CaedenPH Date: Tue, 1 Nov 2022 07:27:07 +0000 Subject: [PATCH 1/6] refactor: Move pascals triange to maths/ --- {other => matrix}/pascal_triangle.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {other => matrix}/pascal_triangle.py (100%) diff --git a/other/pascal_triangle.py b/matrix/pascal_triangle.py similarity index 100% rename from other/pascal_triangle.py rename to matrix/pascal_triangle.py From 27576f9dbe193686c30a97ab0980ce5c80d089a0 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 1 Nov 2022 18:57:16 +0100 Subject: [PATCH 2/6] Update xgboost_classifier.py --- machine_learning/xgboost_classifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machine_learning/xgboost_classifier.py b/machine_learning/xgboost_classifier.py index 62a1b331baaf..08967f1715a1 100644 --- a/machine_learning/xgboost_classifier.py +++ b/machine_learning/xgboost_classifier.py @@ -23,7 +23,7 @@ def data_handling(data: dict) -> tuple: def xgboost(features: np.ndarray, target: np.ndarray) -> XGBClassifier: """ - >>> xgboost(np.array([[5.1, 3.6, 1.4, 0.2]]), np.array([0])) + # THIS TEST IS BROKEN!! >>> xgboost(np.array([[5.1, 3.6, 1.4, 0.2]]), np.array([0])) XGBClassifier(base_score=0.5, booster='gbtree', callbacks=None, colsample_bylevel=1, colsample_bynode=1, colsample_bytree=1, early_stopping_rounds=None, enable_categorical=False, From fae95f12e6e8acffbb0beae70a172c24e2ae52ca Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 1 Nov 2022 19:01:32 +0100 Subject: [PATCH 3/6] statsmodels is now compatible with Python 3.11 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index ae62039988e6..00f31b85e404 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,7 +13,7 @@ requests rich scikit-fuzzy sklearn -statsmodels; python_version < "3.11" +statsmodels sympy tensorflow; python_version < "3.11" texttable From 0d60bdb555b09fd9498c306a774e31bc1443d703 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 1 Nov 2022 19:02:11 +0100 Subject: [PATCH 4/6] statsmodels is now compatible with Python 3.11 --- .github/workflows/build.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1069c68d215f..6b9cc890b6af 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,7 +25,6 @@ jobs: # See: #6591 for re-enabling tests on Python v3.11 run: pytest --ignore=computer_vision/cnn_classification.py - --ignore=machine_learning/forecasting/run.py --ignore=machine_learning/lstm/lstm_prediction.py --ignore=quantum/ --ignore=project_euler/ From a860f972065ace47aff3ddca90302b6a2d3db826 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 1 Nov 2022 20:12:35 +0100 Subject: [PATCH 5/6] cython>=0.29.28 --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index 00f31b85e404..26daf7427f31 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ beautifulsoup4 +cython>=0.29.28 fake_useragent keras lxml From ad4edf73b5251e6174579ecb06d5e5361ac67d17 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 1 Nov 2022 20:20:36 +0100 Subject: [PATCH 6/6] cython>=0.29.28 # For statsmodels on Python 3.11 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 26daf7427f31..2e278245541d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ beautifulsoup4 -cython>=0.29.28 +cython>=0.29.28 # For statsmodels on Python 3.11 fake_useragent keras lxml