Newer
Older
// Program 4: Load dataset, normalize and shuffle, then train and save the model
model4.setLoss(crossEntropy)
model4.compile(linear(4, 64), applyTanh(0.7), linear(64, 3), applySoftmax(0.4))
model4.train(dataset4)
model4.saveModel(model4_saved)
}