Fix nitpick exceptions

2 jobs for estimators_optimize_loss in 130 minutes and 7 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Build
passed #165395
docker
build_linux_36

02:06:23

70.0%
passed #165396
macosx
build_macosx_36

02:10:07

70.0%