Open hugodecasta opened 7 months ago
Related to issue #6
The cvx.matrix call can raise a buffer format not supported exception resulting in an empty end DataFrame from feature extraction.
cvx.matrix
buffer format not supported
This is due to the y input format being in float32 instead of float64
y
float32
float64
https://stackoverflow.com/questions/33423081/converting-numpy-vector-to-cvxopt#answers https://github.com/cvxopt/cvxopt/blob/3b718ee560b3b97d6255c55f0ed7f64cb4b72082/src/C/dense.c#L231
... n = len(y) y = cvx.matrix(y) ...
... n = len(y) y = y.astype(np.double) y = cvx.matrix(y) ...
Fixing EDA CVX matrix creation
Related to issue #6
The
cvx.matrix
call can raise abuffer format not supported
exception resulting in an empty end DataFrame from feature extraction.This is due to the
y
input format being infloat32
instead offloat64
https://stackoverflow.com/questions/33423081/converting-numpy-vector-to-cvxopt#answers https://github.com/cvxopt/cvxopt/blob/3b718ee560b3b97d6255c55f0ed7f64cb4b72082/src/C/dense.c#L231
Past code
Modifyed code