Guest User

Untitled

a guest
Jun 6th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. file my_tree_example.csv :
  2. 2.33
  3. 2.33
  4. 2.33
  5. 2.33
  6. 2.33
  7. 3.33
  8. 3.33
  9. 3.33
  10. 3.33
  11. 3.33
  12. 2.33
  13. 2.33
  14. 2.33
  15. 2.33
  16. 2.33
  17. 3.33
  18. 3.33
  19. 3.33
  20. 3.33
  21. 3.33
  22. 3.33
  23. 2.33
  24.  
  25.  
  26. file my_tree_labels.csv :
  27. 0
  28. 0
  29. 0
  30. 0
  31. 0
  32. 1
  33. 1
  34. 1
  35. 1
  36. 1
  37. 0
  38. 0
  39. 0
  40. 0
  41. 0
  42. 1
  43. 1
  44. 1
  45. 1
  46. 1
  47. 1
  48. 0
  49.  
  50. the command line :
  51.  
  52. ~/mlpack-2.2.1/build/bin/mlpack_decision_tree -t my_tree_example.csv --labels_file my_tree_labels.csv --output_model_file /tmp/my_dec_tree_model.xml
  53.  
  54. the resulting xml file :
  55.  
  56. <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
  57. <!DOCTYPE boost_serialization>
  58. <boost_serialization signature="serialization::archive" version="9">
  59. <model class_id="0" tracking_level="0" version="0">
  60. <tree class_id="1" tracking_level="0" version="0">
  61. <numChildren>0</numChildren>
  62. <splitDimension>140157621338880</splitDimension>
  63. <dimensionTypeOrMajorityClass>0</dimensionTypeOrMajorityClass>
  64. <classProbabilities class_id="2" tracking_level="0" version="0">
  65. <n_rows>2</n_rows>
  66. <n_cols>1</n_cols>
  67. <n_elem>2</n_elem>
  68. <vec_state>1</vec_state>
  69. <item>0.5</item>
  70. <item>0.5</item>
  71. </classProbabilities>
  72. </tree>
  73. </model>
  74. </boost_serialization>
Add Comment
Please, Sign In to add comment