46cb0b5b2cf2d836a2cf96be95d4e25a4004675e,tslearn/clustering.py,KShape,_fit_one_init,#KShape#Any#Any#Any#,729
Before Change
if numpy.abs(old_inertia - self.inertia_) < self.tol:
break
if old_inertia - self.inertia_ < 0:
self.cluster_centers_ = old_cluster_centers
self._assign(X)
break
old_inertia = self.inertia_
if self.verbose:
print("")
After Change
def _fit_one_init(self, X, x_squared_norms, rs):
n_ts, _, d = X.shape
sz = min([ts_size(ts) for ts in X])
if hasattr(self.init, "__array__"):
self.cluster_centers_ = self.init.copy()
else:
self.cluster_centers_ = _k_init(X[:, :sz, :].reshape((n_ts, -1)),
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: rtavenar/tslearn
Commit Name: 46cb0b5b2cf2d836a2cf96be95d4e25a4004675e
Time: 2018-10-22
Author: guillaume.androz@gmail.com
File Name: tslearn/clustering.py
Class Name: KShape
Method Name: _fit_one_init
Project Name: daavoo/pyntcloud
Commit Name: 0da94c2fc76a74e701b653f5b76f8066b4305cdc
Time: 2020-05-13
Author: marcus.wallbaum@gmail.com
File Name: pyntcloud/structures/voxelgrid.py
Class Name: VoxelGrid
Method Name: plot
Project Name: azavea/raster-vision
Commit Name: b41569f833eee8056e920f6dfe267551af2c7f0e
Time: 2017-09-20
Author: lewfish@gmail.com
File Name: src/detection/scripts/make_windows.py
Class Name:
Method Name: make_windows