normalization
parent
be4ac3f26c
commit
41ca9b994e
|
@ -302,11 +302,13 @@ class GasSensorDataLoader:
|
||||||
x_output = np.concatenate((x_output, x_sample))
|
x_output = np.concatenate((x_output, x_sample))
|
||||||
y_output = np.concatenate((y_output, y_sample))
|
y_output = np.concatenate((y_output, y_sample))
|
||||||
|
|
||||||
|
target_scaler = MinMaxScaler()
|
||||||
|
y_output = target_scaler.fit_transform(y_output)
|
||||||
|
|
||||||
self.dataset[ws] = (x_output, y_output, g_output)
|
self.dataset[ws] = (x_output, y_output, g_output)
|
||||||
|
|
||||||
return self.dataset[ws]
|
return self.dataset[ws]
|
||||||
|
|
||||||
|
|
||||||
def create_conv1d_dataset(self, measurament, r, l, window):
|
def create_conv1d_dataset(self, measurament, r, l, window):
|
||||||
|
|
||||||
X_data = self.scaled_data[measurament]['data'].iloc[r:l]
|
X_data = self.scaled_data[measurament]['data'].iloc[r:l]
|
||||||
|
@ -330,7 +332,7 @@ class GasSensorDataLoader:
|
||||||
x_samples[i] = X_data.iloc[index:index + window].values
|
x_samples[i] = X_data.iloc[index:index + window].values
|
||||||
y_sample[i] = Y_value
|
y_sample[i] = Y_value
|
||||||
g_sample[i] = G_value
|
g_sample[i] = G_value
|
||||||
|
|
||||||
return x_samples, y_sample, g_sample
|
return x_samples, y_sample, g_sample
|
||||||
|
|
||||||
def load_dataset_xboost(self):
|
def load_dataset_xboost(self):
|
||||||
|
|
Loading…
Reference in New Issue