-
-
Save jknthn/cf53f93b1e84981b7a387332ff2e916d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let nn = DeepNeuralNetwork(iterations: 5000, learningRate: 0.003) | |
nn.add(layer: Layer.input(size: 4)) | |
nn.add(layer: Layer.fullyConnected(size: 8, activation: .relu)) | |
nn.add(layer: Layer.fullyConnected(size: 1, activation: .sigmoid)) | |
nn.compile() | |
nn.fit(X: data.XTrain, y: data.yTrain) | |
nn.test(X: data.XTest, y: data.yTest) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment