shogun-toolbox / shogun

Shōgun
http://shogun-toolbox.org
BSD 3-Clause "New" or "Revised" License
3.03k stars 1.04k forks source link

Can not import KNN from shogun #5117

Closed OrkhanHI closed 3 years ago

OrkhanHI commented 4 years ago

import shogun as sg from shogun import MulticlassLabels, features from shogun import KNN

ImportError                               Traceback (most recent call last)
<ipython-input-4-9a4ca00b2499> in <module>
      1 import shogun as sg
      2 from shogun import MulticlassLabels, features
----> 3 from shogun import KNN

ImportError: cannot import name 'KNN'
karlnapf commented 4 years ago

Hi, is this the develop version? If so, you will have to do something like import sg; knn = sg.machine("KNN")

nitkannen commented 3 years ago

yes

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue is now being closed due to a lack of activity. Feel free to reopen it.