Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Deep Learning 101: Using Apache MXNet in IBM DSX Notebooks

DZone's Guide to

Deep Learning 101: Using Apache MXNet in IBM DSX Notebooks

Learn how to use Apache MXNet on IBM DSX Notebooks and Kubernetes.

· AI Zone ·
Free Resource

EdgeVerve’s Business Applications built on AI platform Infosys Nia™ enables your enterprise to manage specific business areas and make the move from a deterministic to cognitive approach.

Many people are using IBM's excellent DSX platform, which uses Jupyter Notebooks and the ever-popular Kubernetes.

I wanted to try out Apache MXNet in this environment.

It's great.

Create or reuse an existing notebook. For Python, the default is Jupyter. Zeppelin is now also supported. I am using Python 2.7 with DSX Desktop on an OSX workstation.

This supports Apache MXNet.

My local Apache MXNet installation and MXNet Python installation worked well with DSX. I needed OpenCV for this example, so I was able to install right inside IBM DSX via:

!pip install --user opencv-python

It's very easy to start a notebook and add your code. You get nice syntax coloring.

I uploaded the precompiled model.

Here, we can check our list of Python libraries with:

!pip list --isolated --format=columns

It's very easy to run your Apache MXNet code right in a notebook. It's easy to share with other data scientists and engineers in your group and others.

IBM DSX Assets

You will need to download the pre-built Inception model and add that to assets.

  • synset.txt

  • Inception-BN-0000.params

  • Inception-BN-symbol.json

See here for more details.

curl --header 'Host: data.mxnet.io' --header 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Firefox/45.0' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Language: en-US,en;q=0.5' --header 'Referer: http://data.mxnet.io/models/imagenet/' --header 'Connection: keep-alive' 'http://data.mxnet.io/models/imagenet/inception-bn.tar.gz' -o 'inception-bn.tar.gz' -L

curl http://data.mxnet.io/models/imagenet/synset.txt

More models can be found here.

The source code can be found here and here.

Adopting a digital strategy is just the beginning. For enterprise-wide digital transformation to truly take effect, you need an infrastructure that’s #BuiltOnAI. Click here to learn more.

Topics:
apache mxnet ,deep learning ,ai ,ibm dsx ,notebooks ,tutorial

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}