Skip to content

Commit dba4789

Browse files
author
whyboris
committed
titanic start
1 parent 3879d86 commit dba4789

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

conv-net-mnist.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
train_labels = to_categorical(train_labels)
2020
validation_labels = to_categorical(validation_labels)
2121

22-
2322
from keras import models
2423
from keras import layers
2524

mnist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222

2323
train_images = train_images.reshape((60000, 28 * 28))
2424
train_images = train_images.astype('float32') / 255
25+
2526
test_images = test_images.reshape((10000, 28 * 28))
2627
test_images = test_images.astype('float32') / 255
2728

28-
2929
from keras.utils import to_categorical
3030

3131
train_labels = to_categorical(train_labels)

titanic.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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+

0 commit comments

Comments
 (0)