gkhayes / mlrose

Python package for implementing a number of Machine Learning, Randomized Optimization and SEarch algorithms.
https://mlrose.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
235 stars 243 forks source link

Hill Climb Curve? #38

Closed Kingloko closed 4 years ago

Kingloko commented 4 years ago

I was looking at the code and it looks like the curve array only gets updated once per restart, I'd expect it to update once per iteration.

Is that on purpose or a bug?

Code snippet below for context:


for _ in range(restarts + 1):
         ...

        while iters < max_iters:
            ...

       ...
        if curve:
            fitness_curve.append(problem.get_fitness())```
gkhayes commented 4 years ago

This is being addressed by #44.