I am using Azure ML Workbench
to perform binary classification. So far, everything works fine, I having good accuracy, and I would like to deploy the model as a web service for inference.
I don't really know where to start : azure provides this doc, but the example uses sklearn
and pickle
, not tensorflow
.
I'm not even sure if I should save and restore the model with tf.train.Saver()
or with tf.saved_model_builder()
.
If anyone has a good example that use vanilla tensorflow in azure ml workbench, that'd be great.
Ok, so for anyone wondering the same, I found the answer. Instead of using a
pickle
model, I saved my model as aprotobuf
, by following this. Then, I write the init(), run() and load_graph() method like so :Probably needs some cleaning, but it works !