Skip to content

Bug suspicion #59

@edubois

Description

@edubois

Hi Patrik,

I see something that looks a bit strange to me:

lambda = lambda * static_cast<float>(cv::norm(data)) / static_cast<float>(num_training_elements);

The lambda gets updated, but don't you want this method to be const and use a local copy of the lambda value? Otherwise we are changing the datamember at each call to solve. This might mean it's going smaller and smaller.

Just want to make sure.
What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions