Skip to content

Type Error in linear_discriminant_analysis.py #1601

@miladsade96

Description

@miladsade96

There is a type error in this following code:
pre_indexes = predict_y_values(x, actual_means, variance, probabilities)
the 'probabilities' parameter must be a list object , but is a generator object.
generated error is as follows:
TypeError: 'generator' object is not subscriptable

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