spicy2013: scikit-fuzzy_demo - Error with the exercise

152 views
Skip to first unread message

Stavros Anastasiadis

unread,
Apr 21, 2014, 6:39:26 AM4/21/14
to scikit...@googlegroups.com
Within the scikit-fuzzy_demo , in the first step of the exercise
1. Go back and re-calculate the relation using `fuzz.relation_min` instead of `fuzz.relation_product`

i get the following error: 

/usr/local/lib/python2.7/dist-packages/scikit_fuzzy-0.1dev-py2.7.egg/skfuzzy/fuzzymath/fuzzy_ops.pyc in relation_min(A, B)
    680     A = np.atleast_2d(A)
    681     B = np.atleast_2d(B)
--> 682     return np.fmin(np.dot(A.T, np.ones((1, m))), np.dot(np.ones((n, 1)), B))

ValueError:
operands could not be broadcast together with shapes (71,71) (36,36) 



Moeljono Widjaja

unread,
Nov 7, 2017, 2:41:31 AM11/7/17
to scikit-fuzzy
I encountered the same error too.

Moeljono Widjaja

unread,
Nov 7, 2017, 2:47:31 AM11/7/17
to scikit-fuzzy
Here is the error message:

lib/python3.5/site-packages/skfuzzy/fuzzymath/fuzzy_ops.py in relation_min(a, b)
    797     a = np.atleast_2d(a)
    798     b = np.atleast_2d(b)
--> 799     return np.fmin(np.dot(a.T, np.ones((1, m))), np.dot(np.ones((n, 1)), b))
    800 
    801 


ValueError: operands could not be broadcast together with shapes (71,71) (36,36) 
On Monday, April 21, 2014 at 5:39:26 PM UTC+7, Stavros Anastasiadis wrote:
Reply all
Reply to author
Forward
0 new messages