running scikit-learn on Sypder with Python 3.5
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())