Skip to content

Commit

Permalink
test semaphoreci badge
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad88me committed May 25, 2018
1 parent 04e9cea commit a88bd8c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/test_typical.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@ def test_2d():
assert fcm.cluster_centers_[0][1] == pytest.approx(1.66666667, 0.1)
testing_data = np.array([[0, 1.9], [3, 3], [4, 4], [8, 9], [9.5, 6.5]])
predicted_membership = fcm.predict(testing_data)
# actual_membership = np.array([[0.98777232, 0.01222768],
# [0.94884591, 0.05115409],
# [0.82813688, 0.17186312],
# [0.02482074, 0.97517926],
# [0.0908581, 0.9091419]])
actual_membership = np.array([[0.98777232, 0.01222768],
[0.94884591, 0.05115409],
[0.82813688, 0.17186312],
[0.02482074, 0.97517926],
[0.0908581, 0.9091419]])
[0.02482074, 0.90517926],
[0.0908581, 0.9491419]])
assert predicted_membership == pytest.approx(actual_membership, 0.01)


Expand Down

0 comments on commit a88bd8c

Please sign in to comment.