Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP integrating Learning in evolution #84

Open
wants to merge 50 commits into
base: development
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
cf345d0
Simplified Deserialisation method.
etiennegalea Nov 19, 2019
afcf01c
Merge remote-tracking branch 'origin/development' into development
etiennegalea Nov 24, 2019
6645efb
Created new protobuf message
etiennegalea Nov 24, 2019
deeede0
Skeleton for new Learner architecture
Nov 25, 2019
354051e
All classes for learner abstraction in place now
Nov 27, 2019
dee5dfb
Added hardcoded parameters to BayesianOptimizer.
Nov 27, 2019
114a213
Merge remote-tracking branch 'upstream/development' into development
Nov 28, 2019
fc88765
Refactoring
Nov 29, 2019
5363462
Plugging in NoLearner
Nov 29, 2019
86f9eea
Added new robot_states.proto for learning evaluations
etiennegalea Nov 29, 2019
f5aeda1
Merge remote-tracking branch 'origin/development' into development
etiennegalea Nov 29, 2019
71b5314
devectorize_cpg_controller and refactor
Dec 2, 2019
4040ee4
implement optimization step and fitness saving.
Dec 2, 2019
b7c6dfe
Plug new learner into robot controller
Dec 3, 2019
5b5719f
Merge branch 'bayes_opt' into evaluator_proto_msg
etiennegalea Dec 3, 2019
7e87217
Bayesian Optimization integration
portaloffreedom Dec 4, 2019
8c77222
fix limbo compilation issue
portaloffreedom Dec 5, 2019
bc90434
added Hyperneat learner - WIP
portaloffreedom Dec 5, 2019
2011271
Merge branch 'learning' into evaluator_proto_msg
etiennegalea Dec 5, 2019
471459d
Evaluation Reporter WIP
portaloffreedom Dec 5, 2019
8d373bc
Merge remote-tracking branch 'upstream/learning' into evaluator_proto…
etiennegalea Dec 5, 2019
2c590e9
node pubblisher for gazebo reporter
portaloffreedom Dec 5, 2019
99d02e1
Merge remote-tracking branch 'upstream/learning' into evaluator_proto…
etiennegalea Dec 5, 2019
c0b20d6
improved hyperneat
portaloffreedom Dec 5, 2019
55f9cf3
Added protobuf construction and sending to GazeboReporter. Changed fl…
etiennegalea Dec 5, 2019
c4a3ad9
Merge remote-tracking branch 'etienne/evaluator_proto_msg' into learning
portaloffreedom Dec 5, 2019
fcfd933
Changed protobuf msg ID to string
etiennegalea Dec 5, 2019
fc428cd
Merge remote-tracking branch 'etienne/evaluator_proto_msg' into learning
portaloffreedom Dec 5, 2019
79a2e39
GazeboReporter implementation ready
portaloffreedom Dec 5, 2019
e616cfb
improve learning classes
portaloffreedom Dec 6, 2019
b370be1
removed old pygazebo and improved .gitignore
portaloffreedom Dec 6, 2019
ddb361e
WIP: new CPG BO loading integration
portaloffreedom Dec 9, 2019
beff4fd
Merge branch 'learning' of github.com:ci-group/revolve into learning
portaloffreedom Dec 9, 2019
ac3f28d
Fixed brain imports as it lower version of python results in errors.
etiennegalea Dec 10, 2019
4ef63a8
Debugging
Dec 10, 2019
f7c4a9b
Merge branch 'learning' of github.com:etiennegalea/revolve into learning
Dec 10, 2019
7f3f102
Fixed learning
portaloffreedom Dec 11, 2019
aae3a2d
implemented brain
portaloffreedom Dec 11, 2019
abb2478
new plugin that supports reports is a work in progress...
portaloffreedom Dec 12, 2019
7e8c595
Implemented new world and robot manager for the learning steps
portaloffreedom Jan 2, 2020
3d994f1
Fixed PIGPIO compile warning
portaloffreedom Mar 10, 2020
3aa3349
removed old code
portaloffreedom Mar 10, 2020
d9571cb
Fixed MultiNEAT Neural Network bug
portaloffreedom Mar 10, 2020
abdb362
Targeted locomotion for robots (HW first)
portaloffreedom Mar 10, 2020
809bc9e
catch up with local
Apr 24, 2020
5b027b7
General:
Oct 7, 2020
5b9c719
General:
Oct 7, 2020
a931e5d
General:
Oct 7, 2020
265bf5b
General:
Oct 7, 2020
2411596
Merge GECCO paper branch from Fuda van Diggelen
DaanZ Feb 25, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed MultiNEAT Neural Network bug
the NN needs to be activated as many times as the network is deep
  • Loading branch information
portaloffreedom committed Mar 10, 2020
commit d9571cb1d1df2229aa7887dd62a07507a8a33dc9
12 changes: 10 additions & 2 deletions cpprevolve/revolve/brains/controller/DifferentialCPG.cpp
Original file line number Diff line number Diff line change
@@ -94,6 +94,7 @@ DifferentialCPG::DifferentialCPG(
// build the NN according to the genome
NEAT::NeuralNetwork net;
gen.BuildPhenotype(net);
unsigned int net_depth = net.CalculateNetworkDepth();

// get weights for each connection
// assuming that connections are distinct for each direction
@@ -109,9 +110,12 @@ DifferentialCPG::DifferentialCPG(
inputs[3] = 1;
std::tie(inputs[4], inputs[5], inputs[6]) = motor.first;
inputs[7] = -1;
inputs[8] = 1;

net.Flush();
net.Input(inputs);
net.Activate();
for (int i=0; i<net_depth; i++)
net.Activate();
double weight = net.Output()[0];
#ifdef DifferentialCPG_PRINT_INFO
std::cout << "Creating weight ["
@@ -127,8 +131,12 @@ DifferentialCPG::DifferentialCPG(
int k = con.second;
// convert tuple to vector
std::tie(inputs[0], inputs[1], inputs[2], inputs[3], inputs[4], inputs[5], inputs[6], inputs[7]) = con.first;
inputs[8] = 1;

net.Flush();
net.Input(inputs);
net.Activate();
for (int i=0; i<net_depth; i++)
net.Activate();
double weight = net.Output()[0];
#ifdef DifferentialCPG_PRINT_INFO
std::cout << "Creating weight ["
2 changes: 1 addition & 1 deletion thirdparty/MultiNEAT