identical:\",bool(np.allclose(e1,e2)))","label":"Order-blind embeddings"},{"code":"# the honest fix (what nano-vla-stack does): PARSE the order — first colour = source.\ndef source(s):\n for w in s.split():\n if w in ('red','green'): return w\nprint('parsed source of \"stack the green on the red\":', source('stack the green on the red'))\nassert np.allclose(e1,e2) and source('stack the green on the red')=='green'\nprint(\"PASS - order-blind embeddings can't separate the two, so we parse the source and condition the policy on it. Honest engineering beats a false claim.\")","label":"Parse the source — the honest fix"}],"intro":"Expose order-blindness, then parse the source to fix it.","key":"vision-language-action/order","kind":"python","title":"When words have order"}">
PYTHON · NUMPY · IN-BROWSER
When words have order
Expose order-blindness, then parse the source to fix it.
You read
the arrays and values already in scope
You change
the code you write in each cell
Fixed
the dataset and the checks that grade you