llSourcell / AI_in_Finance

This is the code for "AI in Finance" By Siraj Raval on Youtube
MIT License
421 stars 250 forks source link

TypeError: unhashable type: 'slice' #4

Open ggokka opened 6 years ago

ggokka commented 6 years ago

TypeError Traceback (most recent call last)

in () 8 dataset = datasets.load_boston() 9 # split into input (X) and output (Y) variables ---> 10 X = dataset[:,0:8] 11 Y = dataset[:,8] 12 # create model TypeError: unhashable type: 'slice'
teixeirazeus commented 5 years ago

dataset = datasets.load_boston() data = dataset.data target = dataset.target.reshape((-1, 1))

data = data_scaler.fit_transform(data) target = target_scaler.fit_transform(target)