This samples shows how to use deep learning and image data to classify galaxies. The scenario is specific to research but can be generalized to image classification for many other industries. It provides the supporting SQL and R scripts for the blog post How six lines of code + SQL Server can bring Deep Learning to ANY App.
Data: Galaxy Zoo project was used as source of labeled training data.
Scripts: The following scripts are provided in the SQLR
folder:
createTables.sql
: create tables for trained models and scored data.train_NN_model.sql
: stored procedure for training NN model with Microsoft MLpredict_NN_model.sql
: stored procedure for scoringtrigger_predict_model.sql
: script to invoke scoring. This uses a trigger to run the scoring when a row is inserted into theGalaxiesToScore
table.
For end-to-end training and prediction the images could be downloaded from public storage. See this links for more info: