FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
docker-python/tests/test_sklearn.py at main · sibo-dev/docker-python · GitHub
sibo-dev
/
docker-python
Public
forked from
Kaggle/docker-python
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
docker-python
/
tests
/
test_sklearn.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
18 lines (15 loc) · 542 Bytes
Breadcrumbs
docker-python
/
tests
/
test_sklearn.py
Copy path
File metadata and controls
18 lines (15 loc) · 542 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import
unittest
from
sklearn
import
datasets
from
sklearn
.
ensemble
import
RandomForestClassifier
from
sklearn
.
linear_model
import
LinearRegression
class
TestSklearn
(
unittest
.
TestCase
):
def
test_random_forest_classifier
(
self
):
iris
=
datasets
.
load_iris
()
X
,
y
=
iris
.
data
,
iris
.
target
rf1
=
RandomForestClassifier
()
rf1
.
fit
(
X
,
y
)
def
test_linearn_classifier
(
self
):
boston
=
datasets
.
load_boston
()
X
,
y
=
boston
.
data
,
boston
.
target
lr1
=
LinearRegression
()
lr1
.
fit
(
X
,
y
)
Back
|
FazBrowse Home
|
New Git URL