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 a08706b commit cc39e3bCopy full SHA for cc39e3b
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