Skip to content

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

@lema3213

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions