Skip to content
This repository was archived by the owner on Nov 19, 2020. It is now read-only.
This repository was archived by the owner on Nov 19, 2020. It is now read-only.

SVM non-sequential 0 to n class outputs causes index out of bounds #355

@stigvoss

Description

@stigvoss

The following code seems to cause array index out of bounds if the outputs array isn't sequential from zero such as [0, 1, 2, ...] but instead e.g. [13, 15, 17, ...] or like.

double[][] inputs = ...
int[] outputs = ...
            
 var teacher = new MulticlassSupportVectorLearning<Gaussian>()
{
    Learner = (param) => new SequentialMinimalOptimization<Gaussian>()
    {
        ...
    }
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions