Presented at ILPS Reading Group by Lars Buitinck
feature_to_index = {} i = 0 for s in samples: for f, v in s: if f not in feature_to_index: feature_to_index[f] = i i += 1
for f, v in sample: if f in feature_to_index: vector[feature_to_index[f]] = v
for f, v in sample: vector[h(f) % n] += ξ(f) * v
| ξ(f1) | ξ(f2) | ξ(f1) + ξ(f2) |
|---|---|---|
| -1 | -1 | -2 |
| -1 | 1 | 0 |
| 1 | -1 | 0 |
| 1 | 1 | 2 |
| Table of Contents | t |
|---|---|
| Exposé | ESC |
| Full screen slides | e |
| Presenter View | p |
| Source Files | s |
| Slide Numbers | n |
| Toggle screen blanking | b |
| Show/hide slide context | c |
| Notes | 2 |
| Help | h |