Commit 1cf1690d authored by Martin Beseda's avatar Martin Beseda
Browse files

FIX: PDE is being solved only by Particle Swarm

parent bc8df364
...@@ -719,9 +719,9 @@ int main() { ...@@ -719,9 +719,9 @@ int main() {
double ts = ds; double ts = ds;
double te = de + 0; double te = de + 0;
// size_t particle_swarm_max_iters = 500; size_t particle_swarm_max_iters = 500;
// size_t n_particles = 10; size_t n_particles = 10;
// solve_example_particle_swarm(accuracy, n_inner_neurons, train_size, ds, de, test_size, ts, te, particle_swarm_max_iters, n_particles); solve_example_particle_swarm(accuracy, n_inner_neurons, train_size, ds, de, test_size, ts, te, particle_swarm_max_iters, n_particles);
std::vector<double> init_guess(4 * n_inner_neurons); std::vector<double> init_guess(4 * n_inner_neurons);
...@@ -733,7 +733,7 @@ int main() { ...@@ -733,7 +733,7 @@ int main() {
} }
// init_guess = {-0.21709230, -0.26189447, 0.77853923, 0.41091127, -0.44311897, -0.99036349, 0.84912023, -0.16920743}; // init_guess = {-0.21709230, -0.26189447, 0.77853923, 0.41091127, -0.44311897, -0.99036349, 0.84912023, -0.16920743};
solve_example_gradient(init_guess, accuracy, n_inner_neurons, train_size, ds, de, test_size, ts, te); // solve_example_gradient(init_guess, accuracy, n_inner_neurons, train_size, ds, de, test_size, ts, te);
return 0; return 0;
} }
\ No newline at end of file
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