Skip to content

Commit f3723c0

Browse files
authored
Merge pull request #7 from fixleftdev/testb
Testb
2 parents ad2b30d + 75120ab commit f3723c0

File tree

2 files changed

+22
-41
lines changed

2 files changed

+22
-41
lines changed

main.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import numpy as np
2+
from sklearn.linear_model import LinearRegression
3+
4+
# Sample data
5+
X = np.array([[1], [2], [3], [4], [5]])
6+
y = np.array([1, 3, 2, 3, 5])
7+
8+
# Create a linear regression model with normalize parameter
9+
model = LinearRegression(normalize=True)
10+
11+
# Fit the model
12+
model.fit(X, y)
13+
14+
# Make predictions
15+
predictions = model.predict(X)
16+
17+
# Print the coefficients
18+
print("Coefficients:", model.coef_)
19+
print("Intercept:", model.intercept_)
20+
print("Predictions:", predictions)

requirement.txt

Lines changed: 2 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,2 @@
1-
astroid==2.15.4
2-
beautifulsoup4==4.12.2
3-
blinker==1.6.2
4-
bs4==0.0.1
5-
certifi==2022.9.24
6-
charset-normalizer==2.1.1
7-
click==8.1.3
8-
colorama==0.4.6
9-
crypto==1.4.1
10-
dill==0.3.6
11-
Flask==3.0.0
12-
Flask-MySQLdb==1.0.1
13-
Flask-SQLAlchemy==3.1.1
14-
greenlet==3.0.0
15-
gunicorn==20.1.0
16-
idna==3.4
17-
isort==5.12.0
18-
itsdangerous==2.1.2
19-
Jinja2==3.1.2
20-
lazy-object-proxy==1.9.0
21-
lxml==4.9.3
22-
MarkupSafe==2.1.3
23-
mccabe==0.7.0
24-
mysql-connector-python==8.0.33
25-
mysqlclient==2.1.1
26-
Naked==0.1.32
27-
pefile==2023.2.7
28-
platformdirs==3.5.1
29-
protobuf==3.20.3
30-
pycryptodome==3.19.0
31-
pylint==2.17.4
32-
PyYAML==6.0.1
33-
requests==2.28.1
34-
shellescape==3.8.1
35-
soupsieve==2.4.1
36-
SQLAlchemy==2.0.21
37-
tomlkit==0.11.8
38-
typing_extensions==4.8.0
39-
urllib3==1.26.16
40-
Werkzeug==3.0.0
41-
wrapt==1.15.0
1+
numpy==1.21.0
2+
scikit-learn==0.24.dev0

0 commit comments

Comments
 (0)