Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DataVenture
api-h19
Commits
09925616
Commit
09925616
authored
Jan 21, 2019
by
Sylvain Marchienne
Browse files
Classif + regression
parent
e8d349b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
TP/TP2_mardi/main.ipynb
View file @
09925616
%% Cell type:code id: tags:
```
python
import
numpy
as
np
# Des datasets comme discuté au téléhphone @Théophile
```
%% Cell type:code id: tags:
```
python
# Des datasets comme discuté au téléhphone @Théophile
# Boston dataset (Régression)
# https://www.cs.toronto.edu/~delve/data/boston/bostonDetail.html
# Prix des maisons à Boston (cf le site pour les variables)
from
sklearn.datasets
import
load_boston
boston
=
load_boston
()
X
,
y
=
boston
[
"data"
],
boston
[
"target"
]
X
.
shape
,
y
.
shape
```
%%%% Output: execute_result
((569, 30), (569,))
%% Cell type:code id: tags:
```
python
# Breast cancer dataset (classification)
# https://scikit-learn.org/stable/datasets/index.html#breast-cancer-wisconsin-diagnostic-dataset
# Données sur les tumeurs : cette tumeur est-elle cancéreuse ?
from
sklearn.datasets
import
load_breast_cancer
breast
=
load_breast_cancer
()
X
,
y
=
breast
[
"data"
],
breast
[
"target"
]
X
.
shape
,
y
.
shape
```
%%%% Output: execute_result
((569, 30), (569,))
%% Cell type:code id: tags:
```
python
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment