-
Notifications
You must be signed in to change notification settings - Fork 11
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
Evaluate objective in C #366
base: master
Are you sure you want to change the base?
Evaluate objective in C #366
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome, great work @HenrikMettler!!1 🚀
i left a couple of comments that should be addressed before merging.
cgp/cartesian_graph.py
Outdated
"function_name can not be substring of filename, due to function declaration" | ||
"consistency checks" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"function_name can not be substring of filename, due to function declaration" | |
"consistency checks" | |
"function_name can not be substring of filename" |
maybe just shorten to this, since it's anyway hard to understand
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at this again, maybe it is easiest to just remove the ability to set function_name
and filename
? Then we don't have to worry about this check?
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