MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / predict

Method predict

examples/machine_learning/neural_network.cpp:130–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130array ann::predict(const array &input) {
131 vector<array> signal = forward_propagate(input);
132 array out = signal[num_layers - 1];
133 return out;
134}
135
136double ann::train(const array &input, const array &target, double alpha,
137 int max_epochs, int batch_size, double maxerr, bool verbose) {

Callers 1

ann_demoFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected