Submitted by Constant-Cranberry29 t3_ywu5zb in deeplearning
Constant-Cranberry29 OP t1_iwnyhip wrote
Reply to comment by Hamster729 in How to normalize data which contain positive and negative numbers into 0 and 1 by Constant-Cranberry29
df = pd.read_csv('1113_Rwalk40s1.csv', low_memory=False)
columns = ['Fx']]
selected_df = df[columns]
FCDatas = selected_df[:2050]
SmartInsole = np.array(SIData[:2050])
FCData = np.array(FCDatas)
Dataset = np.concatenate((SmartInsole, FCData), axis=1)
scaler_in = MinMaxScaler(feature_range=(0, 1))
scaler_out = MinMaxScaler(feature_range=(0, 1))
data_scaled_in = scaler_in.fit_transform(Dataset[:,0:89])
data_scaled_out = scaler_out.fit_transform(Dataset[:,89:90])
Viewing a single comment thread. View all comments