📄 crossvalidation.java
字号:
package mulan.evaluation;
/**
* CrossValidation - has identical semantics with Evaluation.
* User is passed an instance of this class when calling
* Evaluator.crossValidate() and friends.
*/
public class CrossValidation extends Evaluation {
protected int numFolds;
// TODO: add some stratification options?
protected CrossValidation(LabelBasedEvaluation labelBased,
ExampleBasedEvaluation exampleBased,
LabelRankingBasedEvaluation rankingBased, int numFolds) {
super(labelBased, exampleBased, rankingBased);
this.numFolds = numFolds;
}
public int numFolds() {
return numFolds;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -