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

Improve uniformity penalty formula #88

Open
ngeiswei opened this issue Mar 14, 2019 · 9 comments
Open

Improve uniformity penalty formula #88

ngeiswei opened this issue Mar 14, 2019 · 9 comments

Comments

@ngeiswei
Copy link
Member

ngeiswei commented Mar 14, 2019

The uniformity penalty formula can probably be improved. This can be seen by looking at the log of resulting from running diversityUTest::test_diversity_5_parity_no_autoscale(). At the end of the first iteration, the best 2 candidates are true and false. However false already has a small uniformity penalty, which doesn't make much sense since its behavioral score is at maximum distance from the behavioral score of true, ideally it should be null.

@chamorajg
Copy link

Can I work on this issue ? I am new to the organisation. I would like to contribute to this code.

@linas
Copy link
Member

linas commented Aug 25, 2019

Of course you can work on this issue! Moses is a relatively complex system, so as a newcomer, you will find it challenging to learn the system... moses is a genetic programming system, and like any kind of genetic system, it uses evolutionary algorithms to find good solutions to problems. The trick is how to speed up, improve convergence, and one very interesting possibility to artificially force as diverse a population as possible, so that the solution space is searched with less waste.

We do not yet have any good way of measuring "diversity", or even defining what it is. One key concept is of "ultrametrics" and an understanding that ecological niches resemble "spin glasses" (or rather, the ultrametricity of spin glasses).

@ngeiswei
Copy link
Member Author

Thanks for your interest, @chandramoulirajagopalan, you will likely find the following document useful https://github.com/opencog/moses/blob/master/moses/moses/documentation/diversity_report_v0.3_disclosable.pdf

The issue here could be a bug or something deeper, to be investigated.

@chamorajg
Copy link

thanks @ngeiswei for your help. I will work on this and if I have any doubts I shall ask. I just went through the MOSES algorithm and it's usage. So I am just going through the source code to have a good idea how things are implemented. I need constant help from you guys to solve this. Thanks for your help though.

@chamorajg
Copy link

So we have to update the uniformity_penalty_formula in moses/moses/metapopulation/diversity.cc right ? The penalty score must be updated to a better higher score so the behavioral score is near to null (ideally should be null).

@ngeiswei
Copy link
Member Author

ngeiswei commented Aug 29, 2019

Correct @chandramoulirajagopalan, so first of all you should try to explain the math that is going on in that instance diversityUTest::test_diversity_5_parity_no_autoscale(), then explain it to us here, so we'll be able to understand if it's a bug, something that can be improved, or something normal.

@chamorajg
Copy link

@ngeiswei When I execute diversityUTest::test_diversity_5_parity_no_autoscale() test the behavioural score is showing null value. There is no 0 or any integer shown against it whereas uniformity_penalty, score, complexity_score and complexity_score is shown.

@chamorajg
Copy link

Can I know the fitness cases for the 5 parity diversity no autoscale ? Is it odd or even parity test ?
https://github.com/opencog/moses/blob/master/moses/moses/documentation/diversity_report_v0.3_disclosable.pdf
If I can have more sources about the test I can start evaluating the scores mathematically and then verify them.

@ngeiswei
Copy link
Member Author

@chandramoulirajagopalan, it is even parity, as described in moses --help (grep its output with parity).

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

No branches or pull requests

3 participants