Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

src/d/r/dragnet-HEAD/dragnet/weninger.py   dragnet(Download)
    def predict(self, features):
        assert features.shape[1] == 2
        km = KMeansFixedOrigin(self._clusters)
        km.fit(features)
        content = km.closest_centers(features) > 0