Commit 09925616 authored by Sylvain Marchienne's avatar Sylvain Marchienne
Browse files

Classif + regression

parent e8d349b9
%% 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
```
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment