fix has_monitoring_datasets for empty dict
add a test for empty monitoring_datasets dict
fix bad test on empty monitoring datasets dict
Merge pull request #1193 from bouthilx/sgd_typo

Fix bug in SGD