running scikit-learn on Sypder with Python 3.5 I am trying to print a accuracy score and get this message:

&lt;function accuracy_score at 0x0000018A76046840&gt;

So I am wondering if I am missing a package or is something installed incorrect?

Code:

from sklearn import datasets
from sklearn.metrics import accuracy_score
from sklearn import svm
iris = datasets.load_iris()
X = iris.data
y= iris.target
#print (iris.keys)
print('**********')
#print (iris['feature names'])
print('**********')
#print (iris)
#print (iris['data'].shape,'legth: ',len(iris['target']))
clf = svm.SVC(gamma=0.001, C=100)
clf.fit(X,y)
y_hat=clf.predict(X)
accuracy_score(y, y_hat)
score = accuracy_score
print (score)
The reason is that you are printing the object of function. Instead call the function. Suppose the name of your function is func. You are doing something like 

print(func)


instead try to call it by adding parenthesis. 

print(func())