Skip to content

Chapter04/vector_quantization.py, Raise ValueError: Need at least 1 and at most 32 array objects. #5

@RankeTao

Description

@RankeTao

When I run vector_quantization.py on pthon 3, i came to this problem. How to fix it ?
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\iweut\AppData\Local\Programs\Python\Python37\lib\site-packages\numpy\co
6, in _wrapfunc
return getattr(obj, method)(*args, **kwds)
ValueError: Need at least 1 and at most 32 array objects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions