async predict()

in packages/cli/src/runtime.ts [148:156]


  async predict(datasource: DatasetPool.Types.DatasetPool<any, any>): Promise<PredictResult> {
    logger.info('running data flow script');
    if (this.scripts.dataflow) {
      datasource = await this.costa.runDataflow(datasource, this.scripts.dataflow, TaskType.PREDICT);
    }
    logger.info('running model script');
    const standaloneRT = createStandaloneRT(datasource, this.workspace.modelDir);
    return this.costa.runModel(standaloneRT, this.scripts.model, this.pipelineMeta.options, TaskType.PREDICT);
  }