Revision c37a55579df7095a5ee66a62a5b99281bdf01418 authored by TUNA Caglayan on 01 September 2021, 09:32:34 UTC, committed by TUNA Caglayan on 01 September 2021, 09:32:34 UTC
1 parent 4772692
_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 ...