Skip to content

TypeError: Singleton array array(67, dtype=int64) cannot be considered a valid collection. #45

@TK-cosc

Description

@TK-cosc

Hi,When I was running UCF101_3DCNN.py, I got the following error:
......
File "...... .\lib\site-packages\sklearn\metrics\classification.py", line 71, in _check_targets
check_consistent_length(y_true, y_pred)
File "...... .\lib\site-packages\sklearn\utils\validation.py", line 200, in _check_consistent_length
lengths=[_num_samples(X) for X in arrays if X is not None]
File "...... .\lib\site-packages\sklearn\utils\validation.py", line 200, in
lengths=[_num_samples(X) for X in arrays if X is not None]
File "...... .\lib\site-packages\sklearn\utils\validation.py", line 119, in _num_samples
" a valid collection." % x)
TypeError: Singleton array array(67, dtype=int64) cannot be considered a valid collection.

The batch_size is resized as 5, 10, 15, 45, 60, 100, ...... respectively, but this issue exists yet.

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