Commit 91233dde authored by Michal Kravcenko's avatar Michal Kravcenko

-corrected test1

parent d1ddd66e
......@@ -392,6 +392,12 @@ void NeuralNetwork::eval_single(std::vector<double> &input, std::vector<double>
neuron->set_saturation_out(0);
}
if(this->active_eval_set == nullptr){
this->active_eval_set = new std::vector<Neuron*>(this->neurons->size() * 2);
}
else{
this->active_eval_set->resize(this->neurons->size() * 2);
}
int active_set_size[2];
active_set_size[0] = 0;
......
......@@ -53,6 +53,16 @@ int main() {
//net.randomize_weights();
/* specification of the input/output neurons */
std::vector<size_t> net_input_neurons_indices(2);
std::vector<size_t> net_output_neurons_indices(1);
net_input_neurons_indices[0] = idx1;
net_input_neurons_indices[1] = idx2;
net_output_neurons_indices[0] = idx3;
net.specify_input_neurons(net_input_neurons_indices);
net.specify_output_neurons(net_output_neurons_indices);
/* ERROR FUNCTION SPECIFICATION */
MSE mse(&net, &ds);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment