本文整理汇总了Java中com.rapidminer.operator.MissingIOObjectException类的典型用法代码示例。如果您正苦于以下问题:Java MissingIOObjectException类的具体用法?Java MissingIOObjectException怎么用?Java MissingIOObjectException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
MissingIOObjectException类属于com.rapidminer.operator包,在下文中一共展示了MissingIOObjectException类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createDataTable
import com.rapidminer.operator.MissingIOObjectException; //导入依赖的package包/类
/**
* This method is used to create a {@link DataTable} from this example set. The default
* implementation returns an instance of {@link DataTableExampleSetAdapter}. The given
* IOContainer is used to check if there are compatible attribute weights which would used as
* column weights of the returned table. Subclasses might want to override this method in order
* to allow for other data tables.
*/
public DataTable createDataTable(IOContainer container) {
AttributeWeights weights = null;
if (container != null) {
try {
weights = container.get(AttributeWeights.class);
for (Attribute attribute : getAttributes()) {
double weight = weights.getWeight(attribute.getName());
if (Double.isNaN(weight)) { // not compatible
weights = null;
break;
}
}
} catch (MissingIOObjectException e) {
}
}
return new DataTableExampleSetAdapter(this, weights);
}
示例2: ResultContainer
import com.rapidminer.operator.MissingIOObjectException; //导入依赖的package包/类
public ResultContainer(String name, String processXML, IOContainer ioContainer) {
this.name = name;
this.processXML = processXML;
this.resultString = ioContainer.toString();
try {
PerformanceVector performanceVector = ioContainer.get(PerformanceVector.class);
PerformanceCriterion criterion = performanceVector.getMainCriterion();
if (criterion != null) {
this.group = new TestGroup(criterion.getExampleCount(), criterion.getAverage(), criterion.getVariance());
} else {
this.group = null;
}
} catch (MissingIOObjectException e) {
// tries to find a performance. Ok if this does not work
}
}
示例3: getDataTable
import com.rapidminer.operator.MissingIOObjectException; //导入依赖的package包/类
/**
* This method is used to create a {@link DataTable} from this example set. The default
* implementation returns an instance of {@link DataTableExampleSetAdapter}. The given
* IOContainer is used to check if there are compatible attribute weights which would used as
* column weights of the returned table. Subclasses might want to override this method in order
* to allow for other data tables.
*/
@Override
public DataTable getDataTable(Object renderable, IOContainer container) {
ExampleSet exampleSet = (ExampleSet) renderable;
AttributeWeights weights = null;
if (container != null) {
try {
weights = container.get(AttributeWeights.class);
for (Attribute attribute : exampleSet.getAttributes()) {
double weight = weights.getWeight(attribute.getName());
if (Double.isNaN(weight)) { // not compatible
weights = null;
break;
}
}
} catch (MissingIOObjectException e) {
}
}
return new DataTableExampleSetAdapter(exampleSet, weights, false);
}
示例4: createDataTable
import com.rapidminer.operator.MissingIOObjectException; //导入依赖的package包/类
/** This method is used to create a {@link DataTable} from this example set. The default implementation
* returns an instance of {@link DataTableExampleSetAdapter}. The given IOContainer is used to check if
* there are compatible attribute weights which would used as column weights of the returned table.
* Subclasses might want to override this method in order to allow for other data tables. */
public DataTable createDataTable(IOContainer container) {
AttributeWeights weights = null;
if (container != null) {
try {
weights = container.get(AttributeWeights.class);
for (Attribute attribute : getAttributes()) {
double weight = weights.getWeight(attribute.getName());
if (Double.isNaN(weight)) { // not compatible
weights = null;
break;
}
}
} catch (MissingIOObjectException e) {}
}
return new DataTableExampleSetAdapter(this, weights);
}
示例5: ResultContainer
import com.rapidminer.operator.MissingIOObjectException; //导入依赖的package包/类
public ResultContainer(String name, String processXML, IOContainer ioContainer) {
this.name = name;
this.processXML = processXML;
this.resultString = ioContainer.toString();
try {
PerformanceVector performanceVector = ioContainer.get(PerformanceVector.class);
PerformanceCriterion criterion = performanceVector.getMainCriterion();
if (criterion != null) {
this.group = new TestGroup(criterion.getExampleCount(), criterion.getAverage(), criterion.getVariance());
} else {
this.group = null;
}
} catch (MissingIOObjectException e) {
// tries to find a performance. Ok if this does not work
}
}
示例6: getDataTable
import com.rapidminer.operator.MissingIOObjectException; //导入依赖的package包/类
/** This method is used to create a {@link DataTable} from this example set. The default implementation
* returns an instance of {@link DataTableExampleSetAdapter}. The given IOContainer is used to check if
* there are compatible attribute weights which would used as column weights of the returned table.
* Subclasses might want to override this method in order to allow for other data tables. */
@Override
public DataTable getDataTable(Object renderable, IOContainer container) {
ExampleSet exampleSet = (ExampleSet)renderable;
AttributeWeights weights = null;
if (container != null) {
try {
weights = container.get(AttributeWeights.class);
for (Attribute attribute : exampleSet.getAttributes()) {
double weight = weights.getWeight(attribute.getName());
if (Double.isNaN(weight)) { // not compatible
weights = null;
break;
}
}
} catch (MissingIOObjectException e) {}
}
return new DataTableExampleSetAdapter(exampleSet, weights);
}
示例7: convertToList
import com.rapidminer.operator.MissingIOObjectException; //导入依赖的package包/类
private static List<ResultObject> convertToList(IOContainer container) {
List<ResultObject> list = new LinkedList<ResultObject>();
if (container != null) {
ResultObject result = null;
do {
try {
result = container.get(ResultObject.class, list.size());
list.add(result);
} catch (MissingIOObjectException e) {
break;
}
} while (result != null);
}
return list;
}
示例8: getPerformance
import com.rapidminer.operator.MissingIOObjectException; //导入依赖的package包/类
private PerformanceVector getPerformance(ExampleSet exampleSet) throws OperatorException, MissingIOObjectException {
innerExampleSetSource.deliver(exampleSet);
getSubprocess(0).execute();
return innerPerformanceSink.getData(PerformanceVector.class);
}
示例9: getPerformance
import com.rapidminer.operator.MissingIOObjectException; //导入依赖的package包/类
private PerformanceVector getPerformance(ExampleSet exampleSet) throws OperatorException, MissingIOObjectException {
innerExampleSetSource.deliver(exampleSet);
getSubprocess(0).execute();
return innerPerformanceSink.getData(PerformanceVector.class);
}