The fundamental data structure in MXNet, similar to NumPy’s ndarray. It represents multi-dimensional arrays.
- Creation:
mx.nd.array(data)
- Shape:
ndarray.shape
- Context:
mx.cpu()
ormx.gpu(0)
to specify device.
A quick reference guide for Apache MXNet, covering essential concepts, modules, and operations for building and training neural networks.
The fundamental data structure in MXNet, similar to NumPy’s ndarray. It represents multi-dimensional arrays.
|
Example:
|
Represents a symbolic expression for defining neural network architectures. Symbols are used to define the computation graph.
|
Example:
|
Specifies the device (CPU or GPU) on which the computation will be performed.
|
Example:
|
Used for feature extraction from images.
|
Example:
|
Used for reducing the spatial dimensions of the feature maps.
|
Example:
|
Also known as dense layers, used for classification.
|
Example:
|
Apply a non-linear transformation to the output of a layer.
|
Example:
|
Loading data for training.
|
Example:
|
Algorithm to update the weights of the network during training.
|
Example:
|
Used to evaluate the performance of the model.
|
Example:
|
Training the model using the defined data iterator, symbol, optimizer, and metric.
|
Example:
|
A high-level API for building neural networks in MXNet. Provides a more intuitive and flexible way to define, train, and evaluate models.
|
Example:
|
Using
|
Example:
|
Using
|
Example:
|
Loading data using
|
Example:
|