We’re rewarding the question askers & reputations are being recalculated! Read more.

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.

Filter by
Sorted by
Tagged with
3
votes
1answer
66 views

Validation failed for ConvolutionLayer message?

I have a simple fully convolutional network and I'm trying to figure out why I get this error NetChain::valfail: Validation failed for ConvolutionLayer: kernel size 3*3 plus padding size 0*0 cannot ...
3
votes
1answer
130 views

how to use CatenateLayer to connect nodes within a NetChain

EDIT: Looking closely at my network I have a similar problem of providing inputs to the CropLayer function. The output from the pooling layer (node 30) and node 87 (activation) should feed to the ...
3
votes
1answer
39 views

How to replace all activations in a NetGraph?

I'm trying to replace all activation layers of a certain type, there must be a simpler way to do this? ...
86
votes
1answer
12k 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 ...
2
votes
0answers
59 views

Unable to create ClassifierMeasurements for NetGraph

I am trying to check the accuracy of a neural network by using ClassifierMeasurements. I take the MNIST as example:- Code for setting ...
2
votes
1answer
60 views

Unable to create NetGraph

I am trying to perform deep learning classification in Mathematica. I noted that I am unable to create NetGraph even when I just follow the simple steps in the help ...
4
votes
2answers
171 views

NetTrain with multi-label data?

I'm attempting to do simple category recommendation on textual data. I have around 20k training samples of the form desc_String -> {tag1_String, tag2_String, ...}...
1
vote
0answers
65 views

BayesianMinimization not giving the optimal values

I was following the examples given in the BayesianMinimization documentation and I found that this function actually does not give me the minimal value (very close though). Can anyone help explain the ...
28
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 ...
5
votes
1answer
270 views

Predict expand training data

Disclaimer: I have edited this question to provide my MWE, since it seems, I have a very similar question. -- LLlAMnYP 21.03.2018 Lets say I have a small set of training data and have calculated a ...
3
votes
0answers
181 views

Is is a bug when importing MXNet model?

There is a trained net:model.zip Using Python to make prediction: ...
3
votes
1answer
132 views

Single Neuron Dream Example (from Markus van Almsick's Presentation WTC 2017)

I'm teaching myself about Mathematica 11.3 Neural Net capabilities, and I can't get a demonstrably previously working example to work. I've been trying for quite a while without success. In Martin ...
10
votes
1answer
222 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 ...
1
vote
1answer
131 views

Using NetTrain with HDF5?

I have some nicely formatted training data in HDF5 files, i.e. the images and labels are serialized within the H5 file as groups and datasets. AFAIK NetTrain only ...
3
votes
0answers
141 views

Image Segmentation: (Efficient Graph-Based)

This question is two-fold; First, it is about how to get the speed efficiency this algorithm should provide in Mathematica. In addition, it has a small question about the algorithm (Efficient Graph-...
4
votes
1answer
64 views

How to restore trained classifier/predictor from persistent storage?

Mathematica 11.3 has the ability to store trained classifier/predictor in the notebook. But how can we restore it in the new session? Create notebook and measure it's size: ...
0
votes
0answers
51 views

Whats the best way to classify data for Fall detector device?

I would like to know what's the best way or the function to use to classify 2 files for a fall detection device. my first file contains only TDL (Normal Movements) values and the second contains only (...
3
votes
1answer
395 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 ...
9
votes
0answers
199 views

How to extract tree parameters from RandomForest?

I want to extract the parameters of a decision tree from the object estimated by Classify[]. It seems that parameters of the estimated Classifier are available in the "Models" property. It is ...
3
votes
0answers
246 views

Image Generator with a Neural Network (CIFAR-10)

As some of you may know, CIFAR-10 is a data base which has 60,000 images (which are 32x32 in size) of 10 different categories (airplane, dog, cat, frog, deer, bird, horse, ship, automobile and truck). ...
12
votes
1answer
343 views

Using PredictorMeasurements with a neural net?

PredictorMeasurements doesn't work with NetGraph, here's an example: ...
2
votes
2answers
134 views

ElementwiseLayer with Piecewise?

I need a specific custom activation function; how can I implement it with Piecewise? This is what I've tried (using the recommendation from this question): ...
3
votes
1answer
86 views

Using NetGraph as FeatureExtractor?

I'd like to compute FeatureDistance between two images with a NetGraph: rs = NetModel["ResNet-152 Trained on ImageNet Competition Data"]; fe = NetTake[rs, {1, -3}] ...
6
votes
1answer
132 views

Is it possible to convert the result of NetTrain to a PredictorFunction?

I would like to use PredictorMeasurements on the result of NetTrain, but it says it expects a ...
13
votes
3answers
2k 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: ...
18
votes
0answers
168 views

Inefficient memory storage for Dataset

Why Dataset doesn't serialize its contents, isn't it the whole point? I expect it to behave similar to python's pandas.DataFrame,...
3
votes
0answers
95 views

How to perform unsupervised texture classification?

Consider a texture mixture (img) from Brodatz. I want to classify the five different texture patterns and segment the corresponding regions. Following this, I ...
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 ...
4
votes
0answers
339 views

Using Machine Learning techniques for text-analysis

I am analysing a bunch of tweets and I want to understand which political party the authors support. Let say, for example that I have five parties labelled by a number: ...
0
votes
0answers
70 views

Training speed of NetTrain on GPU

I have a model with NetTrain that works fine. However, as I increase the amount of training data, the number of inputs per second to my GPU drops very, very substantially. In fact, when I include all ...
3
votes
0answers
41 views

NetTrain doesn't accept sparse input?

The following code fails to execute: ...
0
votes
0answers
54 views

Neural Network and Enforce Positive Vector

I am trying to implement a neural network where I output a vector of 5 parameters each of which I know to be positive. I have code that works where I end up with an `"Output" -> 5.' However, after ...
0
votes
0answers
113 views

Change Loss Function in NetTrain

For a similar problem, I am trying to modify the code here (https://www.wolfram.com/language/11/image-and-signal-processing/image-recognition-using-deep-learning.html?product=mathematica) so that the ...
2
votes
0answers
85 views
8
votes
1answer
415 views

NetTrain automatic settings

I'm trying to compare Mathematica's NetTrain with other algorithms, and I used Automatic settings as they were working quite ...
7
votes
2answers
141 views

Impact of Linkage and DistanceFunction on Agglomerate clustering

I'm using Agglomerate function to find clusters of my experimental points. I have about 20 points with 10 parameters each. It seems it works fine, but there are plenty of Linkage and DistanceFunction ...
2
votes
0answers
97 views

Fresh install: There is no $DefaultLocalBase value set [closed]

Fresh install Mathematica 11.1.1.0 on Windows 10 The command $DefaultLocalBase returns $Failed and an error message ...
6
votes
0answers
228 views

How “good” is the new Classify and how does it choose its method

I recently read the blog regarding data-science Wolfram Blog and then checked the quality of the new Classify. I have a bunch of slides that I show to my students ...
2
votes
0answers
79 views

Specifying feature types for BayesianMinimization

I'd like to use Bayesian optimization over a pair of features, one nominal, one numerical. If I do something like this: ...
5
votes
0answers
122 views

What's BayesianMinimization and related functions based on?

Is it specified anywhere what the backend is for the Bayesian optimization related functionality in Mathematica v11? I'm specifically referring to the Bayesian* ...
2
votes
0answers
73 views

Apply a classifier to a column in excel and export side by side result? [closed]

I'm relatively new to using Mathematica, and I was able to create a Classifier from a training set of about 3,000 pairs of non-numerical text strings. I have my test set of about 20,000 records in an ...
3
votes
1answer
262 views

Machine learning classify function with audio and set of pictures

As I see from documentation, Classify function supports Audio and Pictures as input, video is not supported unfortunately :( Will it work if I try to use classify for mixed data input like ...
10
votes
3answers
751 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: ...
13
votes
2answers
431 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 ...
3
votes
0answers
68 views

FeatureSpacePlot freaks out with LatentSemanticAnalysis on words

I'm playing with FeatureSpacePlot on a collection of words: ...
2
votes
1answer
110 views

Changing plot style in PredictorMeasurements

I'm trying to combine a PredictorMeasurements["ComparisonPlot"] plot with another plot, but the problem is that the plot generated by ...
2
votes
1answer
146 views

Can Predict return non-numerical values?

I just started working with the Mathematica machine learning package. When I use Predict, I can predict only numerical values like ...
1
vote
0answers
138 views

Machine Learning Predict Precision

I have this code p = Predict[{1 -> 123456789123456789, 3 -> 987654321987654321}] values are big, more than 15 digits (standard machine precision). when I ...
2
votes
0answers
74 views

ClusterClassify and FeatureTypes

I have a dataset that I want to classify in clusters. All values are numbers. For some variables, the values can represent a real measure (a distance, a weight...) but for some other variables, the ...