PiFin schreef op 14 juni 2024 10:47:
[...]
Vergeet niet de data te schalen:0 tot 1 om de waarden te normaliseren ( MinMaxScaler) voordat je begint met test data & train data.
# Prepare training and testing datasets
# Calculate the size of the training set as 80% of the total datatrain_size = int(len(scaled_JET_data) *
0.8)
# Slice the scaled_JET_data array to create the training dataset
train_data = scaled_JET_data[:train_size]
# Slice the scaled_JET_data array to create the testing dataset
test_data = scaled_JET_data[train_size:]