diff --git a/samples/cpp/neural_network.cpp b/samples/cpp/neural_network.cpp index e0ef6fa9a..d6e681b6c 100644 --- a/samples/cpp/neural_network.cpp +++ b/samples/cpp/neural_network.cpp @@ -16,13 +16,13 @@ int main() { if (i < data.rows/2) { - data(i, 0) = 1; - data(i, 1) = 0; + responses(i, 0) = 1; + responses(i, 1) = 0; } else { - data(i, 0) = 0; - data(i, 1) = 1; + responses(i, 0) = 0; + responses(i, 1) = 1; } }