Finished Sliding Window (problem with labels)

master
Tuan-Dat Tran 2021-07-17 17:40:05 +02:00
parent 6f50d0cf1d
commit 5c9e906eb5
2 changed files with 564 additions and 2022 deletions

View File

@ -3,7 +3,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 1, "execution_count": 1,
"id": "be7fb1d9", "id": "920f21b6",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@ -15,7 +15,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 2, "execution_count": 2,
"id": "6ed9eb14", "id": "9494dff5",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@ -44,7 +44,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 3, "execution_count": 3,
"id": "3b4401d0", "id": "ac87093f",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@ -57,7 +57,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 4, "execution_count": 4,
"id": "9af8908e", "id": "ff9eeb53",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@ -74,7 +74,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 5, "execution_count": 5,
"id": "00579598", "id": "ec8ff24a",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -106,7 +106,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 6, "execution_count": 6,
"id": "dd2ba5c9", "id": "18326042",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@ -162,7 +162,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 7, "execution_count": 7,
"id": "f383e21e", "id": "8252cda5",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@ -178,7 +178,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 8, "execution_count": 8,
"id": "e40b33bf", "id": "330b79aa",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@ -208,7 +208,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 9, "execution_count": 9,
"id": "56bce2a5", "id": "7989f97f",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@ -227,7 +227,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 10, "execution_count": 10,
"id": "808f43c3", "id": "06926b00",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@ -245,7 +245,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 11, "execution_count": 11,
"id": "7dd050be", "id": "56a8c615",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@ -275,7 +275,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 12, "execution_count": 12,
"id": "fc701b87", "id": "0a347c17",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@ -317,7 +317,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 13, "execution_count": 13,
"id": "048718bd", "id": "aadf64f9",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@ -339,7 +339,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 14, "execution_count": 14,
"id": "68335fef", "id": "e7bfb918",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@ -359,7 +359,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 15, "execution_count": 15,
"id": "67ac50ef", "id": "7ea5ec4d",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@ -402,13 +402,12 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 16, "execution_count": 16,
"id": "1b5f3868", "id": "b62d2f11",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"checkpoint_file = './goat.weights'\n", "checkpoint_file = './goat.weights'\n",
"\n", "\n",
"\n",
"def train(X_train, y_train, X_test, y_test):\n", "def train(X_train, y_train, X_test, y_test):\n",
" model = build_model()\n", " model = build_model()\n",
" \n", " \n",
@ -439,7 +438,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 17, "execution_count": 17,
"id": "24d0b968", "id": "8c03d2a3",
"metadata": { "metadata": {
"tags": [] "tags": []
}, },
@ -452,7 +451,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 23, "execution_count": 23,
"id": "44b5e9f3", "id": "5c9f56eb",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@ -477,7 +476,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 24, "execution_count": 24,
"id": "93d19897", "id": "c86a5870",
"metadata": { "metadata": {
"tags": [] "tags": []
}, },
@ -596,7 +595,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 26, "execution_count": 26,
"id": "c00b7ffe", "id": "de7a2614",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -617,7 +616,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 27, "execution_count": 27,
"id": "1cd94b4c", "id": "9f67f663",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -638,7 +637,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 28, "execution_count": 28,
"id": "dc5f4f81", "id": "376ed54c",
"metadata": { "metadata": {
"tags": [] "tags": []
}, },
@ -652,7 +651,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 29, "execution_count": 29,
"id": "37180b0e", "id": "8bb6a389",
"metadata": { "metadata": {
"tags": [] "tags": []
}, },
@ -686,7 +685,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 30, "execution_count": 30,
"id": "142787fc", "id": "68b447f0",
"metadata": { "metadata": {
"tags": [] "tags": []
}, },
@ -715,7 +714,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 31, "execution_count": 31,
"id": "8badef83", "id": "20c0eb4e",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -741,7 +740,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 32, "execution_count": 32,
"id": "bd54349d", "id": "b1095a11",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -1016,7 +1015,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 33, "execution_count": 33,
"id": "94c2a01e", "id": "3228ce57",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -1291,7 +1290,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": null,
"id": "f17eeb73", "id": "cf15d166",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [] "source": []

File diff suppressed because one or more lines are too long