AI_in_Finance icon indicating copy to clipboard operation
AI_in_Finance copied to clipboard

TypeError: unhashable type: 'slice'

Open ggokka opened this issue 6 years ago • 1 comments

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'

ggokka avatar Oct 22 '18 13:10 ggokka

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)

teixeirazeus avatar Feb 20 '19 16:02 teixeirazeus