Not enough values to unpack (expected 2, got 1
where the code was originally of type array
so fenzi_test is substituted here as an array
so m,n is wrong
Showed by an example, the
you can see that the shape of array and matrix lose unless the result is not the same m, n = np. Shape (data)
so, change the type
Read More:
- Python3-ValueError:not enough values to unpack (expected 2, got 0)
- ValueError: not enough values to unpack (expected 6, got 1)
- ValueError: not enough values to unpack (expected 2, got 0)
- Error occurred when Python called cv2.findcontours: valueerror: not enough values to unpack (expected 3, got 2)
- for k, v in k_map: ValueError: too many values to unpack (expected 2)
- ValueError: too many values to unpack
- ValueError: need more than 0 values to unpack
- [solved] error: valueerror: expected 2D array, got scalar array instead
- valueError: Length mismatch: Expected axis has 40 elements, new values have 38 elements
- Git push failed, prompt unpack error / unpack failed solution
- Android:More than one file was found with OS independent path ‘res/values/values.xml
- ValueError: Expected more than 1 value per channel when training, got input size torch.Size([1, 256,
- Ora-00947: not enough values
- [Solved] RuntimeError: Expected object of scalar type Float but got scalar type Double for argument #2 ‘mat1‘
- RuntimeError: Expected hidden[0] size (x, x, x), got(x, x, x)
- yaml.scanner.ScannerError: mapping values are not allowed here
- Pandas sort according to a column_ values)
- Docker encountered a problem 4: yaml: Line 1: mapping values are not allowed in this context
- AngularJS–[ng:areq] Argument ‘xxCtrl’ is not a function, got undefined! Error (Fixed)
- The pyinstaller settings icon appears“ struct.error : unpack requires a buffer of 16 bytes”