{
const model = tf.sequential()
model.add(tf.layers.dense({units: 2, inputShape: [1]}))
model.add(tf.layers.dense({units: 1, inputShape: [2]}))
model.add(tf.layers.dense({units: 1, inputShape: [1]}))
model.compile({loss: 'meanSquaredError', optimizer: 'sgd'})
model.summary()
const xs = tf.tensor2d([-1, 0, 1], [3, 1])
const ys = tf.tensor2d([-3, -1, 1], [3, 1])
const h = await model.fit(xs, ys, {epocs: 250})
return model.predict(tf.tensor2d([30], [1, 1])).dataSync()
}