Changed return type of accuracy.accuracy function from `generator` to `list`.