sql-machine-learning / sqlflow

Brings SQL and AI together.
https://sqlflow.org
Apache License 2.0
5.09k stars 698 forks source link

Add sql/executor.go #66

Closed tonyyang-svail closed 5 years ago

tonyyang-svail commented 5 years ago

An executor will execute the training/evaluation job. It needs to do the following

  1. Download the model files from the MySQL database, if necessary, to the working directory
  2. Copy paste the generated python training file to the working directory
  3. Train the model in a docker container, with the working directory mounted as -v option
  4. After the job is finished, upload the trained model file to the MySQL database, if necessary
wangkuiyi commented 5 years ago

Agree. We could define type Trainer struct and type Predicter struct in sql/executor.go like the example type SQLRunner in https://github.com/wangkuiyi/jupyterbroker.

wangkuiyi commented 5 years ago

The Trainer and Predictor can follow the pattern in https://github.com/wangkuiyi/sqlflow/issues/69#issue-384478736

tonyyang-svail commented 5 years ago

This issue is solved by #84 and #98.