Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix(encoder): fix PCAEncoder mean from fp64 to fp32
Browse files Browse the repository at this point in the history
  • Loading branch information
raccoonliukai committed Sep 9, 2019
1 parent f2fc7e7 commit 8357754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnes/encoder/numeric/pca.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def train(self, vecs: np.ndarray, *args, **kwargs) -> None:
self.pca.partial_fit(vecs)

self.pca_components = np.transpose(self.pca.components_)
self.mean = self.pca.mean_
self.mean = self.pca.mean_.astype('float32')

@train_required
@batching
Expand Down

0 comments on commit 8357754

Please sign in to comment.