




Hsu | Codes
Here are some codes I've written. Some have not been subjected to any scrutiny whatsoever, so I welcome suggestions, corrections, and other comments.
- Example code for Hierarchical Sampling: HS
- Sample input: ocr-train
- The tree file is an array p[0,...,2n-2] of parent pointers (i.e. p[i] = parent of node i). The leaves are nodes 0,...,n-1. The parent of the root is -1. The label file is an array y[0,...,n-1] of labels.
- Probabilistic Error Correcting Output Codes: PECOC