Do this by iterating over the vector:

~~~java
for (VectorEntry e: predictions.fast(VectorEntry.EntryState.EITHER)) {
    long iid = e.getKey();
    predictions.et(e, /* prediction */);
}
~~~

It will be faster.