I'll take a stab on the 30 bit input 1st. If #14 is H and #22 is L Target = T 75% success rate. I didn't spend too much time validating it... just a quick stab.
Your input space contains 2^300 possible distinct values, yet you provide 3000 (< 2^12) exemplars? Any number of functions will generate your mapping. This is a fool's errand.