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

Fast MIMIC Fails TSPOpt #58

Open
gnodabb opened this issue Feb 21, 2022 · 0 comments
Open

Fast MIMIC Fails TSPOpt #58

gnodabb opened this issue Feb 21, 2022 · 0 comments

Comments

@gnodabb
Copy link

gnodabb commented Feb 21, 2022

When running TSPOpt problem with custom distance. MIMIC fails only when fast_mimic=True.

Code that works:

best_state, best_fitness, fit_curve = mlrose.mimic(problem_cust, max_attempts=100, max_iters=1000, random_state=42,
                                                       curve=True)

Code that fails:

best_state, best_fitness, fit_curve = mlrose.mimic(problem_cust, max_attempts=100, max_iters=1000, random_state=42,
                                                   fast_mimic=True, curve=True)

It is specifically failing in opt_probs.py on line 1010. The issue is that remaining is empty and it's trying to pull a random choice from an empty array.

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

1 participant