File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1919train_labels = to_categorical (train_labels )
2020validation_labels = to_categorical (validation_labels )
2121
22-
2322from keras import models
2423from keras import layers
2524
Original file line number Diff line number Diff line change 2222
2323train_images = train_images .reshape ((60000 , 28 * 28 ))
2424train_images = train_images .astype ('float32' ) / 255
25+
2526test_images = test_images .reshape ((10000 , 28 * 28 ))
2627test_images = test_images .astype ('float32' ) / 255
2728
28-
2929from keras .utils import to_categorical
3030
3131train_labels = to_categorical (train_labels )
Original file line number Diff line number Diff line change 1+ print ('try the titanic Kaggle competition' )
2+
3+ import pandas as pd
4+
5+ titanic_path = '../titanic/data.csv'
6+
7+ dataset = pd .read_csv (titanic_path , quotechar = '"' )
8+
9+ print (dataset .iloc [0 :5 , 0 :10 ])
10+
You can’t perform that action at this time.
0 commit comments