mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-07 12:20:24 +01:00
Add file hash to Keras Boston Housing dataset to force cache update.
PiperOrigin-RevId: 158036587
This commit is contained in:
parent
afdc38cd30
commit
6c531eb2fc
|
|
@ -37,8 +37,11 @@ def load_data(path='boston_housing.npz', seed=113, test_split=0.2):
|
|||
Tuple of Numpy arrays: `(x_train, y_train), (x_test, y_test)`.
|
||||
"""
|
||||
assert 0 <= test_split < 1
|
||||
fh = 'f553886a1f8d56431e820c5b82552d9d95cfcb96d1e678153f8839538947dff5'
|
||||
path = get_file(
|
||||
path, origin='https://s3.amazonaws.com/keras-datasets/boston_housing.npz')
|
||||
path,
|
||||
origin='https://s3.amazonaws.com/keras-datasets/boston_housing.npz',
|
||||
file_hash=fh)
|
||||
f = np.load(path)
|
||||
x = f['x']
|
||||
y = f['y']
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user