2005- Loss functions for preference levels- Regression with discrete ordered labels-IJCAI
本文核心是:给带顺序的离散标签设计合理的损失函数
最优的损失函数:3.2 All-Threshold
该论文模型可通过以下方法调用:
from mord import LogisticAT model = LogisticAT() model.fit(X=X_train, y=y_train) y_hat = model.predict(X=X_test) ACC = accuracy_score(y_true=y_test, y_pred=y_hat) print("LogistAT精度:",ACC)mord.LogisticAT()的 thresholds 是在同一个方向上的。
所有类别共享同一个w,只是在这个方向上有多个 threshold。
