Questions tagged [mxnet]

Apache MXNet is a fast, scalable, open source deep learning framework that supports Python, R, Scala, C++, Julia, Go, and Javascript. MXNet can run on multiple CPUs and multiple GPUs distributed across multiple hosts, with almost linear scalability.

Apache MXNet: Flexible and Efficient Library for Deep Learning

For more details see http://mxnet.io/

Flexible

Supports both imperative and symbolic programming

Portable

Runs on CPUs or GPUs, on clusters, servers, desktops, or mobile phones

Multiple Languages

Supports over 7 programming languages, including C++, Python, R, Scala, Julia, Matlab, Javascript and Perl.

Auto-Differentiation

Calculates the gradient automatically for training a model

Distributed on Cloud

Supports distributed training on multiple CPU/GPU machines, including AWS, GCE, Azure, and Yarn clusters

Performance

Optimized C++ backend engine parallelizes both I/O and computation

701 questions
2
votes
1 answer

Correctly formatting data for lstm recurrent neural network in R / mxnet

I want to train an lstm neural net using the mx.lstm function in the R package mxnet. My data comprises n feature vectors, a vector of labelled classes and a time vector, much like this dummy example where X1, X2, X3 are the features: dat <-…
RCW
  • 35
  • 1
  • 7
2
votes
1 answer

Dockerizing an app that uses mxnet package in R

I am dockerizing a shiny app that uses 'mxnet' package. After lots of efforts I concluded that I need to build and install the package instead of just installing it normally from the dmlc repos. Below is me simplified dockerfile that tries to build…
owise
  • 1,055
  • 16
  • 28
2
votes
1 answer

Adding repos to the dockerfile

I am trying to add DMLC repos in my Dokerfile so that I can install mxnet package. I am doing this as follows: RUN R -e "install.packages('drat', repos='https://cran.rstudio.com')" RUN R -e "drat::addRepo('dmlc')" RUN R -e "install.packages('mxnet',…
owise
  • 1,055
  • 16
  • 28
2
votes
1 answer

when I practise the Mxnet turorial mnist, an error"ImportError: No module named mnist_demo" occurs

The tutorial is on http://mxnet.io/tutorials/python/mnist.html. At this step: " from IPython.display import HTML import cv2 import numpy as np from mnist_demo import html, script def classify(img): img =…
Muz
  • 699
  • 1
  • 11
  • 25
2
votes
1 answer

How to write a custom MXNet layer with learned parameters

I'm following the documentation in http://mxnet.io/how_to/new_op.html for how to define a new neural network layer in MXNet in python by subclassing themx.operator.CustomOp class. The example is of a loss layer that has no learned parameters. So…
Leopd
  • 41,333
  • 31
  • 129
  • 167
2
votes
1 answer

No applicable method for 'predict' applied to an object of class "MXFeedForwardModel"

I have created a Neural network model using mxnet package in R studio. I tested the model on local and it works as expected. I have deployed the same model as a webservice in AzureML using publishwebservice() function from R. When I try to predict…
Nishu Tayal
  • 20,106
  • 8
  • 49
  • 101
2
votes
1 answer

Can MXNET fit a regression LSTM model in R?

I would like to fit an LSTM model using MXNET in R for the purpose of predicting a continuous response (i.e., regression) given several continuous predictors. However, the mx.lstm() function seems to be geared toward NLP as it requires arguments…
Josh
  • 361
  • 2
  • 10
2
votes
1 answer

How to use mxnet RNN symbol to generate lstm

I've found RNN symbol is added in mxnet v0.7 python lib. Now, I'm trying to use it to impl lstm in example/rnn with python. But I have no idea because there's no document or any information of the input and output. Can anyone give me any…
2
votes
1 answer

Is there metric learning in MXNet or Keras?

I'm looking for something like this: https://github.com/rksltnl/Deep-Metric-Learning-CVPR16 but with MXnet or Keras.
M.R.
  • 1,053
  • 2
  • 13
  • 30
2
votes
1 answer

Random search in r-caret

I recently came across the random search option in caret's trainControl() Funktion. How does caret generate the parameters and is there a ways to provide some sort of user-specific input (e.g. a distributions where the parameters are sampled from)?…
winwin
  • 384
  • 6
  • 20
2
votes
1 answer

mxnet train image-classification models

Due to no step-by-step guidebook to learn how to use mxnet to train a image-classification model or raise a model's accuracy which alreadly exist , for example, I have 5 classes iamges and I wanna to train a model which can classify these 5 classes…
Ruyi Yin
  • 21
  • 3
2
votes
6 answers

Issue in installation of mxnet package in R

mxnet package is not installing in r (on windows 10) when I follow the steps given in its documentation. install.packages("drat", repos="https://cran.rstudio.com") drat:::addRepo("dmlc") install.packages("mxnet") It gives the following…
Naimish Agarwal
  • 516
  • 5
  • 14
2
votes
2 answers

How can i call a Python function from a script that was meant to run on command line

I would like to run this function from a script instead of the command line. For example, the function is: def main(): parser = argparse.ArgumentParser(description='Caffe prototxt to mxnet model parameter converter.\ Note…
kklw
  • 858
  • 3
  • 13
  • 28
1
vote
0 answers

Serve concurrent requests with NVIDIA Triton on a GPU

I currently have a triton server with a python backend that serves a model. The machine I am running the inference on is a g4dn.xlarge machine. The instance count provided for the GPU in the config.pbtxt is varied between 1 to 3. I am using…
Ajayv
  • 374
  • 2
  • 13
1
vote
0 answers

Installing gluonnlp results in an ImportError undefined symbol _PyGen_Send

I hope this is not an incredibly dumb issue, but googling did not produce any useable results. I installed gluonnlp 0.10.0 using pip on a Ubuntu 22.04.1 LTS server under Python 3.10.6. When I try to import gluon, I get the following error: Traceback…
Max Teflon
  • 1,760
  • 10
  • 16