1
我想根据一些功能预测标签,并且我有一些培训数据。如何在Python中使用mord模块进行序数回归?
在Python中搜索序数回归,我发现http://pythonhosted.org/mord/,但我不知道如何使用它。
如果有人有演示如何使用此模块的示例代码,那将会很棒。 下面是MORD模块中的类:
>>>import mord
>>>dir(mord)
['LAD',
'LogisticAT',
'LogisticIT',
'LogisticSE',
'OrdinalRidge',
'__builtins__',
'__doc__',
'__file__',
'__name__',
'__package__',
'__path__',
'__version__',
'base',
'check_X_y',
'grad_margin',
'linear_model',
'log_loss',
'metrics',
'np',
'obj_margin',
'optimize',
'propodds_loss',
'regression_based',
'sigmoid',
'svm',
'threshold_based',
'threshold_fit',
'threshold_predict',
'utils']