code: function generateData(numDimensions, numPoints) {
    const data = tf.tidy(() => {
      return tf.linspace(0, 1, numPoints * numDimensions)
          .reshape([numPoints, numDimensions])
          .add(tf.randomUniform([numPoints, numDimensions]));
    });
    return data;
  }
docs: /*
  Generate some synthetic data to demonstrate the T-SNE implementation.
  
  The data is drawn from a straight line in the high dimensional space to which
  random noise is added. The data must be a rank 2 tensor.