Java Code Examples for org.dmg.pmml.VisitorAction#SKIP

The following examples show how to use org.dmg.pmml.VisitorAction#SKIP . 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: TargetCategoryParser.java    From jpmml-evaluator with GNU Affero General Public License v3.0 6 votes vote down vote up
@Override
public VisitorAction visit(Node node){
	PMMLObject parent = getParent();

	if(parent instanceof TreeModel){
		TreeModel treeModel = (TreeModel)parent;

		MiningFunction miningFunction = treeModel.getMiningFunction();
		switch(miningFunction){
			case CLASSIFICATION:
				break;
			default:
				return VisitorAction.SKIP;
		}
	}

	node.setScore(parseTargetValue(node.getScore()));

	return super.visit(node);
}
 
Example 2
Source File: NodeScoreParser.java    From jpmml-evaluator with GNU Affero General Public License v3.0 6 votes vote down vote up
@Override
public VisitorAction visit(TreeModel treeModel){
	MiningFunction miningFunction = treeModel.getMiningFunction();
	if(miningFunction == null){
		throw new MissingAttributeException(treeModel, PMMLAttributes.TREEMODEL_MININGFUNCTION);
	}

	switch(miningFunction){
		case REGRESSION:
			break;
		default:
			return VisitorAction.SKIP;
	}

	return super.visit(treeModel);
}
 
Example 3
Source File: NodeResolver.java    From jpmml-evaluator with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public VisitorAction visit(TreeModel treeModel){
	TreeModel.MissingValueStrategy missingValueStrategy = treeModel.getMissingValueStrategy();

	switch(missingValueStrategy){
		case DEFAULT_CHILD:
			break;
		default:
			return VisitorAction.SKIP;
	}

	return super.visit(treeModel);
}
 
Example 4
Source File: UnsupportedMarkupInspector.java    From jpmml-evaluator with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
public VisitorAction visit(BaselineModel baselineModel){
	report(new UnsupportedElementException(baselineModel));

	return VisitorAction.SKIP;
}
 
Example 5
Source File: UnsupportedMarkupInspector.java    From jpmml-evaluator with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
public VisitorAction visit(BayesianNetworkModel bayesianNetworkModel){
	report(new UnsupportedElementException(bayesianNetworkModel));

	return VisitorAction.SKIP;
}
 
Example 6
Source File: UnsupportedMarkupInspector.java    From jpmml-evaluator with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
public VisitorAction visit(CenterFields centerFields){
	report(new UnsupportedElementException(centerFields));

	return VisitorAction.SKIP;
}
 
Example 7
Source File: UnsupportedMarkupInspector.java    From jpmml-evaluator with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
public VisitorAction visit(DecisionTree decisionTree){
	report(new UnsupportedElementException(decisionTree));

	return VisitorAction.SKIP;
}
 
Example 8
Source File: UnsupportedMarkupInspector.java    From jpmml-evaluator with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
public VisitorAction visit(GaussianProcessModel gaussianProcessModel){
	report(new UnsupportedElementException(gaussianProcessModel));

	return VisitorAction.SKIP;
}
 
Example 9
Source File: UnsupportedMarkupInspector.java    From jpmml-evaluator with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
public VisitorAction visit(Lag lag){
	report(new UnsupportedElementException(lag));

	return VisitorAction.SKIP;
}
 
Example 10
Source File: UnsupportedMarkupInspector.java    From jpmml-evaluator with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
public VisitorAction visit(Regression regression){
	report(new UnsupportedElementException(regression));

	return VisitorAction.SKIP;
}
 
Example 11
Source File: UnsupportedMarkupInspector.java    From jpmml-evaluator with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
public VisitorAction visit(SequenceModel sequenceModel){
	report(new UnsupportedElementException(sequenceModel));

	return VisitorAction.SKIP;
}
 
Example 12
Source File: UnsupportedMarkupInspector.java    From jpmml-evaluator with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
public VisitorAction visit(TableLocator tableLocator){
	report(new UnsupportedElementException(tableLocator));

	return VisitorAction.SKIP;
}
 
Example 13
Source File: UnsupportedMarkupInspector.java    From jpmml-evaluator with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
public VisitorAction visit(TextModel textModel){
	report(new UnsupportedElementException(textModel));

	return VisitorAction.SKIP;
}
 
Example 14
Source File: UnsupportedMarkupInspector.java    From jpmml-evaluator with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
public VisitorAction visit(TimeSeriesModel timeSeriesModel){
	report(new UnsupportedElementException(timeSeriesModel));

	return VisitorAction.SKIP;
}