cvmatrix 2.0.1__tar.gz → 2.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: cvmatrix
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: Fast computation of possibly weighted and possibly centered/scaled training set kernel matrices in a cross-validation setting.
5
5
  License: Apache-2.0
6
6
  Author: Sm00thix
@@ -0,0 +1 @@
1
+ __version__ = "2.0.2"
@@ -731,14 +731,14 @@ class CVMatrix:
731
731
  ) and self.Y_total is not None:
732
732
  self.sum_Y_total = np.sum(self.Yw_total, axis=0, keepdims=True)
733
733
  if self.scale_X:
734
- self.sum_sq_X_total = np.expand_dims(
735
- np.einsum("ij, ij -> j", self.Xw_total, self.X_total), axis=0
734
+ self.sum_sq_X_total = np.sum(
735
+ self.Xw_total * self.X_total, axis=0, keepdims=True
736
736
  )
737
737
  else:
738
738
  self.sum_sq_X_total = None
739
739
  if self.scale_Y and self.Y_total is not None:
740
- self.sum_sq_Y_total = np.expand_dims(
741
- np.einsum("ij, ij -> j", self.Yw_total, self.Y_total), axis=0
740
+ self.sum_sq_Y_total = np.sum(
741
+ self.Yw_total * self.Y_total, axis=0, keepdims=True
742
742
  )
743
743
  else:
744
744
  self.sum_sq_Y_total = None
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "cvmatrix"
3
- version = "2.0.1"
3
+ version = "2.0.2"
4
4
  description = "Fast computation of possibly weighted and possibly centered/scaled training set kernel matrices in a cross-validation setting."
5
5
  authors = ["Sm00thix <oleemail@icloud.com>"]
6
6
  maintainers = ["Sm00thix <oleemail@icloud.com>"]
@@ -1 +0,0 @@
1
- __version__ = "2.0.1"
File without changes
File without changes