Skip to content

Commit

Permalink
Lab06 PYTHONPATH fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
isa3 committed Mar 13, 2020
1 parent f87d161 commit ff53412
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions lab06/lab06_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@
# @version 13march2020
###############################

#PYTHONPATH = /usr/local/lib/python3.6/dist-packages/

import numpy as np
from keras.datasets import boston_housing
from tensorflow.python.keras.datasets import boston_housing

#a.
(train_images, train_labels), (test_images, test_labels) = boston_housing.load_data()


def print_structures():
#i. training
print(
'training images \
\n\tcount: {} \
Expand All @@ -28,11 +33,18 @@ def print_structures():
\n\tcount: {} \
\n\tdimensions: {} \
\n\tshape: {} \
\n\tdata type: {}\n\n.format(
\n\tdata type: {}\n\n'.format(
len(test_labels),
train_labels.ndim,
test_labels.shape,
test_labels.dtype
)
)
print_structures()
print_structures()

'''
results:
i. 404 training images, 102 testing images
ii. 2 dimensions, (404,13) shape, float64 data type for training
1 dimension, (102,) shape, float64 data type for testing
'''

0 comments on commit ff53412

Please sign in to comment.