This document lists online resources for downloading PMML test files to validate our scorecard import/export functionality.
URL: https://github.com/dmg-org/pmml-examples
Description: Official examples from the Data Mining Group (DMG) who maintain the PMML standard
Content:
Download Example:
wget https://raw.githubusercontent.com/dmg-org/pmml-examples/main/scorecard/CreditScoring.xml
URL: https://github.com/openscoring/openscoring
Description: Production-grade PMML evaluation service with test files
Location: src/test/resources directory
Content:
Download Example:
wget https://raw.githubusercontent.com/openscoring/openscoring/master/openscoring-service/src/test/resources/pmml/Scorecard.pmml
URL: https://github.com/jpmml
Description: Java PMML API with extensive test resources
Key Repositories:
jpmml-evaluator: https://github.com/jpmml/jpmml-evaluator
pmml-evaluator/src/test/resourcesjpmml-sklearn: https://github.com/jpmml/jpmml-sklearn
jpmml-r: https://github.com/jpmml/jpmml-r
URL: https://www.kaggle.com/search?q=pmml
Description: Community-contributed PMML files from competitions
Content:
from factory.service.package.core.ObjServiceScorecardLoad import ObjServiceScorecardLoad
loader = ObjServiceScorecardLoad()
# Test with downloaded PMML file
result = loader.import_scorecard_pmml(
"/path/to/CreditScoring.xml",
scorecard="CreditScore_Test",
version="v1",
package="DEV",
activate=False
)
if result:
print("✅ Successfully imported PMML scorecard")
# Verify imported data
loader.list_scorecard_versions("CreditScore_Test", package="DEV")
else:
print("❌ Import failed - check error logs")
# 1. Export existing scorecard to PMML
pmml_xml = loader.export_scorecard_pmml(
"ExistingScorecard",
version="v1",
package="PROD",
output_file="/tmp/test_export.pmml"
)
# 2. Import back to different version
result = loader.import_scorecard_pmml(
"/tmp/test_export.pmml",
scorecard="ExistingScorecard",
version="v2",
package="DEV"
)
# 3. Compare versions
comparison = loader.compare_scorecard_versions(
"ExistingScorecard",
"v1",
"v2",
package="DEV"
)
print(comparison)
# Install JPMML Evaluator CLI
wget https://github.com/jpmml/jpmml-evaluator/releases/download/1.6.4/jpmml-evaluator-executable-1.6.4.jar
# Validate PMML file
java -jar jpmml-evaluator-executable-1.6.4.jar \
--model scorecard.pmml \
--input test_data.csv \
--output predictions.csv
/tmp or a designated test directoryFor questions about PMML implementation:
factory.service/package.core/ObjServiceScorecardLoad.pyresource.test/pytests/factory.service/package.core/test_ObjServiceScorecard.pylocal.documents/test/HIGH_PRIORITY_IMPROVEMENTS_IMPLEMENTED.mdLast Updated: 2025-12-29
Related: ObjServiceScorecardLoad.py, PMML 4.4 Implementation