forked from pms/uczenie-maszynowe
Drobna poprawka
This commit is contained in:
parent
b1eea2f09f
commit
ef77ea41c6
@ -1,7 +1,6 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"attachments": {},
|
||||
"cell_type": "markdown",
|
||||
"metadata": {
|
||||
"slideshow": {
|
||||
@ -14,7 +13,6 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"attachments": {},
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
@ -26,7 +24,6 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"attachments": {},
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
@ -84,7 +81,7 @@
|
||||
"# podział danych na zbiory uczący i testowy\n",
|
||||
"(x_train, y_train), (x_test, y_test) = keras.datasets.mnist.load_data()\n",
|
||||
"\n",
|
||||
"# skalowanie obrazów do przedziału [0, 1]\n",
|
||||
"# skalowanie pikseli do przedziału [0, 1]\n",
|
||||
"x_train = x_train.astype(\"float32\") / 255\n",
|
||||
"x_test = x_test.astype(\"float32\") / 255\n",
|
||||
"# spłaszczenie dwuwymiarowych obrazów do jednowymiarowych wektorów\n",
|
||||
|
Loading…
Reference in New Issue
Block a user