我很高兴Accord.net 3.8版本终于发布了,当然,AdaBoost类拥有清晰的决定和学习方法。请给我一个关于新的AdaBoost类的例子,或者告诉我们更多关于数据类型的ISupervisedLearning,我写了一些这样的示例,但是不清楚这种类型是什么或者它是如何工作的?
public void Learn_Internal(double[][] aadMlInpFv, int[] anMlOutGt)
{
if (aadMlInpFv == null || aadMlInpFv.Length == 0) return;
try
{
if (m_teacher == null)
{
m_oModel_Adaboost = new Boost<DecisionStump>();
m_teacher = new AdaBoost<DecisionStump>()
{
MaxIterations = 100,
Tolerance = 1e-10
};
}
m_teacher.Learner = U_LearnerFunc;
m_oModel_Adaboost = m_teacher.Learn(aadMlInpFv, anMlOutGt); // error should be zero.
}
catch (Exception ex)
{
}
}
private ISupervisedLearning<DecisionStump, double[], int> U_LearnerFunc(AdaBoostParameters arg)
{
throw new NotImplementedException();
}发布于 2017-10-31 07:42:44
已经通过以下方法解决了这一问题:
m_teacher = new AdaBoost<DecisionStump>()
{
Learner = (p) => new ThresholdLearning(),
MaxIterations = 100,
Tolerance = 1e-10
};https://stackoverflow.com/questions/47029378
复制相似问题