aaronmarkham commented on a change in pull request #15353: [MXNET-1358]Fit api 
tutorial
URL: https://github.com/apache/incubator-mxnet/pull/15353#discussion_r297447746
 
 

 ##########
 File path: docs/tutorials/gluon/fit_api_tutorial.md
 ##########
 @@ -0,0 +1,265 @@
+<!--- Licensed to the Apache Software Foundation (ASF) under one -->
+<!--- or more contributor license agreements.  See the NOTICE file -->
+<!--- distributed with this work for additional information -->
+<!--- regarding copyright ownership.  The ASF licenses this file -->
+<!--- to you under the Apache License, Version 2.0 (the -->
+<!--- "License"); you may not use this file except in compliance -->
+<!--- with the License.  You may obtain a copy of the License at -->
+
+<!---   http://www.apache.org/licenses/LICENSE-2.0 -->
+
+<!--- Unless required by applicable law or agreed to in writing, -->
+<!--- software distributed under the License is distributed on an -->
+<!--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -->
+<!--- KIND, either express or implied.  See the License for the -->
+<!--- specific language governing permissions and limitations -->
+<!--- under the License. -->
+
+
+# MXNet Gluon Fit API
+
+In this tutorial, we will see how to use the [Gluon Fit 
API](https://cwiki.apache.org/confluence/display/MXNET/Gluon+Fit+API+-+Tech+Design)
 which is the easiest way to train deep learning models using the [Gluon 
API](http://mxnet.incubator.apache.org/versions/master/gluon/index.html) in 
Apache MXNet. 
+
+With the Fit API, you can train a deep learning model with miminal amount of 
code. Just specify the network, loss function and the data you want to train 
on. You don't need to worry about the boiler plate code to loop through the 
dataset in batches(often called as 'training loop'). Advanced users can still 
do this for bespoke training loops, but most use cases will be covered by the 
Fit API.
+
+To demonstrate the Fit API, this tutorial will train an Image Classification 
model using the [ResNet-18](https://arxiv.org/abs/1512.03385) architecture for 
the neural network. The model will be trained using the [Fashion-MNIST 
dataset](https://research.zalando.com/welcome/mission/research-projects/fashion-mnist/).
 
+
+## Prerequisites
+
+To complete this tutorial, you will need:
+
+- [MXNet](https://mxnet.incubator.apache.org/install/#overview) (The version 
of MXNet will be >= 1.5.0)
+- [Jupyter Notebook](https://jupyter.org/index.html) (For interactively 
running the provided .ipynb file)
+
+
+
+
+```python
+import mxnet as mx
+from mxnet import gluon
+from mxnet.gluon.model_zoo import vision
+from mxnet.gluon.contrib.estimator import estimator
+from mxnet.gluon.contrib.estimator.event_handler import TrainBegin, TrainEnd, 
EpochEnd, CheckpointHandler
+
+gpu_count = mx.context.num_gpus()
+ctx = [mx.gpu(i) for i in range(gpu_count)] if gpu_count > 0 else mx.cpu()
+mx.random.seed(7) # Set a fixed seed
+```
+
+## Dataset
+
+[Fashion-MNIST](https://research.zalando.com/welcome/mission/research-projects/fashion-mnist/)
 dataset consists of fashion items divided into ten categories: t-shirt/top, 
trouser, pullover, dress, coat, sandal, shirt, sneaker, bag and ankle boot. 
+
+- It has 60,000 gray scale images of size 28 * 28 for training.  
 
 Review comment:
   ```suggestion
   - It has 60,000 grayscale images of size 28 * 28 for training.  
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to