Skip to content

Commit

Permalink
Latest Commits
Browse files Browse the repository at this point in the history
  • Loading branch information
omarbelkady authored Jan 27, 2021
1 parent b84b0c8 commit a556871
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 2 deletions.
11 changes: 11 additions & 0 deletions Machine Learning/Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]

[dev-packages]

[requires]
python_version = "3.8"
21 changes: 21 additions & 0 deletions Machine Learning/Weather_Pred/Pipfile
Original file line number Diff line number Diff line change
@@ -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"
4 changes: 2 additions & 2 deletions Machine Learning/Weather_Pred/Weather_Pred.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
11 changes: 11 additions & 0 deletions Machine Learning/python-virtual-environments/Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]

[dev-packages]

[requires]
python_version = "3.8"
20 changes: 20 additions & 0 deletions Machine Learning/python-virtual-environments/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a556871

Please sign in to comment.