Skip to content

array mismatch in stacked_generalization.py #1

@cosmos2006

Description

@cosmos2006

While executing stacked_generalization, following error appears:

Iteration [0]
Traceback (most recent call last):
File "stacked_generalization.py", line 179, in
score = run(data)
File "stacked_generalization.py", line 95, in run
X = np.array([ i[:-1] for i in data ], dtype=float)

ValueError: setting an array element with a sequence.

How to remove this error( I am a new user of python)?

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