ML5 can’t train XOR

// dataset
{ a: 0, b: 0, output: 'zero' },
{ a: 1, b: 0, output: 'one' },
{ a: 0, b: 1, output: 'one' },
{ a: 1, b: 1, output: 'zero' },

const options : {
  task: 'regression',
};

// outputs
// 0,0 => zero
// 1,0 => one
// 0,1 => one
// 1,1 => one

I’m not able to figure out what is going on, the learning process seems to be successfull.

Demo https://stackblitz.com/edit/react-ts-ut9iyb?file=App.tsx

(note: it doesn’t load at first due to the way I load ML5, you have to edit a file and save in order to get it to start.)