verifyIsInitialized(data) {
    if (!this.sizes) {
      this.sizes = [data[0].input.length, data[0].output.length];
      this.initialize();
    }
  }
If the model is not initilized, then initialize it.
@param {Object} data Data for the initialization.