ArxAlfa commited on
Commit ·
8ceaff8
1
Parent(s): 7b1ff82
Update model hyperparameters and number of epochs
Browse files31 unmodified lines3233343536373855 unmodified lines94959697989910010110210331 unmodified lines# Load the modelmodel = DNN(input_size=7, hidden_size=256, output_size=1)# Initialize the OneHotEncoderencoder = OneHotEncoder(handle_unknown="ignore")55 unmodified linesoptimizer = optim.Adam(model.parameters(), lr=0.0001)# Fit the modelkf = KFold(n_splits=5)accuracies = []epochs = 50 # Define the number of epochsfor epoch in range(epochs):for train_index, test_index in kf.split(X):31 unmodified lines3233343536373855 unmodified lines94959697989910010110210331 unmodified lines# Load the modelmodel = DNN(input_size=7, hidden_size=128, output_size=1)# Initialize the OneHotEncoderencoder = OneHotEncoder(handle_unknown="ignore")55 unmodified linesoptimizer = optim.Adam(model.parameters(), lr=0.0001)# Fit the modelkf = KFold(n_splits=4)accuracies = []epochs = 25 # Define the number of epochsfor epoch in range(epochs):for train_index, test_index in kf.split(X):
app.py+3-3