def test_discretizer(self): reader_gen = DataInMemory(data=self.generated_data) # check if exception safe api.discretizer(reader_gen)._chain[-1].get_output() api.discretizer(reader_gen, transform=api.tica())._chain[-1].get_output() api.discretizer(reader_gen, cluster=api.cluster_uniform_time())._chain[-1].get_output() api.discretizer(reader_gen, transform=api.pca(), cluster=api.cluster_regspace(dmin=10))._chain[-1].get_output()
def test_with_pipeline_time_lagged(self): reader = api.source(self.trajfile, top=self.topfile) assert isinstance(reader, FeatureReader) t = tica(dim=2, lag=1) d = discretizer(reader, t, chunksize=10) d.parametrize()
def test_with_pipeline_time_lagged(self): reader = feature_reader(self.trajfile, self.topfile) #reader.featurizer.distances([[0, 1], [0, 2]]) t = tica(dim=2, lag=1) d = discretizer(reader, t) d.parametrize()