當前位置: 首頁>>代碼示例>>Java>>正文


Java ResourceConsumptionEstimator類代碼示例

本文整理匯總了Java中com.rapidminer.operator.annotation.ResourceConsumptionEstimator的典型用法代碼示例。如果您正苦於以下問題:Java ResourceConsumptionEstimator類的具體用法?Java ResourceConsumptionEstimator怎麽用?Java ResourceConsumptionEstimator使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ResourceConsumptionEstimator類屬於com.rapidminer.operator.annotation包,在下文中一共展示了ResourceConsumptionEstimator類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getResourceConsumptionEstimator

import com.rapidminer.operator.annotation.ResourceConsumptionEstimator; //導入依賴的package包/類
/**
 * Gets the ResourceConsumptionEstimator for a given class.
 * 
 * @param inputPort
 *            the input port
 * @param clazz
 *            the class for which the ResourceConsumptionEstimator should be created
 * @param attributeSelector
 *            the attributeSelector (if existing)
 * @return the ResourceConsumptionEstimator for the given class
 */
public static ResourceConsumptionEstimator getResourceConsumptionEstimator(InputPort inputPort, Class clazz,
		AttributeSubsetSelector attributeSelector) {
	String[] timeConsumption = getTimeConsumption(clazz);
	String[] memoryConsumption = getMemoryConsumption(clazz);
	if (timeConsumption == null || memoryConsumption == null) {
		return null;
	}

	PolynomialFunction timeFunction = new PolynomialFunction(Double.parseDouble(timeConsumption[0]),
			Double.parseDouble(timeConsumption[1]), Double.parseDouble(timeConsumption[3]),
			Double.parseDouble(timeConsumption[2]), Double.parseDouble(timeConsumption[4]));
	PolynomialFunction memoryFunction = new PolynomialFunction(Double.parseDouble(memoryConsumption[0]),
			Double.parseDouble(memoryConsumption[1]), Double.parseDouble(memoryConsumption[3]),
			Double.parseDouble(memoryConsumption[2]), Double.parseDouble(memoryConsumption[4]));

	return new PolynomialExampleSetResourceConsumptionEstimator(inputPort, attributeSelector, timeFunction,
			memoryFunction);
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:30,代碼來源:OperatorResourceConsumptionHandler.java

示例2: getResourceConsumptionEstimator

import com.rapidminer.operator.annotation.ResourceConsumptionEstimator; //導入依賴的package包/類
/**
 * Gets the ResourceConsumptionEstimator for a given class.
 * 
 * @param inputPort
 *            the input port
 * @param clazz
 *            the class for which the ResourceConsumptionEstimator should be created
 * @param attributeSelector
 *            the attributeSelector (if existing)
 * @return the ResourceConsumptionEstimator for the given class
 */
public static ResourceConsumptionEstimator getResourceConsumptionEstimator(InputPort inputPort, Class<?> clazz,
		AttributeSubsetSelector attributeSelector) {
	String[] timeConsumption = getTimeConsumption(clazz);
	String[] memoryConsumption = getMemoryConsumption(clazz);
	if (timeConsumption == null || memoryConsumption == null) {
		return null;
	}

	PolynomialFunction timeFunction = new PolynomialFunction(Double.parseDouble(timeConsumption[0]),
			Double.parseDouble(timeConsumption[1]), Double.parseDouble(timeConsumption[3]),
			Double.parseDouble(timeConsumption[2]), Double.parseDouble(timeConsumption[4]));
	PolynomialFunction memoryFunction = new PolynomialFunction(Double.parseDouble(memoryConsumption[0]),
			Double.parseDouble(memoryConsumption[1]), Double.parseDouble(memoryConsumption[3]),
			Double.parseDouble(memoryConsumption[2]), Double.parseDouble(memoryConsumption[4]));

	return new PolynomialExampleSetResourceConsumptionEstimator(inputPort, attributeSelector, timeFunction,
			memoryFunction);
}
 
開發者ID:rapidminer,項目名稱:rapidminer-studio,代碼行數:30,代碼來源:OperatorResourceConsumptionHandler.java

示例3: getResourceConsumptionEstimator

import com.rapidminer.operator.annotation.ResourceConsumptionEstimator; //導入依賴的package包/類
/**
 * Gets the ResourceConsumptionEstimator for a given class.
 * 
 * @param inputPort
 *            the input port
 * @param clazz
 *            the class for which the ResourceConsumptionEstimator should be created
 * @param attributeSelector
 *            the attributeSelector (if existing)
 * @return the ResourceConsumptionEstimator for the given class
 */
public static ResourceConsumptionEstimator getResourceConsumptionEstimator(InputPort inputPort, Class clazz, AttributeSubsetSelector attributeSelector) {
    String[] timeConsumption = getTimeConsumption(clazz);
    String[] memoryConsumption = getMemoryConsumption(clazz);
    if (timeConsumption == null || memoryConsumption == null) {
        return null;
    }

    PolynomialFunction timeFunction = new PolynomialFunction(Double.parseDouble(timeConsumption[0]), Double.parseDouble(timeConsumption[1]), Double.parseDouble(timeConsumption[3]), Double.parseDouble(timeConsumption[2]), Double.parseDouble(timeConsumption[4]));
    PolynomialFunction memoryFunction = new PolynomialFunction(Double.parseDouble(memoryConsumption[0]), Double.parseDouble(memoryConsumption[1]), Double.parseDouble(memoryConsumption[3]), Double.parseDouble(memoryConsumption[2]), Double.parseDouble(memoryConsumption[4]));

    return new PolynomialExampleSetResourceConsumptionEstimator(inputPort, attributeSelector, timeFunction, memoryFunction);
}
 
開發者ID:rapidminer,項目名稱:rapidminer-5,代碼行數:24,代碼來源:OperatorResourceConsumptionHandler.java

示例4: getResourceConsumptionEstimator

import com.rapidminer.operator.annotation.ResourceConsumptionEstimator; //導入依賴的package包/類
/**
 * Subclasses can override this method if they are able to estimate the consumed resources (CPU
 * time and memory), based on their input. The default implementation returns null.
 */
@Override
public ResourceConsumptionEstimator getResourceConsumptionEstimator() {
	return null;
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:9,代碼來源:Operator.java

示例5: getResourceConsumptionEstimator

import com.rapidminer.operator.annotation.ResourceConsumptionEstimator; //導入依賴的package包/類
@Override
public ResourceConsumptionEstimator getResourceConsumptionEstimator() {
	return OperatorResourceConsumptionHandler.getResourceConsumptionEstimator(getExampleSetInputPort(),
			KNNLearner.class, null);
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:6,代碼來源:KNNLearner.java

示例6: getResourceConsumptionEstimator

import com.rapidminer.operator.annotation.ResourceConsumptionEstimator; //導入依賴的package包/類
@Override
public ResourceConsumptionEstimator getResourceConsumptionEstimator() {
	return OperatorResourceConsumptionHandler.getResourceConsumptionEstimator(getExampleSetInputPort(),
			NaiveBayes.class, null);
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:6,代碼來源:NaiveBayes.java

示例7: getResourceConsumptionEstimator

import com.rapidminer.operator.annotation.ResourceConsumptionEstimator; //導入依賴的package包/類
@Override
public ResourceConsumptionEstimator getResourceConsumptionEstimator() {
	return OperatorResourceConsumptionHandler.getResourceConsumptionEstimator(getExampleSetInputPort(),
			VectorLinearRegression.class, null);
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:6,代碼來源:VectorLinearRegression.java

示例8: getResourceConsumptionEstimator

import com.rapidminer.operator.annotation.ResourceConsumptionEstimator; //導入依賴的package包/類
@Override
public ResourceConsumptionEstimator getResourceConsumptionEstimator() {
	return OperatorResourceConsumptionHandler.getResourceConsumptionEstimator(getExampleSetInputPort(), EvoSVM.class,
			null);
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:6,代碼來源:EvoSVM.java

示例9: getResourceConsumptionEstimator

import com.rapidminer.operator.annotation.ResourceConsumptionEstimator; //導入依賴的package包/類
@Override
public ResourceConsumptionEstimator getResourceConsumptionEstimator() {
	return OperatorResourceConsumptionHandler.getResourceConsumptionEstimator(getExampleSetInputPort(), PSOSVM.class,
			null);
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:6,代碼來源:PSOSVM.java

示例10: getResourceConsumptionEstimator

import com.rapidminer.operator.annotation.ResourceConsumptionEstimator; //導入依賴的package包/類
@Override
public ResourceConsumptionEstimator getResourceConsumptionEstimator() {
	return OperatorResourceConsumptionHandler.getResourceConsumptionEstimator(getExampleSetInputPort(),
			LinearMySVMLearner.class, null);
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:6,代碼來源:LinearMySVMLearner.java

示例11: getResourceConsumptionEstimator

import com.rapidminer.operator.annotation.ResourceConsumptionEstimator; //導入依賴的package包/類
@Override
public ResourceConsumptionEstimator getResourceConsumptionEstimator() {
	return OperatorResourceConsumptionHandler.getResourceConsumptionEstimator(getExampleSetInputPort(),
			LibSVMLearner.class, null);
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:6,代碼來源:LibSVMLearner.java

示例12: getResourceConsumptionEstimator

import com.rapidminer.operator.annotation.ResourceConsumptionEstimator; //導入依賴的package包/類
@Override
public ResourceConsumptionEstimator getResourceConsumptionEstimator() {
	return OperatorResourceConsumptionHandler.getResourceConsumptionEstimator(getExampleSetInputPort(),
			JMySVMLearner.class, null);
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:6,代碼來源:JMySVMLearner.java

示例13: getResourceConsumptionEstimator

import com.rapidminer.operator.annotation.ResourceConsumptionEstimator; //導入依賴的package包/類
@Override
public ResourceConsumptionEstimator getResourceConsumptionEstimator() {
	return OperatorResourceConsumptionHandler.getResourceConsumptionEstimator(getExampleSetInputPort(),
			HyperHyper.class, null);
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:6,代碼來源:HyperHyper.java

示例14: getResourceConsumptionEstimator

import com.rapidminer.operator.annotation.ResourceConsumptionEstimator; //導入依賴的package包/類
@Override
public ResourceConsumptionEstimator getResourceConsumptionEstimator() {
	return OperatorResourceConsumptionHandler.getResourceConsumptionEstimator(getExampleSetInputPort(),
			LinearRegression.class, null);
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:6,代碼來源:LinearRegression.java

示例15: getResourceConsumptionEstimator

import com.rapidminer.operator.annotation.ResourceConsumptionEstimator; //導入依賴的package包/類
@Override
public ResourceConsumptionEstimator getResourceConsumptionEstimator() {
	return OperatorResourceConsumptionHandler.getResourceConsumptionEstimator(getInputPort(),
			MinMaxBinDiscretization.class, attributeSelector);
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:6,代碼來源:MinMaxBinDiscretization.java


注:本文中的com.rapidminer.operator.annotation.ResourceConsumptionEstimator類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。