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


Java Severity.ERROR屬性代碼示例

本文整理匯總了Java中com.rapidminer.operator.ProcessSetupError.Severity.ERROR屬性的典型用法代碼示例。如果您正苦於以下問題:Java Severity.ERROR屬性的具體用法?Java Severity.ERROR怎麽用?Java Severity.ERROR使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在com.rapidminer.operator.ProcessSetupError.Severity的用法示例。


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

示例1: performAdditionalChecks

@Override
protected void performAdditionalChecks() {
	super.performAdditionalChecks();
	if (getParameterAsBoolean(PARAMETER_PROPAGATE_METADATA_RECURSIVELY)) {
		if (cachedProcess == null) {
			try {
				cachedProcess = loadIncludedProcess();
			} catch (Exception e) {
				cachedError = new SimpleProcessSetupError(Severity.ERROR, getPortOwner(), "cannot_load_included_process", e.getMessage());
				addError(cachedError);
			}
		} else {
			if (cachedError != null) {
				addError(cachedError);
			}
		}
	}
}
 
開發者ID:rapidminer,項目名稱:rapidminer-5,代碼行數:18,代碼來源:ProcessEmbeddingOperator.java

示例2: getWeightCalculationError

@Override
public MetaDataError getWeightCalculationError(OutputPort weightPort) {
	try {
		return new SimpleMetaDataError(Severity.ERROR, weightPort,
				Collections.singletonList(new ParameterSettingQuickFix(this, PARAMETER_KERNEL_TYPE, "0",
						"correct_parameter_settings_by", PARAMETER_KERNEL_TYPE, KERNEL_TYPES[0])),
				"parameters.setting_incompatible_for_delivering", "AttributeWeights", PARAMETER_KERNEL_TYPE,
				KERNEL_TYPES[getParameterAsInt(PARAMETER_KERNEL_TYPE)]);
	} catch (UndefinedParameterError e) {
		return super.getWeightCalculationError(weightPort);
	}
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:12,代碼來源:AbstractMySVMLearner.java

示例3: getWeightCalculationError

@Override
public MetaDataError getWeightCalculationError(OutputPort weightPort) {
	try {
		return new SimpleMetaDataError(Severity.ERROR, weightPort, 
				Collections.singletonList(new ParameterSettingQuickFix(this, PARAMETER_KERNEL_TYPE, "0", "correct_parameter_settings_by", PARAMETER_KERNEL_TYPE, KERNEL_TYPES[0])),
				"parameters.setting_incompatible_for_delivering", "AttributeWeights", PARAMETER_KERNEL_TYPE, KERNEL_TYPES[getParameterAsInt(PARAMETER_KERNEL_TYPE)]);
	} catch (UndefinedParameterError e) {
		return super.getWeightCalculationError(weightPort);
	}
}
 
開發者ID:rapidminer,項目名稱:rapidminer-5,代碼行數:10,代碼來源:AbstractMySVMLearner.java

示例4: getWeightCalculationError

public MetaDataError getWeightCalculationError(OutputPort weightPort) {
	return new SimpleMetaDataError(Severity.ERROR, weightPort, "parameters.incompatible_for_delivering",
			"AttributeWeights");
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:4,代碼來源:AbstractLearner.java

示例5: getWeightCalculationError

public MetaDataError getWeightCalculationError(OutputPort weightPort) {
    return new SimpleMetaDataError(Severity.ERROR, weightPort, "parameters.incompatible_for_delivering", "AttributeWeights");
}
 
開發者ID:rapidminer,項目名稱:rapidminer-5,代碼行數:3,代碼來源:AbstractLearner.java


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