Azure Serverless (Python on Functions) + ML
You can explore this repository but all of these samples are now moved officially into Azure Samples - Please refer official documentation.
This sample demonstrates LDA topic modeling of Gutenberg books using Gensim/NLTK/Azure Python Storage SDK/ PyLDAVis Python libraries.
curl -X POST -H ‘Content-Type:application/json’ -d ‘{ “container_name” : “janeausten”, “num_topics” : 20 }’ https://gutenbergery.azurewebsites.net/api/TrainBookcode=mhu/Ihigx/0wgEtuyRybGDXRSah0vJ3wdsGT7rd2MMuuZOMCPFauqw==https://gutenbergbooks.blob.core.windows.net/janeaustenmodels/ldamodel.html
Performs the following tasks:
Performs the following
Loads a pretrained Keras model from a local function app zip blob.
Accepts image URL’s and uses Keras model for inferencing. Takes in URL’s of images that show camping gear, uses Keras model to predict classes for the gear.
curl -X POST -H ‘Content-Type:application/json’ -d ‘{“urls”:[“https://i.pinimg.com/originals/ab/66/90/ab669021ae492a7a53e3e7bcb8abf160.jpg","https://i.pinimg.com/236x/3b/c8/a6/3bc8a639ed669f6d9bf029bcf433d3fd--backpacking-packs-hydration-pack.jpg"]}‘ https://campidentify.azurewebsites.net/api/CampingGear
Performs the following
Loads an inception V3 uncompressed pretrained model
Accepts image URL’s and infers the image using a simple HTTP Trigger.
Check out this example that performs time series based forecasting using Python on Functions inside ACI.
https://github.com/priyaananthasankar/parseltongue/tree/master/PyFunctionsOnACI/ForecastingApp
This repository contains samples built with Azure Functions on Python (public preview) to infer/predict from ML models
Predict the gear type of an image: e.g., boots, gloves, harness, jacket etc, given a model that is trained using Keras on
multiple camping images.
Topic model Jane Austen’s books or Sir Arthur Conan Doyle’s books from Gutenberg database using Gensim and NTLK libraries
and have a bit of fun exploring main characters via PyLDAVis
Sample code to demonstrate InceptionV3 model loading through Tensorflow libraries
Explore bash scripting needed to launch a Python function app in Linux Consumption Plan.