| 11 | |
| 12 | === Basics === |
| 13 | |
| 14 | There are several basics to concern and understand before diving into probabilistic learning models. |
| 15 | |
| 16 | ==== Example / Instance ==== |
| 17 | Examples or also called instances are the basic entities in this field. |
| 18 | They occur as training examples, as validation or test examples, and finally as real data. |
| 19 | |
| 20 | {{{ |
| 21 | E.g., In a document classification scenario, examples are documents. |
| 22 | Already classified documents are used for training or evaluation purpose. |
| 23 | }}} |
| 24 | |
| 25 | ==== Feature ==== |
| 26 | A feature is a descriptive property of an example. Features are processible by machines. |
| 27 | {{{ |
| 28 | E.g., In a document classification scenario, features might be the words of a document. |
| 29 | In consequence, single features might describe multiple examples (here documents) |
| 30 | }}} |
| 31 | ==== Feature Extraction ==== |
| 32 | Feature extraction is the task of extracting features from examples. |
| 33 | {{{ |
| 34 | E.g., In our document classification scenario, a tokenizer that extracts words from text might be used for feature extraction. |
| 35 | }}} |
| 36 | In more sophisticated scenarios, feature extraction can be hierarchically nested by extracting new features from existing feature lists. |
| 37 | {{{ |
| 38 | E.g., In our document classification scenario, a word n-gram algorithm extracts n-gram features from extracted word sequences. |
| 39 | }}} |
| 40 | |
| 41 | ==== Feature Selection ==== |
| 42 | Each feature for each example has be processed by model trainers or executors. |
| 43 | There are several reasons for selecting just subsets of existing features. |
| 44 | First, not all features are useful for separating different classes. In details, there is no statistically significant dependency between class and feature occurance. |
| 45 | {{{ |
| 46 | E.g., In our document classification scenario, stop words or high frequent words are not useful for separating e.g., spam mails from ham mails. |
| 47 | }}} |
| 48 | Second, just a small set of features might be enough for classifiying examples successfully. Adding more just decreases performance. |