app/corex.py
def events_from_samples(self, X):
        """Transform data into event format. See event_from_sample docstring."""
        n_samples, n_visible = X.shape
        events_to_transform = np.empty((self.n_events, n_samples), dtype=bool)
        for l, x in enumerate(X):
            events_to_transform[:, l] = self.event_from_sample(x)
        return events_to_transform
Transform data into event format. See event_from_sample docstring.
Transform data into event format.
Transform data into event format .
def events_from_samples(self, X):
        n_samples, n_visible = X.shape
        events_to_transform = np.empty((self.n_events, n_samples), dtype=bool)
        for l, x in enumerate(X):
            events_to_transform[:, l] = self.event_from_sample(x)
        return events_to_transform
def events_from_samples ( self , X ) : n_samples , n_visible = X . shape events_to_transform = np . empty ( ( self . n_events , n_samples ) , dtype = bool ) for l , x in enumerate ( X ) : events_to_transform [ : , l ] = self . event_from_sample ( x ) return events_to_transform
Transform data into event format.
Transform data into event format .
"""Transform data into event format. See event_from_sample docstring."""
self
X