fix typo, making filter without training set now initialises frequencies to empty dict