How can I do ordinal regression using the mord module in python?
<p>I am trying to predict a label based on some features and I have some training data. </p>

<p>Searching for ordinal regression in python, I found <a href="http://pythonhosted.org/mord/" rel="nofollow">http://pythonhosted.org/mord/</a> but I could not figure out how to use it. </p>

<p>It would be great if someone has an example code to demonstrate how to use this module.
Here are the classes in the mord module:</p>

<pre><code>&gt;&gt;&gt;import mord    
&gt;&gt;&gt;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']
</code></pre>