Skip to content

Lists of arrays with varying numbers of elements should not be converted into numpy arrays #7

Description

@francescopisu

Is your proposal related to a problem?

Trying to create a numpy array from a list of arrays with varying number of elements results in a ValueError.

See stack trace:

ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (20,) + inhomogeneous part.

Describe the solution you'd like

The following attributes of CVModellingOutput should be lists instead:

  • gts_train
  • gts_val
  • probas_train
  • probas_val
  • errors
  • correct
  • features

Describe alternatives you've considered

N.A.

Additional context

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions