Skip to content

Bug in averaging #1

@nschneid

Description

@nschneid

Unless the --no-averaging flag is specified, the learner will attempt to use the averaged perceptron for training. However, the averaging formula is incorrect when averages are only computed for updated weights (and averaging the entire weight vector would be too slow).

A correct approach can be found in p. 19 of Hal Daumé's thesis. This keeps two vectors: the current weights, and the weights' deviation from the sum over all learning timesteps. Both vectors are sparsely updated, and allow the averaged vector to be computed at the end of learning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions