How to properly do out-of-sample prediction for hierarchical model

You would need the array to have 9 dummy entries if you wand idx values of 9 and 10 to work