Skip to content

Commit

Permalink
semaphoreci badge works
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad88me committed May 25, 2018
1 parent a88bd8c commit d03cda5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/test_typical.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,11 @@ 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.90517926],
[0.0908581, 0.9491419]])
[0.02482074, 0.97517926],
[0.0908581, 0.9091419]])
assert predicted_membership == pytest.approx(actual_membership, 0.01)


Expand Down

0 comments on commit d03cda5

Please sign in to comment.