Java Code Examples for org.dmg.pmml.MiningField#getOpType()

The following examples show how to use org.dmg.pmml.MiningField#getOpType() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FieldUtil.java    From jpmml-evaluator with GNU Affero General Public License v3.0 5 votes vote down vote up
static
public OpType getOpType(Field<?> field, MiningField miningField){
	OpType opType = field.getOpType();

	// "A MiningField overrides a (Data)Field"
	if(miningField != null){
		opType = miningField.getOpType(opType);
	}

	return opType;
}
 
Example 2
Source File: FieldUtil.java    From jpmml-evaluator with GNU Affero General Public License v3.0 5 votes vote down vote up
static
public OpType getOpType(Field<?> field, MiningField miningField, Target target){
	OpType opType = field.getOpType();

	// "A MiningField overrides a (Data)Field, and a Target overrides a MiningField"
	if(miningField != null){
		opType = miningField.getOpType(opType);

		if(target != null){
			opType = target.getOpType(opType);
		}
	}

	return opType;
}