Skip to content

Bug in indexing. Code fails with error.  #147

Closed
@why-not

Description

@why-not

random_gene_idx = numpy.random.choice(range(offspring.shape[0]))

Easy fix.
It Should be
random_gene_idx = numpy.random.choice(range(offspring.shape[1]))

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions