Revision c6d4fdb44a004f804c489c8cb1739ba17d0b0939 authored by TUNA Caglayan on 20 October 2021, 10:09:49 UTC, committed by TUNA Caglayan on 20 October 2021, 10:09:49 UTC
1 parent 2b16764
_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 ...