I look forward to Pi Day every year at SAS because it's a day of celebration including yummy pies and challenging games that challenge you to recall the digits after the decimal point in Pi. Plus you get to wear Pi t-shirts (I have about seven). Today, though we are going to talk about DLPy which sounds like Pi and Pie but really stands for Deep Learning with Python.
DLPy is an open source package that data scientists can download to apply SAS deep learning algorithms to image, text and audio data. And you don’t need to write SAS code to reap the benefits of deep learning. DLPy is a toolset in a Python-style shell to SAS scripting language and the SAS deep learning actions from SAS® Visual Data Mining and Machine Learning.
DLPy is available in SAS Viya 3.4 and accessed via Juypter Notebook. DLPy is designed to provide an efficient way to apply deep learning functionalities to solve computer vision, natural language processing, forecasting, and speech processing problems. DLPy APIs are created following the Keras APIs with a touch of PyTorch flavor. This library is available on GitHub.
Deep learning with DLPy
DLPy features include the following:
- Read in and build deep learning models for image, text, audio and time series data.
- High-level APIs for:
- Deep neural networks for tabular data.
- Image classification and regression.
- Object detection.
- RNN-based tasks – text classification, text generation and sequence labeling.
- RNN-based time series processing and modeling.
- Processing audio files and training deep learning algorithms to create a language model for speech recognition applications.
- Predefined network architectures such as LeNet, VGG, ResNet, DenseNet, Darknet, Inception and YoloV2 and Tiny_Yolo. And many are provided with pre-trained weights!
- Enhanced data visualization such as heat maps and feature maps to aid in the interpretation of deep learning computer vision models.
- Import and export deep learning models in ONNX format.
We’ve created a series of six videos to introduce DLPy. We suggest you start with the introduction below and then move to your area of interest. I'll include the introduction here and link to all the videos below.
- Introduction to the series
- Image Classification with Convolutional Neural Networks
- Object Detection With Tiny YOLOv2 Model
- Import and Export Deep Learning Models With ONNX
- Text Classification and Text Generation With Recurrent Neural Networks
- Time Series Forecasting With Recurrent Neural Networks
With DLPy, you can have your Py!
DLPy makes it easy to take advantage of deep learning with its preconfigured models. Simply choose your model, modify it and begin deep learning. And if you want to contribute to the DLPy library, create a pull request as SAS gladly accepts pull requests on GitHub.
Just a note, to use the package for model development, a SAS Visual Data Mining and Machine Learning license is required.