Here I have a dataset with three inputs. Here I generated y value using append. After the append I got the output like this:
y.append(rec.iloc[0]['y'])
Then I tried to develop neural network model with these values. Before that I tried to scale the y value. my code:
y =y.values().astype(int)
scaler_y = preprocessing.MinMaxScaler(feature_range =(0, 1))
y = np.array(y).reshape([-1, 1])
y = scaler_y.fit_transform(y)
Then I got an error :
AttributeError Traceback (most recent call last)
<ipython-input-254-2ec9d2fcbffd> in <module>()
----> 1 y = y.values().astype(int)
AttributeError: 'list' object has no attribute 'values'
Can anyone help me to solve this error?