Skip to content

ValueError: could not broadcast input array from shape (2) into shape (3) #14

@AndresPMD

Description

@AndresPMD

When training, at evaluation time, the function construct_N_with_KNN outputs an error in the following line:

index_N_neighbours[i] = cand_nearest_i2t[index_i_txt-1:index_i_txt+2]

The error is:

ValueError: could not broadcast input array from shape (2) into shape (3)

Which makes the code impossible to complete full training.

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