Sorry for the confusion. Both @pwendell and I were talking about

~~~
val InvalidBinIndex = -1
~~~

instead of `train`.