You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Doc_BoxAlgorithm_ClassifierProcessor.dox-part 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /**
  2. * \page BoxAlgorithm_ClassifierProcessor Classifier processor
  3. __________________________________________________________________
  4. Detailed description
  5. __________________________________________________________________
  6. * |OVP_DocBegin_BoxAlgorithm_ClassifierProcessor_Description|
  7. The <em>Classifier Processor</em> box is a generic box for classifying data (feature vectors).
  8. It works in conjunction with the \ref Doc_BoxAlgorithm_ClassifierTrainer box.
  9. This box' role is to expose a generic interface to the rest of the BCI pipeline. The
  10. vectors to classify are forwarded to an algorithm or a structure of algorithms depending on what is
  11. described in the loaded configuration file. The behavior is simple: at initialization phase, the classification
  12. structure is initialized and its configuration is loaded from the configuration file. Then each time this box
  13. receives a new feature vector, it is forwarded to the classification algorithm that classifies it. The box gets the algorithm
  14. status and the actual class value and translates this information to its output. The predicted class is sent out in
  15. the form of a stimulation and the algorithm status is sent in the form a streamed matrix. The stimulation can be generically
  16. interpreted by the rest of the pipeline but it is important to understand that each classification algorithm is
  17. free to report whatever it wants in its "status matrix". Consequently, the use of this output stream will be
  18. dependent on the chosen classification algorithm. For example, the LDA classifier sends the hyperplane distance
  19. value as its status.
  20. * |OVP_DocEnd_BoxAlgorithm_ClassifierProcessor_Description|
  21. __________________________________________________________________
  22. Inputs description
  23. __________________________________________________________________
  24. * |OVP_DocBegin_BoxAlgorithm_ClassifierProcessor_Inputs|
  25. * |OVP_DocEnd_BoxAlgorithm_ClassifierProcessor_Inputs|
  26. * |OVP_DocBegin_BoxAlgorithm_ClassifierProcessor_Input1|
  27. This input should be connected to the feature vector stream to classify. Each time a new feature vector arrives,
  28. a classification process will be triggered. Consequently, a classification stimulation will be sent on the
  29. first output of this box.
  30. * |OVP_DocEnd_BoxAlgorithm_ClassifierProcessor_Input1|
  31. __________________________________________________________________
  32. Outputs description
  33. __________________________________________________________________
  34. * |OVP_DocBegin_BoxAlgorithm_ClassifierProcessor_Outputs|
  35. * |OVP_DocEnd_BoxAlgorithm_ClassifierProcessor_Outputs|
  36. * |OVP_DocBegin_BoxAlgorithm_ClassifierProcessor_Output1|
  37. This output will contain the classification stimulations. Each time a new feature vector arrives to this box,
  38. a new classification process is triggered, resulting in the generation of the corresponding class stimulation.
  39. * |OVP_DocEnd_BoxAlgorithm_ClassifierProcessor_Output1|
  40. * |OVP_DocBegin_BoxAlgorithm_ClassifierProcessor_Output2|
  41. This output reflects the classification algorithm status in the form of a matrix of value. This output will contain one or several distances
  42. to an hyperplane if the classifier provide it. If not, the matrix will have 0 dimension. The format of this output directly depend on
  43. the classification algorithm and of the strategy used by the processor box.
  44. * |OVP_DocEnd_BoxAlgorithm_ClassifierProcessor_Output2|
  45. *
  46. * |OVP_DocBegin_BoxAlgorithm_ClassifierProcessor_Output3|
  47. This output reflects the classification algorithm status in the form of a matrix of value. This output will contains one or several probabilities
  48. for a data to be on a class if the classifier provide it. If not, the matrix will have 0 dimension. The format of this output directly depend on
  49. the classification algorithm and of the strategy used by the processor box.
  50. * |OVP_DocEnd_BoxAlgorithm_ClassifierProcessor_Output2|
  51. __________________________________________________________________
  52. Settings description
  53. __________________________________________________________________
  54. * |OVP_DocBegin_BoxAlgorithm_ClassifierProcessor_Settings|
  55. * |OVP_DocEnd_BoxAlgorithm_ClassifierProcessor_Settings|
  56. * |OVP_DocBegin_BoxAlgorithm_ClassifierProcessor_Setting1|
  57. This setting points to the configuration file of the box generated by the
  58. \ref Doc_BoxAlgorithm_ClassifierTrainer box. Its syntax depends on the selected algorithm.
  59. * |OVP_DocEnd_BoxAlgorithm_ClassifierProcessor_Setting1|
  60. __________________________________________________________________
  61. Examples description
  62. __________________________________________________________________
  63. * |OVP_DocBegin_BoxAlgorithm_ClassifierProcessor_Examples|
  64. This box is used in BCI pipelines in order to classify cerebral activity states. For a detailed scenario using this
  65. box and its associated \ref Doc_BoxAlgorithm_ClassifierTrainer, please see the <b>motor imagary</b>
  66. BCI scenario in the sample scenarios.
  67. * |OVP_DocEnd_BoxAlgorithm_ClassifierProcessor_Examples|
  68. __________________________________________________________________
  69. Miscellaneous description
  70. __________________________________________________________________
  71. * |OVP_DocBegin_BoxAlgorithm_ClassifierProcessor_Miscellaneous|
  72. * |OVP_DocEnd_BoxAlgorithm_ClassifierProcessor_Miscellaneous|
  73. */