Skip to content

Instantly share code, notes, and snippets.

@manstis
Created May 28, 2020 15:09
Show Gist options
  • Save manstis/51995fb2fbb9032334bebeb981da9791 to your computer and use it in GitHub Desktop.
Save manstis/51995fb2fbb9032334bebeb981da9791 to your computer and use it in GitHub Desktop.
{
"elements": [
{
"type": "element",
"name": "PMML",
"attributes": {
"xmlns": "http://www.dmg.org/PMML-4_4",
"xmlns:cheese": "http://cheese.org",
"version": "4.4"
},
"elements": [
{
"type": "element",
"name": "Header",
"attributes": {
"copyright": "DMG.org"
}
},
{
"type": "element",
"name": "DataDictionary",
"attributes": {
"numberOfFields": "2"
},
"elements": [
{
"type": "element",
"name": "DataField",
"attributes": {
"name": "age",
"optype": "continuous",
"dataType": "double"
},
"elements": [
{
"type": "element",
"name": "Interval",
"attributes": {
"closure": "closedClosed",
"leftMargin": "0",
"rightMargin": "100"
}
}
]
},
{
"type": "element",
"name": "DataField",
"attributes": {
"name": "weight",
"optype": "continuous",
"dataType": "double"
},
"elements": [
{
"type": "element",
"name": "Interval",
"attributes": {
"closure": "closedClosed",
"leftMargin": "0",
"rightMargin": "200"
}
}
]
}
]
},
{
"type": "element",
"name": "RegressionModel",
"attributes": {
"modelName": "You get fatter as you get older",
"functionName": "regression",
"algorithmName": "linearRegression",
"targetFieldName": "height_of_tide"
},
"elements": [
{
"type": "element",
"name": "MiningSchema",
"attributes": {
"cheese:withExtraFlavour": "edam"
},
"elements": [
{
"type": "element",
"name": "MiningField",
"attributes": {
"name": "age"
}
},
{
"type": "element",
"name": "MiningField",
"attributes": {
"name": "weight",
"usageType": "target"
}
}
]
},
{
"type": "element",
"name": "RegressionTable",
"attributes": {
"intercept": "2"
},
"elements": [
{
"type": "element",
"name": "NumericPredictor",
"attributes": {
"name": "age",
"exponent": "1",
"coefficient": "1.6"
}
}
]
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment