msaf/algorithms/olda/OLDA.py
def fit(self, X, Y):
        '''Fit the OLDA model

        Parameters
        ----------
        X : array-like, shape [n_samples]
            Training data: each example is an n_features-by-* data array

        Y : array-like, shape [n_samples]
            Training labels: each label is an array of change-points
                             (eg, a list of segment boundaries)

        Returns
        -------
        self : object
        '''
        
        # Re-initialize the scatter matrices
        self.scatter_ordinal_ = None
        self.scatter_within_  = None
        
        # Reduce to partial-fit
        self.partial_fit(X, Y)
        
        return self
def fit(self, X, Y):
        '''Fit the OLDA model

        Parameters
        ----------
        X : array-like, shape [n_samples]
            Training data: each example is an n_features-by-* data array

        Y : array-like, shape [n_samples]
            Training labels: each label is an array of change-points
                             (eg, a list of segment boundaries)

        Returns
        -------
        self : object
        '''
        
        # Re-initialize the scatter matrices
        self.scatter_ordinal_ = None
        self.scatter_within_  = None
        
        # Reduce to partial-fit
        self.partial_fit(X, Y)
        
        return self
def fit ( self , X , Y ) : # Re-initialize the scatter matrices self . scatter_ordinal_ = None self . scatter_within_ = None # Reduce to partial-fit self . partial_fit ( X , Y ) return self
Fit the OLDA model

        Parameters
        ----------
        X : array-like, shape [n_samples]
            Training data: each example is an n_features-by-* data array

        Y : array-like, shape [n_samples]
            Training labels: each label is an array of change-points
                             (eg, a list of segment boundaries)

        Returns
        -------
        self : object
Fit the OLDA model