lgb_model.pmml 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. <?xml version="1.0" encoding="utf-8" standalone="yes"?>
  2. <PMML xmlns="http://www.dmg.org/PMML-4_4" xmlns:data="http://jpmml.org/jpmml-model/InlineTable" version="4.4">
  3. <Header>
  4. <Application name="JPMML-LightGBM" version="1.3.7" />
  5. <Timestamp>2021-06-01T11:54:38Z</Timestamp>
  6. </Header>
  7. <DataDictionary>
  8. <DataField name="_target" optype="categorical" dataType="integer">
  9. <Value value="0" />
  10. <Value value="1" />
  11. <Value value="2" />
  12. </DataField>
  13. <DataField name="sepal_length_(cm)" optype="continuous" dataType="double">
  14. <Interval closure="closedClosed" leftMargin="4.3" rightMargin="7.9" />
  15. <Value value="NaN" property="missing" />
  16. </DataField>
  17. <DataField name="sepal_width_(cm)" optype="continuous" dataType="double">
  18. <Interval closure="closedClosed" leftMargin="2.0" rightMargin="4.4" />
  19. <Value value="NaN" property="missing" />
  20. </DataField>
  21. <DataField name="petal_length_(cm)" optype="continuous" dataType="double">
  22. <Interval closure="closedClosed" leftMargin="1.0" rightMargin="6.9" />
  23. <Value value="NaN" property="missing" />
  24. </DataField>
  25. <DataField name="petal_width_(cm)" optype="continuous" dataType="double">
  26. <Interval closure="closedClosed" leftMargin="0.1" rightMargin="2.5" />
  27. <Value value="NaN" property="missing" />
  28. </DataField>
  29. </DataDictionary>
  30. <MiningModel functionName="classification" algorithmName="LightGBM">
  31. <MiningSchema>
  32. <MiningField name="_target" usageType="target" />
  33. <MiningField name="sepal_length_(cm)" importance="11.0" invalidValueTreatment="asIs" />
  34. <MiningField name="sepal_width_(cm)" importance="2.0" invalidValueTreatment="asIs" />
  35. <MiningField name="petal_length_(cm)" importance="24.0" invalidValueTreatment="asIs" />
  36. <MiningField name="petal_width_(cm)" importance="13.0" invalidValueTreatment="asIs" />
  37. </MiningSchema>
  38. <Segmentation multipleModelMethod="modelChain" missingPredictionTreatment="returnMissing">
  39. <Segment id="1">
  40. <True />
  41. <MiningModel functionName="regression">
  42. <MiningSchema>
  43. <MiningField name="sepal_length_(cm)" />
  44. <MiningField name="petal_length_(cm)" />
  45. </MiningSchema>
  46. <Output>
  47. <OutputField name="lgbmValue(0)" optype="continuous" dataType="double" isFinalResult="false" />
  48. </Output>
  49. <Segmentation multipleModelMethod="sum">
  50. <Segment id="1">
  51. <True />
  52. <TreeModel functionName="regression" noTrueChildStrategy="returnLastPrediction">
  53. <MiningSchema>
  54. <MiningField name="sepal_length_(cm)" />
  55. <MiningField name="petal_length_(cm)" />
  56. </MiningSchema>
  57. <Node score="-0.9593265712691172">
  58. <True />
  59. <Node score="-1.1736122903444903">
  60. <SimplePredicate field="petal_length_(cm)" operator="greaterThan" value="3.4000000000000004" />
  61. </Node>
  62. <Node score="-0.9486122853153485">
  63. <SimplePredicate field="sepal_length_(cm)" operator="greaterThan" value="5.050000000000001" />
  64. </Node>
  65. </Node>
  66. </TreeModel>
  67. </Segment>
  68. <Segment id="2">
  69. <True />
  70. <TreeModel functionName="regression" noTrueChildStrategy="returnLastPrediction">
  71. <MiningSchema>
  72. <MiningField name="sepal_length_(cm)" />
  73. <MiningField name="petal_length_(cm)" />
  74. </MiningSchema>
  75. <Node score="0.12185392449415344">
  76. <True />
  77. <Node score="-0.07257055906750128">
  78. <SimplePredicate field="petal_length_(cm)" operator="greaterThan" value="3.4000000000000004" />
  79. <Node score="-0.07207145404943262">
  80. <SimplePredicate field="petal_length_(cm)" operator="greaterThan" value="4.750000000000001" />
  81. <Node score="-0.07219570607417626">
  82. <SimplePredicate field="sepal_length_(cm)" operator="greaterThan" value="6.450000000000001" />
  83. </Node>
  84. </Node>
  85. </Node>
  86. <Node score="0.1303003664697049">
  87. <SimplePredicate field="sepal_length_(cm)" operator="greaterThan" value="5.050000000000001" />
  88. </Node>
  89. </Node>
  90. </TreeModel>
  91. </Segment>
  92. <Segment id="3">
  93. <True />
  94. <TreeModel functionName="regression" noTrueChildStrategy="returnLastPrediction">
  95. <MiningSchema>
  96. <MiningField name="sepal_length_(cm)" />
  97. <MiningField name="petal_length_(cm)" />
  98. </MiningSchema>
  99. <Node score="0.10845272227015224">
  100. <True />
  101. <Node score="-0.07021340444377018">
  102. <SimplePredicate field="petal_length_(cm)" operator="greaterThan" value="3.4000000000000004" />
  103. <Node score="-0.06973716059085941">
  104. <SimplePredicate field="petal_length_(cm)" operator="greaterThan" value="4.750000000000001" />
  105. <Node score="-0.0697703896715927">
  106. <SimplePredicate field="sepal_length_(cm)" operator="greaterThan" value="6.450000000000001" />
  107. </Node>
  108. </Node>
  109. </Node>
  110. <Node score="0.11590997871777123">
  111. <SimplePredicate field="sepal_length_(cm)" operator="greaterThan" value="5.050000000000001" />
  112. </Node>
  113. </Node>
  114. </TreeModel>
  115. </Segment>
  116. <Segment id="4">
  117. <True />
  118. <TreeModel functionName="regression" noTrueChildStrategy="returnLastPrediction">
  119. <MiningSchema>
  120. <MiningField name="sepal_length_(cm)" />
  121. <MiningField name="petal_length_(cm)" />
  122. </MiningSchema>
  123. <Node score="0.09842698080005607">
  124. <True />
  125. <Node score="-0.06827343512337868">
  126. <SimplePredicate field="petal_length_(cm)" operator="greaterThan" value="3.4000000000000004" />
  127. <Node score="-0.06761783054533778">
  128. <SimplePredicate field="petal_length_(cm)" operator="greaterThan" value="4.750000000000001" />
  129. <Node score="-0.06764010026474891">
  130. <SimplePredicate field="sepal_length_(cm)" operator="greaterThan" value="6.450000000000001" />
  131. </Node>
  132. </Node>
  133. </Node>
  134. <Node score="0.10504313154015506">
  135. <SimplePredicate field="sepal_length_(cm)" operator="greaterThan" value="5.050000000000001" />
  136. </Node>
  137. </Node>
  138. </TreeModel>
  139. </Segment>
  140. <Segment id="5">
  141. <True />
  142. <TreeModel functionName="regression" noTrueChildStrategy="returnLastPrediction">
  143. <MiningSchema>
  144. <MiningField name="sepal_length_(cm)" />
  145. <MiningField name="petal_length_(cm)" />
  146. </MiningSchema>
  147. <Node score="0.0904309166215982">
  148. <True />
  149. <Node score="-0.06652987665633432">
  150. <SimplePredicate field="petal_length_(cm)" operator="greaterThan" value="3.4000000000000004" />
  151. <Node score="-0.0658371655887295">
  152. <SimplePredicate field="petal_length_(cm)" operator="greaterThan" value="4.750000000000001" />
  153. <Node score="-0.06572093661554763">
  154. <SimplePredicate field="petal_length_(cm)" operator="greaterThan" value="5.550000000000001" />
  155. </Node>
  156. </Node>
  157. </Node>
  158. <Node score="0.09656194725537585">
  159. <SimplePredicate field="sepal_length_(cm)" operator="greaterThan" value="5.050000000000001" />
  160. </Node>
  161. </Node>
  162. </TreeModel>
  163. </Segment>
  164. </Segmentation>
  165. </MiningModel>
  166. </Segment>
  167. <Segment id="2">
  168. <True />
  169. <MiningModel functionName="regression">
  170. <MiningSchema>
  171. <MiningField name="petal_length_(cm)" />
  172. <MiningField name="petal_width_(cm)" />
  173. </MiningSchema>
  174. <Output>
  175. <OutputField name="lgbmValue(1)" optype="continuous" dataType="double" isFinalResult="false" />
  176. </Output>
  177. <Segmentation multipleModelMethod="sum">
  178. <Segment id="1">
  179. <True />
  180. <TreeModel functionName="regression" noTrueChildStrategy="returnLastPrediction">
  181. <MiningSchema>
  182. <MiningField name="petal_length_(cm)" />
  183. </MiningSchema>
  184. <Node score="-1.1736122903444903">
  185. <True />
  186. <Node score="-0.9659199780098979">
  187. <SimplePredicate field="petal_length_(cm)" operator="greaterThan" value="1.8" />
  188. <Node score="-1.1736122903444903">
  189. <SimplePredicate field="petal_length_(cm)" operator="greaterThan" value="4.950000000000001" />
  190. </Node>
  191. <Node score="-1.002183715084192">
  192. <SimplePredicate field="petal_length_(cm)" operator="greaterThan" value="4.450000000000001" />
  193. </Node>
  194. </Node>
  195. </Node>
  196. </TreeModel>
  197. </Segment>
  198. <Segment id="2">
  199. <True />
  200. <TreeModel functionName="regression" noTrueChildStrategy="returnLastPrediction">
  201. <MiningSchema>
  202. <MiningField name="petal_width_(cm)" />
  203. </MiningSchema>
  204. <Node score="-0.07250517806119815">
  205. <True />
  206. <Node score="0.11645485855092522">
  207. <SimplePredicate field="petal_width_(cm)" operator="greaterThan" value="0.45000000000000007" />
  208. <Node score="-0.06700056833064691">
  209. <SimplePredicate field="petal_width_(cm)" operator="greaterThan" value="1.6500000000000001" />
  210. </Node>
  211. <Node score="0.0981912222296533">
  212. <SimplePredicate field="petal_width_(cm)" operator="greaterThan" value="1.3500000000000003" />
  213. </Node>
  214. </Node>
  215. </Node>
  216. </TreeModel>
  217. </Segment>
  218. <Segment id="3">
  219. <True />
  220. <TreeModel functionName="regression" noTrueChildStrategy="returnLastPrediction">
  221. <MiningSchema>
  222. <MiningField name="petal_length_(cm)" />
  223. <MiningField name="petal_width_(cm)" />
  224. </MiningSchema>
  225. <Node score="-0.07006593404406375">
  226. <True />
  227. <Node score="0.1050172735135845">
  228. <SimplePredicate field="petal_width_(cm)" operator="greaterThan" value="0.45000000000000007" />
  229. <Node score="-0.07081316273464346">
  230. <SimplePredicate field="petal_length_(cm)" operator="greaterThan" value="4.950000000000001" />
  231. </Node>
  232. <Node score="0.08054282244171226">
  233. <SimplePredicate field="petal_length_(cm)" operator="greaterThan" value="4.450000000000001" />
  234. </Node>
  235. </Node>
  236. </Node>
  237. </TreeModel>
  238. </Segment>
  239. <Segment id="4">
  240. <True />
  241. <TreeModel functionName="regression" noTrueChildStrategy="returnLastPrediction">
  242. <MiningSchema>
  243. <MiningField name="petal_length_(cm)" />
  244. </MiningSchema>
  245. <Node score="-0.06811367792034477">
  246. <True />
  247. <Node score="0.09588720003106202">
  248. <SimplePredicate field="petal_length_(cm)" operator="greaterThan" value="1.8" />
  249. <Node score="-0.06868727088904823">
  250. <SimplePredicate field="petal_length_(cm)" operator="greaterThan" value="4.950000000000001" />
  251. </Node>
  252. <Node score="0.07317294292378695">
  253. <SimplePredicate field="petal_length_(cm)" operator="greaterThan" value="4.450000000000001" />
  254. </Node>
  255. </Node>
  256. </Node>
  257. </TreeModel>
  258. </Segment>
  259. <Segment id="5">
  260. <True />
  261. <TreeModel functionName="regression" noTrueChildStrategy="returnLastPrediction">
  262. <MiningSchema>
  263. <MiningField name="petal_width_(cm)" />
  264. </MiningSchema>
  265. <Node score="-0.06617439842593348">
  266. <True />
  267. <Node score="0.08703239160896648">
  268. <SimplePredicate field="petal_width_(cm)" operator="greaterThan" value="0.45000000000000007" />
  269. <Node score="-0.06143345433867317">
  270. <SimplePredicate field="petal_width_(cm)" operator="greaterThan" value="1.6500000000000001" />
  271. </Node>
  272. <Node score="0.07675765159801226">
  273. <SimplePredicate field="petal_width_(cm)" operator="greaterThan" value="1.3500000000000003" />
  274. </Node>
  275. </Node>
  276. </Node>
  277. </TreeModel>
  278. </Segment>
  279. </Segmentation>
  280. </MiningModel>
  281. </Segment>
  282. <Segment id="3">
  283. <True />
  284. <MiningModel functionName="regression">
  285. <MiningSchema>
  286. <MiningField name="sepal_length_(cm)" />
  287. <MiningField name="sepal_width_(cm)" />
  288. <MiningField name="petal_length_(cm)" />
  289. <MiningField name="petal_width_(cm)" />
  290. </MiningSchema>
  291. <Output>
  292. <OutputField name="lgbmValue(2)" optype="continuous" dataType="double" isFinalResult="false" />
  293. </Output>
  294. <Segmentation multipleModelMethod="sum">
  295. <Segment id="1">
  296. <True />
  297. <TreeModel functionName="regression" noTrueChildStrategy="returnLastPrediction">
  298. <MiningSchema>
  299. <MiningField name="sepal_length_(cm)" />
  300. <MiningField name="petal_length_(cm)" />
  301. </MiningSchema>
  302. <Node score="-1.1638296814301798">
  303. <True />
  304. <Node score="-0.9877427209725906">
  305. <SimplePredicate field="petal_length_(cm)" operator="greaterThan" value="4.750000000000001" />
  306. <Node score="-0.9486122853153485">
  307. <SimplePredicate field="petal_length_(cm)" operator="greaterThan" value="5.550000000000001" />
  308. </Node>
  309. </Node>
  310. <Node score="-1.1736122903444903">
  311. <SimplePredicate field="sepal_length_(cm)" operator="greaterThan" value="5.050000000000001" />
  312. </Node>
  313. </Node>
  314. </TreeModel>
  315. </Segment>
  316. <Segment id="2">
  317. <True />
  318. <TreeModel functionName="regression" noTrueChildStrategy="returnLastPrediction">
  319. <MiningSchema>
  320. <MiningField name="sepal_width_(cm)" />
  321. <MiningField name="petal_width_(cm)" />
  322. </MiningSchema>
  323. <Node score="-0.0724357261619468">
  324. <True />
  325. <Node score="0.12736121841495812">
  326. <SimplePredicate field="petal_width_(cm)" operator="greaterThan" value="1.6500000000000001" />
  327. </Node>
  328. <Node score="-0.0319429343565856">
  329. <SimplePredicate field="petal_width_(cm)" operator="greaterThan" value="1.3500000000000003" />
  330. </Node>
  331. <Node score="-0.07213929036587866">
  332. <SimplePredicate field="sepal_width_(cm)" operator="greaterThan" value="3.35" />
  333. </Node>
  334. </Node>
  335. </TreeModel>
  336. </Segment>
  337. <Segment id="3">
  338. <True />
  339. <TreeModel functionName="regression" noTrueChildStrategy="returnLastPrediction">
  340. <MiningSchema>
  341. <MiningField name="sepal_length_(cm)" />
  342. <MiningField name="petal_length_(cm)" />
  343. <MiningField name="petal_width_(cm)" />
  344. </MiningSchema>
  345. <Node score="-0.059662719835815003">
  346. <True />
  347. <Node score="0.08831532996239182">
  348. <SimplePredicate field="petal_length_(cm)" operator="greaterThan" value="4.750000000000001" />
  349. <Node score="0.11732538921269522">
  350. <SimplePredicate field="petal_length_(cm)" operator="greaterThan" value="5.550000000000001" />
  351. </Node>
  352. </Node>
  353. <Node score="-0.06975022798344958">
  354. <SimplePredicate field="sepal_length_(cm)" operator="greaterThan" value="5.050000000000001" />
  355. <Node score="-0.07092820238292231">
  356. <SimplePredicate field="petal_width_(cm)" operator="greaterThan" value="1.2500000000000002" />
  357. </Node>
  358. </Node>
  359. </Node>
  360. </TreeModel>
  361. </Segment>
  362. <Segment id="4">
  363. <True />
  364. <TreeModel functionName="regression" noTrueChildStrategy="returnLastPrediction">
  365. <MiningSchema>
  366. <MiningField name="sepal_length_(cm)" />
  367. <MiningField name="petal_length_(cm)" />
  368. <MiningField name="petal_width_(cm)" />
  369. </MiningSchema>
  370. <Node score="-0.05718847818792119">
  371. <True />
  372. <Node score="0.08026262561477648">
  373. <SimplePredicate field="petal_length_(cm)" operator="greaterThan" value="4.750000000000001" />
  374. <Node score="0.10583777787647669">
  375. <SimplePredicate field="petal_length_(cm)" operator="greaterThan" value="5.550000000000001" />
  376. </Node>
  377. </Node>
  378. <Node score="-0.0676030312212233">
  379. <SimplePredicate field="sepal_length_(cm)" operator="greaterThan" value="5.050000000000001" />
  380. <Node score="-0.06893421344995508">
  381. <SimplePredicate field="petal_width_(cm)" operator="greaterThan" value="1.2500000000000002" />
  382. </Node>
  383. </Node>
  384. </Node>
  385. </TreeModel>
  386. </Segment>
  387. <Segment id="5">
  388. <True />
  389. <TreeModel functionName="regression" noTrueChildStrategy="returnLastPrediction">
  390. <MiningSchema>
  391. <MiningField name="sepal_width_(cm)" />
  392. <MiningField name="petal_width_(cm)" />
  393. </MiningSchema>
  394. <Node score="-0.0662759744408909">
  395. <True />
  396. <Node score="0.09578590305317655">
  397. <SimplePredicate field="petal_width_(cm)" operator="greaterThan" value="1.6500000000000001" />
  398. </Node>
  399. <Node score="-0.029336428814000854">
  400. <SimplePredicate field="petal_width_(cm)" operator="greaterThan" value="1.3500000000000003" />
  401. </Node>
  402. <Node score="-0.06563769706964893">
  403. <SimplePredicate field="sepal_width_(cm)" operator="greaterThan" value="3.2500000000000004" />
  404. </Node>
  405. </Node>
  406. </TreeModel>
  407. </Segment>
  408. </Segmentation>
  409. </MiningModel>
  410. </Segment>
  411. <Segment id="4">
  412. <True />
  413. <RegressionModel functionName="classification" normalizationMethod="softmax">
  414. <MiningSchema>
  415. <MiningField name="_target" usageType="target" />
  416. <MiningField name="lgbmValue(0)" />
  417. <MiningField name="lgbmValue(1)" />
  418. <MiningField name="lgbmValue(2)" />
  419. </MiningSchema>
  420. <Output>
  421. <OutputField name="probability(0)" optype="continuous" dataType="double" feature="probability" value="0" />
  422. <OutputField name="probability(1)" optype="continuous" dataType="double" feature="probability" value="1" />
  423. <OutputField name="probability(2)" optype="continuous" dataType="double" feature="probability" value="2" />
  424. </Output>
  425. <RegressionTable intercept="0.0" targetCategory="0">
  426. <NumericPredictor name="lgbmValue(0)" coefficient="1.0" />
  427. </RegressionTable>
  428. <RegressionTable intercept="0.0" targetCategory="1">
  429. <NumericPredictor name="lgbmValue(1)" coefficient="1.0" />
  430. </RegressionTable>
  431. <RegressionTable intercept="0.0" targetCategory="2">
  432. <NumericPredictor name="lgbmValue(2)" coefficient="1.0" />
  433. </RegressionTable>
  434. </RegressionModel>
  435. </Segment>
  436. </Segmentation>
  437. </MiningModel>
  438. </PMML>