Hyperparameters
| Argument | Controls | Memory() (analytic) |
Memory.main() |
|---|---|---|---|
alpha |
Mass of the new-story slot in the prior. Higher opens more nodes. | 0.01 | 0.01 |
prior_mass |
Pseudo-mass at birth. Higher keeps young nodes more open. | 1 | 1 |
half_life |
Half-life of every statistic, in the stream’s time unit. | 48 (hours) | 48 |
dim |
Dimension of the sphere: principal directions kept. | 256 | 256 |
max_nodes |
Rows of the table: nodes held at once. | 256 | 256 |
max_concentration |
Cap : how narrow a node can become. | 500 | 350 |
expiry |
Least mass to stay active; 0 turns expiry off. | 0 | 0.1 |
hard_write |
Write each item whole to its node instead of spreading it. | False |
True |
There is nothing else: no learning rate, no weights, no epochs.
Where the values come from
Section titled “Where the values come from”In the paper every hyperparameter was chosen once, by B³ F1 on a development stream (Newsfeed, English, 2015), within a fixed grid, and used unchanged on every test stream. The analytic configuration was chosen with the published sentence encoder. The main configuration was chosen the same way after adapting the encoder to news events of a disjoint year, and adds expiry, hard write and a lower cap. With the published encoder those same changes help on two of the three test streams (+0.013 and +0.014 in B³ F1 on News14 and WCEP18) and lose on the third (−0.006 on WCEP19), so they did not pass their gate there; Evaluation reproduces both rows. Use Memory.main() with an adapted encoder, and Memory() with a published one, unless your own labelled sample says otherwise.
Times are in hours by default because half_life = 48 is. Any unit works if half_life is expressed in it.
Choosing your own
Section titled “Choosing your own”The cap and the half-life set how finely a stream is cut into stories. For a stream of a very different pace or kind than news, choose them on a labelled sample with vmfstream.metrics.windowed_bcubed. To get a feel for each one first, change it in the memory explorer, which holds the Portal read with each setting changed in turn. The paper also chooses the granularity without labels, by the silhouette of the memory’s clusters; that selector is on the roadmap.