Normalisierung und Erstellung von Train/Test

This commit is contained in:
Ibrahim El Sayed
2021-07-13 17:51:08 +02:00
parent c5a2c85788
commit e79bab7e2c
8 changed files with 480 additions and 436 deletions

View File

@@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "879144d9",
"id": "8301251c",
"metadata": {},
"source": [
"### Load MNIST dataset"
@@ -11,7 +11,7 @@
{
"cell_type": "code",
"execution_count": 1,
"id": "bd032860",
"id": "3368e2c3",
"metadata": {},
"outputs": [],
"source": [
@@ -23,7 +23,7 @@
{
"cell_type": "code",
"execution_count": 2,
"id": "30da011c",
"id": "0dc2fe45",
"metadata": {},
"outputs": [],
"source": [
@@ -35,7 +35,7 @@
{
"cell_type": "code",
"execution_count": 3,
"id": "4f555050",
"id": "30459411",
"metadata": {},
"outputs": [],
"source": [
@@ -46,7 +46,7 @@
{
"cell_type": "code",
"execution_count": 4,
"id": "e4de4331",
"id": "0be717f8",
"metadata": {},
"outputs": [
{
@@ -74,7 +74,7 @@
{
"cell_type": "code",
"execution_count": 5,
"id": "b5221963",
"id": "ae9b3d51",
"metadata": {},
"outputs": [],
"source": [
@@ -83,7 +83,7 @@
},
{
"cell_type": "markdown",
"id": "811db75a",
"id": "7c89b6d3",
"metadata": {},
"source": [
"### labels to int"
@@ -92,7 +92,7 @@
{
"cell_type": "code",
"execution_count": 6,
"id": "2bcc19ad",
"id": "30880538",
"metadata": {},
"outputs": [],
"source": [
@@ -104,7 +104,7 @@
{
"cell_type": "code",
"execution_count": 7,
"id": "cc4b728f",
"id": "34b6be41",
"metadata": {},
"outputs": [],
"source": [
@@ -114,7 +114,7 @@
},
{
"cell_type": "markdown",
"id": "d7113df3",
"id": "361fea4c",
"metadata": {},
"source": [
"### Prepare data for machine learning"
@@ -122,7 +122,7 @@
},
{
"cell_type": "markdown",
"id": "570f328e",
"id": "cab5977a",
"metadata": {},
"source": [
"### Identify Train Set and Test Set"
@@ -131,7 +131,7 @@
{
"cell_type": "code",
"execution_count": 8,
"id": "80e1ca03",
"id": "9bb80760",
"metadata": {},
"outputs": [
{
@@ -158,7 +158,7 @@
},
{
"cell_type": "markdown",
"id": "ade8a1f6",
"id": "aac09882",
"metadata": {},
"source": [
"## Pipeline Declaration"
@@ -167,7 +167,7 @@
{
"cell_type": "code",
"execution_count": 9,
"id": "bc5896c2",
"id": "ca389b56",
"metadata": {},
"outputs": [],
"source": [
@@ -195,7 +195,7 @@
},
{
"cell_type": "markdown",
"id": "9e905584",
"id": "b7c97601",
"metadata": {},
"source": [
"# Crossvalidation"
@@ -204,7 +204,7 @@
{
"cell_type": "code",
"execution_count": 10,
"id": "bbbb447c",
"id": "cd37833d",
"metadata": {},
"outputs": [],
"source": [
@@ -222,7 +222,7 @@
{
"cell_type": "code",
"execution_count": 11,
"id": "4a8240c4",
"id": "f738a4ca",
"metadata": {},
"outputs": [],
"source": [
@@ -240,7 +240,7 @@
{
"cell_type": "code",
"execution_count": 12,
"id": "f397cf42",
"id": "756c8015",
"metadata": {},
"outputs": [],
"source": [
@@ -263,7 +263,7 @@
},
{
"cell_type": "markdown",
"id": "a543706f",
"id": "5d3b1484",
"metadata": {},
"source": [
"# Fitting"
@@ -272,7 +272,7 @@
{
"cell_type": "code",
"execution_count": 13,
"id": "45452ceb",
"id": "1ea6a154",
"metadata": {},
"outputs": [],
"source": [
@@ -282,7 +282,7 @@
{
"cell_type": "code",
"execution_count": 14,
"id": "03c01cd0",
"id": "ac4c7a18",
"metadata": {},
"outputs": [
{
@@ -333,7 +333,7 @@
{
"cell_type": "code",
"execution_count": 15,
"id": "18f02d0c",
"id": "23c51b9e",
"metadata": {},
"outputs": [
{
@@ -385,7 +385,7 @@
{
"cell_type": "code",
"execution_count": 16,
"id": "b2e7ee09",
"id": "8c92a008",
"metadata": {},
"outputs": [
{
@@ -437,7 +437,7 @@
{
"cell_type": "code",
"execution_count": 17,
"id": "23ae34c3",
"id": "811c3930",
"metadata": {},
"outputs": [
{
@@ -490,7 +490,7 @@
{
"cell_type": "code",
"execution_count": 18,
"id": "cac23616",
"id": "3c7440ff",
"metadata": {},
"outputs": [
{
@@ -543,7 +543,7 @@
{
"cell_type": "code",
"execution_count": 19,
"id": "a57eb660",
"id": "8b491b79",
"metadata": {},
"outputs": [
{
@@ -596,7 +596,7 @@
{
"cell_type": "code",
"execution_count": 20,
"id": "bcbedf38",
"id": "080ea6b8",
"metadata": {},
"outputs": [
{
@@ -649,7 +649,7 @@
{
"cell_type": "code",
"execution_count": 21,
"id": "5bc4f44b",
"id": "6ee320cd",
"metadata": {},
"outputs": [
{
@@ -702,7 +702,7 @@
{
"cell_type": "code",
"execution_count": 22,
"id": "a901ad5d",
"id": "17934567",
"metadata": {},
"outputs": [
{
@@ -755,7 +755,7 @@
{
"cell_type": "code",
"execution_count": 23,
"id": "19e87457",
"id": "88fb14a4",
"metadata": {},
"outputs": [
{
@@ -816,7 +816,7 @@
{
"cell_type": "code",
"execution_count": 24,
"id": "6146ccb1",
"id": "378c092b",
"metadata": {},
"outputs": [
{
@@ -877,7 +877,7 @@
{
"cell_type": "code",
"execution_count": 25,
"id": "66a7637b",
"id": "3005da1d",
"metadata": {},
"outputs": [
{
@@ -930,7 +930,7 @@
{
"cell_type": "code",
"execution_count": 26,
"id": "d4fadaac",
"id": "cbf8e245",
"metadata": {},
"outputs": [
{
@@ -983,7 +983,7 @@
{
"cell_type": "code",
"execution_count": 27,
"id": "d15fb11c",
"id": "cc1c7c77",
"metadata": {},
"outputs": [
{
@@ -1035,7 +1035,7 @@
{
"cell_type": "code",
"execution_count": 28,
"id": "2db8577b",
"id": "562c937f",
"metadata": {},
"outputs": [
{
@@ -1087,7 +1087,7 @@
{
"cell_type": "code",
"execution_count": 29,
"id": "a5702428",
"id": "0c661938",
"metadata": {},
"outputs": [],
"source": [
@@ -1104,7 +1104,7 @@
{
"cell_type": "code",
"execution_count": 30,
"id": "0ee57cfe",
"id": "05b7b881",
"metadata": {},
"outputs": [],
"source": [
@@ -1120,7 +1120,7 @@
},
{
"cell_type": "markdown",
"id": "7fbbc930",
"id": "0a37b9d8",
"metadata": {},
"source": [
"# Auswertung"
@@ -1129,7 +1129,7 @@
{
"cell_type": "code",
"execution_count": 31,
"id": "e5d609aa",
"id": "480adf73",
"metadata": {},
"outputs": [
{
@@ -1147,7 +1147,7 @@
{
"cell_type": "code",
"execution_count": 38,
"id": "234f14bb",
"id": "202ff9a7",
"metadata": {},
"outputs": [
{
@@ -1179,7 +1179,7 @@
},
{
"cell_type": "markdown",
"id": "a6ddb6f2",
"id": "94f1af95",
"metadata": {},
"source": [
"Default n=3\\\n",
@@ -1202,7 +1202,7 @@
},
{
"cell_type": "markdown",
"id": "bde6e847",
"id": "99ad8309",
"metadata": {},
"source": [
"n=3 euclid distance\\\n",
@@ -1225,7 +1225,7 @@
},
{
"cell_type": "markdown",
"id": "4c625bc3",
"id": "497d3216",
"metadata": {},
"source": [
"# Hyper Parameter Optimization"
@@ -1234,7 +1234,7 @@
{
"cell_type": "code",
"execution_count": 34,
"id": "24ff7ea2",
"id": "e5e0c930",
"metadata": {},
"outputs": [
{
@@ -1269,7 +1269,7 @@
{
"cell_type": "code",
"execution_count": 36,
"id": "b3b0eac3",
"id": "41349c36",
"metadata": {},
"outputs": [],
"source": [
@@ -1279,7 +1279,7 @@
{
"cell_type": "code",
"execution_count": 37,
"id": "b68589fe",
"id": "91d2f4bc",
"metadata": {},
"outputs": [],
"source": [
@@ -1289,7 +1289,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "b162e908",
"id": "c031b179",
"metadata": {},
"outputs": [],
"source": []
@@ -1311,7 +1311,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.5"
"version": "3.8.10"
}
},
"nbformat": 4,