ImportError: cannot import name 'SubgradientStructuredSVM'

ImportError: cannot import name 'SubgradientStructuredSVM'

我正在使用 jupyter notebook,并使用 pip install pystruct 安装了 pystruct

from pystruct.learners import SubgradientStructuredSVM

ImportError: 无法导入名称 'SubgradientStructuredSVM'

你能试试吗:

from pystruct.learners import SubgradientSSVM

linkhttps://pystruct.github.io/generated/pystruct.learners.SubgradientSSVM.html.

中给出的更多信息请参考文档