Skip to content

Instantly share code, notes, and snippets.

@manstis
Created May 28, 2020 15:12
Show Gist options
  • Save manstis/6a50d5fc1730a4cb98cd9a6c9b4be3bc to your computer and use it in GitHub Desktop.
Save manstis/6a50d5fc1730a4cb98cd9a6c9b4be3bc to your computer and use it in GitHub Desktop.
{
"PMML": {
"_attributes": {
"xmlns": "http://www.dmg.org/PMML-4_4",
"xmlns:cheese": "http://cheese.org",
"version": "4.4"
},
"Header": {
"_attributes": {
"copyright": "DMG.org"
}
},
"DataDictionary": {
"_attributes": {
"numberOfFields": "2"
},
"DataField": [
{
"_attributes": {
"name": "age",
"optype": "continuous",
"dataType": "double"
},
"Interval": {
"_attributes": {
"closure": "closedClosed",
"leftMargin": "0",
"rightMargin": "100"
}
}
},
{
"_attributes": {
"name": "weight",
"optype": "continuous",
"dataType": "double"
},
"Interval": {
"_attributes": {
"closure": "closedClosed",
"leftMargin": "0",
"rightMargin": "200"
}
}
}
]
},
"RegressionModel": {
"_attributes": {
"modelName": "You get fatter as you get older",
"functionName": "regression",
"algorithmName": "linearRegression",
"targetFieldName": "height_of_tide"
},
"MiningSchema": {
"_attributes": {
"cheese:withExtraFlavour": "edam"
},
"MiningField": [
{
"_attributes": {
"name": "age"
}
},
{
"_attributes": {
"name": "weight",
"usageType": "target"
}
}
]
},
"RegressionTable": {
"_attributes": {
"intercept": "2"
},
"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