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

Lexicase survival #23

Merged
merged 9 commits into from Aug 2, 2017
Merged

Lexicase survival #23

merged 9 commits into from Aug 2, 2017

Conversation

rgupta90
Copy link
Collaborator

This has issues and doesn't run. Creating request for analysis in this separate branch.

Gives error 'bool' is not a type identifier in

cdef void _epsilon_lexicase "epsilon_lexicase"(Map[ArrayXXd] & F, int n,
int d, int num_selections,
Map[ArrayXi] & locs, bool lex_size, Map[ArrayXi] &sizes)

@lacava
Copy link
Owner

lacava commented Jun 26, 2017

this might help

Copy link
Owner

@lacava lacava left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good. just one line i would remove.

vector<int> ind_locs;
if(lex_size){
vector<int> ind_locs(n);
if(lex_size){
char message[200];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get rid of this

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done. removed message array declaration

@rgupta90
Copy link
Collaborator Author

rgupta90 commented Aug 1, 2017 via email

vector<int> ind_locs(n);
if(lex_size){
char message[200];
vector<int> ind_locs(n);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ind_locs should start out empty if you are pushing back values into it. otherwise it will be 2n after lex_size.

Copy link
Collaborator Author

@rgupta90 rgupta90 Aug 1, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, I also thought so, but it was showing an error with just declaring it above vector ind_locs and then reserving size inside else statement(when lex_size is not there). And if I just declare and define inside else, it may not be accessible outside.
In case this is 2n after lex_size and is an issue, will have to see an alternative.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ind_locs.resize(n); should work.

@rgupta90
Copy link
Collaborator Author

rgupta90 commented Aug 1, 2017 via email

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 74.754% when pulling 2b6b9a4 on lexicase_survival into bee67c4 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 74.754% when pulling be1b7e9 on lexicase_survival into bee67c4 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 75.089% when pulling 7df082a on lexicase_survival into bee67c4 on master.

@lacava
Copy link
Owner

lacava commented Aug 2, 2017

i finally got this to compile on my system. there was a dangling build of the shared object in ~/anaconda3/lib/python3.5/site-packages/ that was giving an argument mismatch. it seems to work well now. I also added a test for the lex_size flag to test_selection.py.

@lacava lacava closed this Aug 2, 2017
@lacava lacava reopened this Aug 2, 2017
@lacava lacava merged commit ee6da54 into master Aug 2, 2017
@rgupta90
Copy link
Collaborator Author

rgupta90 commented Aug 2, 2017 via email

@lacava lacava deleted the lexicase_survival branch October 6, 2017 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants