Skip to content

Potential bug: missing changed = True in continuous attribute crossover block in Classifier.py #8

Description

@lema3213

Hi there,
I found a potential issue in the continuous attribute crossover section. It seems that the code may not mark changes correctly. The relevant code from line 225-250 in Classifier.py is shown below:

# Continuous Attribute
if attributeInfoType:
    ...
    if tempKey == 0:
        ...
    elif tempKey == 1:
        ...
    else:
        ...
    # <- missing changed = True here

From the overall crossover logic, it seems that this part of the code should set changed = True at the end of block.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions