The sigmoid() in kws/model/kws_model.py:KWSModel() was moved into kws/model/loss.py:max_pooling_loss() To compute the posterior score correctly, the sigmoid() should also be added to kws/bin/score.py:main()