Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. # Binarization process
  2.  
  3. ## Original data
  4. | # | f1 | f2 | class |
  5. |---|------|------|-------|
  6. | 1 | 5 | 5 | 0 |
  7. | 2 | 5 | 6 | 0 |
  8. | 3 | 10 | 20 | 1 |
  9. | 4 | 10 | 25 | 1 |
  10. | 5 | 5 | 6 | 1 |
  11.  
  12. ### Sorted by `f1`
  13. | # | var1 | class |
  14. |---|------|-------|
  15. | 1 | 5 | 0 |
  16. | 2 | 5 | 0 |
  17. | 5 | 5 | 1 |
  18. | 3 | 10 | 1 |
  19. | 4 | 10 | 1 |
  20.  
  21. ### Transition Mapping for `f1`
  22.  
  23. | value | classes |
  24. |-------|---------|
  25. | 5 | {0,1} |
  26. | 10 | {1} |
  27.  
  28. > Therefore, exists a single cutpoint between 5 {0} and 10 {1}
  29.  
  30. ### Cutpoints formation for `f1`
  31. $$c_1 = \frac{|5| + |10|}{2} = 7.5$$
  32.  
  33. ### Sorted by `f2`
  34. | # | f2 | class |
  35. |---|----|-------|
  36. | 1 | 5 | 0 |
  37. | 2 | 6 | 0 |
  38. | 5 | 6 | 1 |
  39. | 3 | 20 | 1 |
  40. | 4 | 25 | 1 |
  41.  
  42. ### Transition Mapping for `f2`
  43. | value | classes |
  44. |-------|---------|
  45. | 5 | {0} |
  46. | 6 | {0,1} |
  47. | 20 | {1} |
  48. | 25 | {1} |
  49.  
  50. > Therefore, exists a single cutpoint between 5 {0} and 6 {1}
  51.  
  52. ### Cutpoints formation for `f2`
  53. $$c_1 = \frac{|5| + |6|}{2} = 5.5$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement