Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [machine-learning]

Questions about machine learning functionality of Mathematica, for instance involving, but not restricted to, Predict, Classify, FindClusters and the various regression functions.

17
votes
4answers
767 views

How to use Mathematica to train a network Using out of core classification?

I see there is doc about how to train a network Using out of core image classification and this question.But the object is only image. I want to use a binary file as data(Sequence to Sequence case),...
9
votes
1answer
1k views

How can I determine the importance of variables from Classify?

I have used the "RandomForest" method in Classify to classify my response variable (nominal with 2 levels). Can Classify, like ...
6
votes
3answers
534 views

how to take ImageFeatures?

I want to know how to transform images to feature vector. There is a function FeatureExtractor.And it has some methods. ...
67
votes
6answers
3k views

Q&A Mathematica v.11 Neural Networks: A comprehensive look at Layers, Net Functions, and pioneering into this [[experimental]] code

Motivation As Mathematica v.11 was released earlier this month with a host of new [[experimental]] functions and a limited number of examples on curated data that ...
8
votes
3answers
590 views

Example of NetChain running in MXNet cause Error

Cross post here Problem remains in Mathematica 11.2 First defining the net ...
20
votes
2answers
1k views

How to know the internal algorithms of functions like Predict or Classify?

The document centre seems only explain how to use these functions, but just in an very brief way. I know Mathmatica is not open source, so we can not expect to see the code of the function, but are ...
8
votes
2answers
533 views

Training data generator?

Python has generators which save memory, is there a technique for generating in memory examples for your training set "on the fly". For example purposes, I constructed here a regressor for blur: <...
10
votes
1answer
179 views

Help: Reclassify

Is it possible to improve the current ClassifierFunction with more training data without running the previous training again? In this way i will be able to deal ...
85
votes
1answer
10k views

Crack CAPTCHA using deep learning

Deep convolutional neural networks are very good at computer vision related tasks. Optical Character Recognition (OCR) is one important branch of computer vision. In fact, the convolution neural ...
42
votes
2answers
5k views

Object detection and localization using neural network

Four important computer vision tasks are classification, localization, object detection and instance segmentation (image taken from cs224d course): These four tasks are all built on top of the deep ...
38
votes
1answer
2k views

How to perform document classification (i.e. extracting topics from text)?

I need to build a multi-label text classifier. There are a bunch of techniques for doing this, and it's called automatic document classification. I'm trying to use the EM technique (expectation ...
23
votes
1answer
2k views

How can I detect if an image is of poor quality?

I need to filter out blurry or otherwise bad quality images from a set. I would like an efficient method to detect images that have any of the following three attributes: Out of focus or motion blur ...
34
votes
1answer
2k views

RNN in Mathematica?

Recurrent neural network is an important part of machine learning and its improved version: LSTM network is widely applied, but Mathematica seemingly is in lack of these two features and in my opinion,...
27
votes
1answer
2k views

How to export an MXNet?

I was hoping there was some way to generate the .params and .json file needed to define an MXNet model, from a network trained using NetTrain[] in Mathematica. I ...
16
votes
1answer
2k views

How to split a Dataset into training and testing for machine learning?

Suppose I have iris data In the Dataset Format. How to split the iris data Into training and testing for Machine learning? For example,Transform the data for Classify.
36
votes
3answers
2k views

What is behind experimental function: FindFormula?

In version 10.2 there is a new experimental function: FindFormula[]. I suspect that a genetic programming algorithm (symbolic regression) is behind this new ...
13
votes
2answers
898 views

How to do Independent Component Analysis?

The new experimental function in 10.3.1 DimensionReduce[], has the following three options for Method: ...
16
votes
1answer
895 views

How to implement a stateful RNN?

If the model is stateless, the cell states are reset at each example. With the stateful model, all the states are propagated to the next example. Stateful RNNs can learn the long sequences. For ...
13
votes
2answers
1k views

How to change NeuralNetwork options?

How can I manipulate the architecture and problems of a NeuralNetwork in Predict or Classify? For example, running the following ...
9
votes
1answer
735 views

t-SNE visualization

Is there an implementation of “t-SNE” for dimension reduction in mma? This technique visualizes high-dimensional data by giving each datapoint location in a two or three-dimensional map. It generally ...
9
votes
1answer
462 views

Mathematica learning resource dealing with bayesian inference

Is there any good resource dealing with both Mathematica and bayesian inference?
7
votes
1answer
503 views

Which GPUs does NetTrain work with?

NetTrain's option TargetDevice -> "GPU" works for old macbooks that have GEForce GT 750m cards (like mine), but what about other nvidia cards? Does it (or will ...
11
votes
1answer
274 views

How to view ClassifierFunction's preprocessed data?

Classify apparently preprocesses your input data, for example (same example from Classify reference page, but using ...
12
votes
1answer
748 views

Configuring GPU for NetTrain

I currently have access to a system with two GPUs: GeForce GTX 1080 and Tesla K40c I would like to use this machine for training neural networks in Mathematica. When using the option ...
11
votes
1answer
247 views

Can Predict/Classify be parallelized?

Being able to parallelize Predict /Classify would be useful on multiple fronts: Performance/Scale Streaming Pedagogical ...
7
votes
1answer
324 views

How to know the internal pre-processing of automatic machine learning function `Classify`?

In the Highly automatic machine learning page, it is said the function like Classify and Predict will do things like automatic ...
6
votes
2answers
928 views

How to do $ n $-fold cross validation with Classify?

Other machine learning libraries have utilities to generate indices that can be used to generate dataset splits according to different cross-validation strategies. How do I tell ...
4
votes
1answer
501 views

Is it possible to fix the weight of a certain layer during neural network training?

As suggested by the title, is it possible to fix some part of the neural network while training? Since Mathematica provides a way to extract part of a neural network and combine it with some layers ...
1
vote
1answer
43 views

Issue deploying a FormPage using Classify

I developed this code that allows me to recognize what breed is the dog in the inserted image (for the time being developed only for five breeds of dogs), however, when I go to insert the image in ...
37
votes
4answers
2k views

Generative Adversarial Network

Generative adversarial networks (GAN) is regarded as one of "the most interesting idea in the last ten years in machine learning" by Yann LeCun. It can be used to generate photo-realistic images that ...
44
votes
2answers
2k views

Generalized Backpropagation for Neural Networks (e.g. DeepDream)

Is there currently any way to abuse NetTrain to maximize an arbitrary cost/utility -function in some hidden layer and/or even modify the input to increase neuron ...
31
votes
1answer
1k views

How can I export my learned ClassiferFunction[] and PredictorFunction[]s?

Mathematica 10 provides beautiful high-level machine learning functionality. Sadly, the learned functions once created are rather opaque objects. I need to use them in other projects, so here is my ...
13
votes
2answers
2k views

How to train a convolutional neural net on images?

The functions Predict[] and Classify[] both have the option Method -> "NeuralNetwork", ...
24
votes
2answers
664 views

How to make a custom NN layer in Mathematica?

Is there a way to create our own custom layers for Neural Networks in Mathematica ? I suspect it should be possible, any pointers or directions on how to go about it? I am interested in ...
11
votes
1answer
634 views

How to implement QLearning?

I know that v10 has support for both Machine Learning and Finite Markov Processes, the Q-learning algorithm uses both. Specifically, Q-learning finds an optimal action-selection policy for any given (...
13
votes
3answers
1k views

Transform Dataset so it can be used as training set for Classify

Trying to learn the new Dataset features, I am playing with the iris dataset: ...
12
votes
2answers
393 views

Simple example of NetGraph running in MXNet?

There is an great example of exporting a NetGraph (that was trained in Mathematica) into the MXNet's format. However, I think there's a bug or something is wrong with the answer, because once ...
11
votes
3answers
1k views

Noise filtering in images with PCA

I have a stack of images (usually ca 100) of the same sample. The images have intrinsic variation of the sample, which is my signal, and a lot of statistical noise. I did a principal components ...
15
votes
5answers
2k views

Recurrent neural network in 11.1 explicit examples?

I heard that RNN was implemented in Mathematica as of 11.1. Trying to search online, I find some general information about neural networks in Mathematica, or a list of related functions. My trouble is ...
12
votes
2answers
299 views

Classify / Predict: ensemble of classifiers / predictors

Mathematica has undocumented functionality of combination classifiers / predictors in ensemble. How to get access to this functionality? SeedRandom[1]; X = Table[ Join[ ToString /@ RandomReal[{...
12
votes
1answer
757 views

How to visualize attention?

In the articles about sequence attention we can see images like this: Here we see that while translating from French to English, the network attends sequentially to each input state, but sometimes it ...
12
votes
1answer
296 views

Using PredictorMeasurements with a neural net?

PredictorMeasurements doesn't work with NetGraph, here's an example: ...
10
votes
3answers
621 views

Using Mathematica wlnet model in C++

Suppose if there is a trained net: SeedRandom[1234]; net = NetInitialize@NetChain[{5, 3}, "Input" -> 2]; It can predict image in mma: ...
7
votes
1answer
265 views

Can we implement a Neural Network interactively?

Implementing a Neural Network manually need some code and need to make some connections between these components. Can we implementing a Neural Network interactively?If I want to make a net like ...
3
votes
0answers
129 views

How does Mathematica automatically choose which classifier method to use?

I'm interested in what heuristics are used in Classify's choice of method.
14
votes
0answers
438 views

How to ImageRestyle high-res images?

Running v11.2 on Ubuntu 16, ImageRestyle[] crashes for me on an image of size 1600 x 1200 pixels. All the examples in the documentation use images around 500 x ...
10
votes
1answer
172 views

Can one use NetTrain with two Nvidia GPUs?

I am thinking of buying another GPU to accelerate my training. Will I be able to call NetTrain with both GPUs ("TargetDevice"-> {"GPU", All})? Or would it be ...
9
votes
2answers
220 views

Options for ValidationSet accuracy from NetTrain?

With NetTrain[] if you use the option ValidationSet->Scale[.1] it will run a validation test on 10% of the training data ...
3
votes
1answer
352 views

Using a dataset of PredictorFunctions

I have been working with a dataset of predictor functions -- mainly so I can have more insight in to what the functions are doing and how they behave. Where I am struggling is using ...
14
votes
1answer
680 views

Implementing t-SNE (t-Distributed Stochastic Neighbor Embedding)

Context Six months ago @M.R. asked about an implementation of the t-Distributed Stochastic Neighbor Embedding (t-SNE) algorithm by van der Maaten and Hinton (2008). (@M.R.'s question) @Alexey ...