I am coming up with the problem that my validation set is getting all labels of one class, so the validation accuracy is either 0 or 1.
Could someone point me where to change the validation split to use StratifedShuffleSplit from sklearn
You can do a stratified split from sklearn, and then pass that in through validation_data=(X_val, y_val) in .fit() rather than validation_split=...
True!, thanks.
would still be nice to add a flag for that
:+1: This would be super useful
Most helpful comment
would still be nice to add a flag for that