
org.apache.ctakes.ytex.kernel.model.CrossValidationFold Maven / Gradle / Ivy
The newest version!
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.ctakes.ytex.kernel.model;
import org.apache.ctakes.ytex.dao.DBUtil;
import java.io.Serializable;
import java.util.Set;
public class CrossValidationFold implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private String corpusName;
private int crossValidationFoldId;
private int fold = 0;
private Set instanceIds;
private String label = DBUtil.getEmptyString();
private int run = 0;
private String splitName = DBUtil.getEmptyString();
public CrossValidationFold() {
super();
}
public CrossValidationFold(String name, String splitName, String label, Integer run,
Integer fold, Set instanceIds) {
super();
this.setCorpusName(name);
this.setSplitName(splitName);
this.setLabel(label);
this.setRun(run);
this.setFold(fold);
this.instanceIds = instanceIds;
}
public String getCorpusName() {
return corpusName;
}
//
// /**
// * is this the training or test fold?
// * @return
// */
// public boolean isTrain() {
// return train;
// }
// public void setTrain(boolean train) {
// this.train = train;
// }
public int getCrossValidationFoldId() {
return crossValidationFoldId;
}
public int getFold() {
return fold;
}
public Set getInstanceIds() {
return instanceIds;
}
public String getLabel() {
return label;
}
public int getRun() {
return run;
}
public String getSplitName() {
return splitName;
}
public void setCorpusName(String name) {
this.corpusName = name;
}
public void setCrossValidationFoldId(int crossValidationFoldId) {
this.crossValidationFoldId = crossValidationFoldId;
}
public void setFold(int fold) {
this.fold = fold;
}
public void setInstanceIds(Set instanceIds) {
this.instanceIds = instanceIds;
}
public void setLabel(String label) {
this.label = DBUtil.nullToEmptyString(label);
}
public void setRun(int run) {
this.run = run;
}
public void setSplitName(String splitName) {
this.splitName = DBUtil.nullToEmptyString(splitName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy