当前位置: 首页>>代码示例>>Java>>正文


Java MissingIOObjectException类代码示例

本文整理汇总了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);
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:25,代码来源:AbstractExampleSet.java

示例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
	}
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:17,代码来源:ResultContainer.java

示例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);
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:27,代码来源:ExampleSetPlotRenderer.java

示例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);
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:21,代码来源:AbstractExampleSet.java

示例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
	}
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:17,代码来源:ResultContainer.java

示例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);
   }
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:23,代码来源:ExampleSetPlotRenderer.java

示例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;
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:16,代码来源:TabbedResultDisplay.java

示例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);
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:8,代码来源:BackwardAttributeEliminationOperator.java

示例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);
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:8,代码来源:BackwardAttributeEliminationOperator.java


注:本文中的com.rapidminer.operator.MissingIOObjectException类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。