Revision e54a8ffb2a30952542234280d443c6dd6e2649d5 authored by TUNA Caglayan on 26 April 2021, 13:54:29 UTC, committed by TUNA Caglayan on 12 May 2021, 12:26:22 UTC
1 parent 5412537
_base_decomposition.py
"""Base classes for all estimators, ensure compatibility with Scikit-Learn
"""
class DecompositionMixin:
def fit(self, tensor, **kwargs):
_ = self.fit_transform(tensor, **kwargs)
return self
def __repr__(self):
return f'{self.__class__.__name__} decomposition of rank {self.rank}.'
Computing file changes ...