From a556871d41b8237bec620ba351533b2cff9abe05 Mon Sep 17 00:00:00 2001 From: Omar Belkady <31806568+omarbelkady@users.noreply.github.com> Date: Wed, 27 Jan 2021 12:29:33 +0000 Subject: [PATCH] Latest Commits --- Machine Learning/Pipfile | 11 ++++++++++ Machine Learning/Weather_Pred/Pipfile | 21 +++++++++++++++++++ Machine Learning/Weather_Pred/Weather_Pred.py | 4 ++-- .../python-virtual-environments/Pipfile | 11 ++++++++++ .../python-virtual-environments/Pipfile.lock | 20 ++++++++++++++++++ 5 files changed, 65 insertions(+), 2 deletions(-) create mode 100644 Machine Learning/Pipfile create mode 100644 Machine Learning/Weather_Pred/Pipfile create mode 100644 Machine Learning/python-virtual-environments/Pipfile create mode 100644 Machine Learning/python-virtual-environments/Pipfile.lock diff --git a/Machine Learning/Pipfile b/Machine Learning/Pipfile new file mode 100644 index 0000000..22d660a --- /dev/null +++ b/Machine Learning/Pipfile @@ -0,0 +1,11 @@ +[[source]] +url = "https://pypi.org/simple" +verify_ssl = true +name = "pypi" + +[packages] + +[dev-packages] + +[requires] +python_version = "3.8" diff --git a/Machine Learning/Weather_Pred/Pipfile b/Machine Learning/Weather_Pred/Pipfile new file mode 100644 index 0000000..c30ff3d --- /dev/null +++ b/Machine Learning/Weather_Pred/Pipfile @@ -0,0 +1,21 @@ +[[source]] +url = "https://pypi.org/simple" +verify_ssl = true +name = "pypi" + +[packages] +joblib=1.0.0 +numpy=1.19.4 +pandas=1.2.0 +python-dateutil=2.8.1 +pytz=2020.5 +scikit-learn=0.24.0 +scipy=1.5.4 +six=1.15.0 +sklearn=0.0 +threadpoolctl=2.1.0 + +[dev-packages] + +[requires] +python_version = "3.8" diff --git a/Machine Learning/Weather_Pred/Weather_Pred.py b/Machine Learning/Weather_Pred/Weather_Pred.py index 2c95276..86eb8d6 100644 --- a/Machine Learning/Weather_Pred/Weather_Pred.py +++ b/Machine Learning/Weather_Pred/Weather_Pred.py @@ -74,8 +74,8 @@ def train_data(): clf = LinearRegression() clf.fit(X_train, y_train) pred = clf.predict(X_test) - print r2_score(y_test, pred) - print mean_squared_error(y_test, pred) + print(r2_score(y_test, pred)) + print(mean_squared_error(y_test, pred)) joblib.dump(clf, 'weather_predictor.pkl') diff --git a/Machine Learning/python-virtual-environments/Pipfile b/Machine Learning/python-virtual-environments/Pipfile new file mode 100644 index 0000000..22d660a --- /dev/null +++ b/Machine Learning/python-virtual-environments/Pipfile @@ -0,0 +1,11 @@ +[[source]] +url = "https://pypi.org/simple" +verify_ssl = true +name = "pypi" + +[packages] + +[dev-packages] + +[requires] +python_version = "3.8" diff --git a/Machine Learning/python-virtual-environments/Pipfile.lock b/Machine Learning/python-virtual-environments/Pipfile.lock new file mode 100644 index 0000000..e42812c --- /dev/null +++ b/Machine Learning/python-virtual-environments/Pipfile.lock @@ -0,0 +1,20 @@ +{ + "_meta": { + "hash": { + "sha256": "7f7606f08e0544d8d012ef4d097dabdd6df6843a28793eb6551245d4b2db4242" + }, + "pipfile-spec": 6, + "requires": { + "python_version": "3.8" + }, + "sources": [ + { + "name": "pypi", + "url": "https://pypi.org/simple", + "verify_ssl": true + } + ] + }, + "default": {}, + "develop": {} +}