For some applications, one might want to evaluate fitness in C. Here CartesianGraph is extended with a function to_c which writes the computational graph into a C-module. An example is provided which performs L2 regression on a simple target function.
Note: Due to a late api change (writing files instead of returning strings) the test is currently not working - I left it as commented out code since large junks of it should be reusable with reading from generated files
For some applications, one might want to evaluate fitness in C. Here
CartesianGraph
is extended with a functionto_c
which writes the computational graph into a C-module. An example is provided which performs L2 regression on a simple target function. Note: Due to a late api change (writing files instead of returning strings) the test is currently not working - I left it as commented out code since large junks of it should be reusable with reading from generated files