We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ed8e13 commit 5b83c3dCopy full SHA for 5b83c3d
dpbench/benchmarks/pca/pca_numba_n.py
@@ -39,7 +39,7 @@ def pca(data, dims_rescaled_data=2):
39
evectors = evectors[:, :dims_rescaled_data]
40
41
# carry out the transformation on the data using eigenvectors
42
- tdata = np.dot(evectors.T, data.T).T
+ tdata = np.dot(evectors.T.astype(data.dtype), data.T).T
43
44
# return the transformed data, eigenvalues, and eigenvectors
45
return tdata, evalues, evectors
0 commit comments