#2261 adapted interface to use IDataset instead of Dataset and added logistic regression loss function