本文整理匯總了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);
}
示例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);
}
示例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);
}
示例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;
}
示例5: getResourceConsumptionEstimator
import com.rapidminer.operator.annotation.ResourceConsumptionEstimator; //導入依賴的package包/類
@Override
public ResourceConsumptionEstimator getResourceConsumptionEstimator() {
return OperatorResourceConsumptionHandler.getResourceConsumptionEstimator(getExampleSetInputPort(),
KNNLearner.class, null);
}
示例6: getResourceConsumptionEstimator
import com.rapidminer.operator.annotation.ResourceConsumptionEstimator; //導入依賴的package包/類
@Override
public ResourceConsumptionEstimator getResourceConsumptionEstimator() {
return OperatorResourceConsumptionHandler.getResourceConsumptionEstimator(getExampleSetInputPort(),
NaiveBayes.class, null);
}
示例7: getResourceConsumptionEstimator
import com.rapidminer.operator.annotation.ResourceConsumptionEstimator; //導入依賴的package包/類
@Override
public ResourceConsumptionEstimator getResourceConsumptionEstimator() {
return OperatorResourceConsumptionHandler.getResourceConsumptionEstimator(getExampleSetInputPort(),
VectorLinearRegression.class, null);
}
示例8: getResourceConsumptionEstimator
import com.rapidminer.operator.annotation.ResourceConsumptionEstimator; //導入依賴的package包/類
@Override
public ResourceConsumptionEstimator getResourceConsumptionEstimator() {
return OperatorResourceConsumptionHandler.getResourceConsumptionEstimator(getExampleSetInputPort(), EvoSVM.class,
null);
}
示例9: getResourceConsumptionEstimator
import com.rapidminer.operator.annotation.ResourceConsumptionEstimator; //導入依賴的package包/類
@Override
public ResourceConsumptionEstimator getResourceConsumptionEstimator() {
return OperatorResourceConsumptionHandler.getResourceConsumptionEstimator(getExampleSetInputPort(), PSOSVM.class,
null);
}
示例10: getResourceConsumptionEstimator
import com.rapidminer.operator.annotation.ResourceConsumptionEstimator; //導入依賴的package包/類
@Override
public ResourceConsumptionEstimator getResourceConsumptionEstimator() {
return OperatorResourceConsumptionHandler.getResourceConsumptionEstimator(getExampleSetInputPort(),
LinearMySVMLearner.class, null);
}
示例11: getResourceConsumptionEstimator
import com.rapidminer.operator.annotation.ResourceConsumptionEstimator; //導入依賴的package包/類
@Override
public ResourceConsumptionEstimator getResourceConsumptionEstimator() {
return OperatorResourceConsumptionHandler.getResourceConsumptionEstimator(getExampleSetInputPort(),
LibSVMLearner.class, null);
}
示例12: getResourceConsumptionEstimator
import com.rapidminer.operator.annotation.ResourceConsumptionEstimator; //導入依賴的package包/類
@Override
public ResourceConsumptionEstimator getResourceConsumptionEstimator() {
return OperatorResourceConsumptionHandler.getResourceConsumptionEstimator(getExampleSetInputPort(),
JMySVMLearner.class, null);
}
示例13: getResourceConsumptionEstimator
import com.rapidminer.operator.annotation.ResourceConsumptionEstimator; //導入依賴的package包/類
@Override
public ResourceConsumptionEstimator getResourceConsumptionEstimator() {
return OperatorResourceConsumptionHandler.getResourceConsumptionEstimator(getExampleSetInputPort(),
HyperHyper.class, null);
}
示例14: getResourceConsumptionEstimator
import com.rapidminer.operator.annotation.ResourceConsumptionEstimator; //導入依賴的package包/類
@Override
public ResourceConsumptionEstimator getResourceConsumptionEstimator() {
return OperatorResourceConsumptionHandler.getResourceConsumptionEstimator(getExampleSetInputPort(),
LinearRegression.class, null);
}
示例15: getResourceConsumptionEstimator
import com.rapidminer.operator.annotation.ResourceConsumptionEstimator; //導入依賴的package包/類
@Override
public ResourceConsumptionEstimator getResourceConsumptionEstimator() {
return OperatorResourceConsumptionHandler.getResourceConsumptionEstimator(getInputPort(),
MinMaxBinDiscretization.class, attributeSelector);
}