Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
api-h19
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DataVenture
api-h19
Commits
09925616
Commit
09925616
authored
Jan 21, 2019
by
Sylvain Marchienne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Classif + regression
parent
e8d349b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
6 deletions
+49
-6
TP/TP2_mardi/main.ipynb
TP/TP2_mardi/main.ipynb
+49
-6
No files found.
TP/TP2_mardi/main.ipynb
View file @
09925616
...
...
@@ -2,21 +2,64 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 1
1
,
"metadata": {},
"outputs": [],
"source": [
"import numpy as np"
"import numpy as np\n",
"# Des datasets comme discuté au téléhphone @Théophile"
]
},
{
"cell_type": "code",
"execution_count":
2
,
"execution_count":
14
,
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"((569, 30), (569,))"
]
},
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Boston dataset (Régression)\n",
"# https://www.cs.toronto.edu/~delve/data/boston/bostonDetail.html\n",
"# Prix des maisons à Boston (cf le site pour les variables)\n",
"from sklearn.datasets import load_boston\n",
"boston = load_boston()\n",
"X, y = boston[\"data\"], boston[\"target\"]\n",
"X.shape, y.shape"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"((569, 30), (569,))"
]
},
"execution_count": 16,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Des datasets comme discuté au téléhphone @Théophile\n",
"\n"
"# Breast cancer dataset (classification)\n",
"# https://scikit-learn.org/stable/datasets/index.html#breast-cancer-wisconsin-diagnostic-dataset\n",
"# Données sur les tumeurs : cette tumeur est-elle cancéreuse ?\n",
"from sklearn.datasets import load_breast_cancer\n",
"breast = load_breast_cancer()\n",
"X, y = breast[\"data\"], breast[\"target\"]\n",
"X.shape, y.shape"
]
},
{
...
...
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