This minimal code example trains an offset model on targeting data given in an array. A prediction with this model is printed to the browser console.