【问题标题】:cross validation in crf++crf++中的交叉验证
【发布时间】:2014-08-19 12:14:13
【问题描述】:

我想知道如何在 CRF++ 中进行交叉验证。它写在文档中:

crf_learn -f 3 -c 1.5 template_file train_file model_file

-c float:

With this option, you can change the hyper-parameter for the CRFs. With larger C value,
CRF tends to overfit to the give training corpus. This parameter trades the balance
between overfitting and underfitting. The results will significantly be influenced 
by this parameter. You can find an optimal value by using held-out data or more 
general model selection method such as cross validation.

如何进行本手册中提到的交叉验证

【问题讨论】:

    标签: crf crf++


    【解决方案1】:

    如果我的理解是正确的,CRF++ 没有内置交叉验证功能。我们必须分开做

    【讨论】:

      【解决方案2】:

      手册试图说您可以通过自己对保留集执行交叉验证或测试来找出 C 参数的最佳值。 CRF++ 没有这样的功能。 谢谢

      【讨论】:

        猜你喜欢
        • 2023-03-10
        • 2018-03-09
        • 2018-06-13
        • 2012-01-13
        • 2015-05-13
        • 2015-05-27
        • 2011-07-09
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多