Skip to content

Commit

Permalink
enable travis
Browse files Browse the repository at this point in the history
  • Loading branch information
santolucito committed Jan 25, 2019
1 parent d8a2093 commit 59f1014
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: python
python:
- "3.3"
# command to install dependencies
install:
- pip install -r requirements.txt
# command to run tests
script:
- python tests/test.py
11 changes: 11 additions & 0 deletions tests/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from clustering.equal_groups import EqualGroupsKMeans

import numpy as np

X = np.array([[1, 2], [4, 4], [1, 0], [3, 2], [4, 4], [4, 0]])

clf = EqualGroupsKMeans(n_clusters=2)

clf.fit(X)

print (clf.labels_)

0 comments on commit 59f1014

Please sign in to comment.