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
9
votes
0answers
336 views

How to perform UMAP dimensionality reduction?

This new method UMAP looks to be better than TSNE, unfortunately it is not available as a dimension reduction method yet: Does anyone know if there exists an implementation of it in, or accessible ...
3
votes
1answer
136 views

How to modify NetTrain's error calculation

I'm training a neural network at the moment on an image segmentation problem (that is, I have an images and masks, and I am trying to train the network to generate its own masks from other images. I'...
5
votes
2answers
257 views

How to make similar objects have similar embedding weights?

In the read world, there are many many phones(aa ae ah ao ar aw ax ay b ch d dh ...). But for brief,I only use three phones(aa ah ae) to illustrate my question.And it only need training Data,no Test ...
0
votes
0answers
30 views

How to change the formulae of FeatureExtraction?

I have a feature extraction function fe, which gives me n/0.816497 as the output of fe[{1}]:- ...
1
vote
0answers
36 views

How to ask FindClusters to return the loss function value in the output?

I have some data points pts as below:- pts = BlockRandom[SeedRandom[123]; RandomReal[1, {100, 2}]]; Now I want to separate ...
3
votes
1answer
99 views

How to reconstruct the result of FeatureExtraction?

For the below code for Mathematica 11.3, I got {-0.153792, 1., 1.} as output. ...
7
votes
1answer
373 views

Why is SVM unable to separate linearly separable data?

I have two sets of data, namely blue and yellow. I manually added a point {8, -3} to the blue data. ...
0
votes
1answer
88 views

Problem of Low Accuracy of NeuralNetwork Method in Classify MNIST 11.3

The accuracy is extremely low... even after changing a lot of options of Method... Other methods' result is fine and normal, 0.80 accuracy like LogisticRegression. ...
6
votes
1answer
80 views

Which, if any, external machine learning libraries are used by Predict[]?

It's pretty much all in the title -- I suspect that Wolfram uses some standard (perhaps open-source) libraries in their machine learning functions, and I am curious as to what they are. I am ...
2
votes
0answers
77 views

Why is the output of the Embedding layer so non-linear?

I have 2 nets, i.e. net1 (i.e. LinearLayer) and net2 (i.e. ...
2
votes
1answer
112 views

How to generate a training set in an automatic way?

This question is related to my previous item where arithmetic with machine learning was considered. The results of the Predict command were not good because of a ...
2
votes
1answer
86 views

Custom NetEncoder

I've been trying to train an RNN on some data that I pre-processed externally and saved to disk. My dataset is too large to fit in memory and is additionally varying in shape. Looking for a way to do ...
1
vote
0answers
81 views

Why Method -> “NeuralNetwork” does not work for me? [closed]

Mastering my Machine Learning, I try arithmetic: ...
5
votes
1answer
94 views

Why would a symmetric image have an asymmetric PoolingLayer-Gradient Image?

I have a symmetric image img. For simplicity, I would use the below image as my example: ...
4
votes
0answers
84 views

In neural network, how to force the NetTrain to use full batch gradient descent instead SGD?

In a neural network, I want to use full batch gradient descent instead of SGD. Currently, I am using code like this (you can see that I forced BatchSize to be the ...
4
votes
1answer
111 views

How to apply the layer of sigmoid function in neural network?

I saw an article How to build a simple neural network in 9 lines of Python code and want to reconstruct the result in Mathematica. I tried the below codes:- ...
11
votes
1answer
2k views

Markov Random Field

I look for an efficient way to implement a Pairwise Markov Random Field. I have implemented a homogeneous (i.e., unary potential is a similar function in all nodes, and pairwise potential is a ...
11
votes
1answer
941 views

Neural Networks in Predict function

I'm trying to reproduce the result giving by a Predict function with a Neural Network as the chosen method. So, I'm training from this set: ...
3
votes
1answer
128 views

Extract neural network model from ClassifierFunction

I'm very new to Neural Networks and Mathematica 11 (I used MMA8 some time ago) and I'm trying to learn about NN using Mathematica. I'm using MMA 11.2 in a Rapsberry Pi (yes, I know that doing NN in a ...
11
votes
2answers
585 views

How to combine Neural Network and Audio like Classify?

I want to combine Audio object and Neural Network ,first thing I remember is Classify ...
2
votes
1answer
100 views

What does NetMapOperator do?

Recently, I have become addicted to Mathematica's support for neural networks. As I learn those commands that are prefixed with "Net", I can't tell the difference between using ...
2
votes
1answer
58 views

How does DimensionReduce work for EventData?

My question is whether the use of DimensionReduce, for a simple example with Method -> "PrincipalComponentsAnalysis" is the ...
2
votes
0answers
99 views

Does Mathematica auto update something causes error load old-version model?

I've trained a NN model by NetTrain with Mathematica 11.3.0, and I can load the model correctly to predict. My model is saved by .mx format. After few months, I cann't load the model correctly. ...
5
votes
0answers
60 views

How to make the clustering result of version 11.2 and 11.3 same?

I was doing clustering analysis in version 11.2, with codes like below, and then got 12 clusters as the output: ...
4
votes
0answers
83 views

Can I use Classify's model without internet or without FrontEnd?

Question1: without Internet When I'm using a model trained by Classify in an Machine/Linux without internet, I got the information: ...
4
votes
1answer
104 views

Deep Learning SummationLayer does not support varying dimensions on Linux server

I am trying a recurrent network in Linux server using MMA 11.3. The network structure is as follows: ...
4
votes
0answers
107 views

How to explain overfitting?

SeedRandom[0]; X = RandomInteger[{1, 5000}, {100000, 50}]; Y = RandomInteger[{0, 1}, 100000]; For net1 and ...
1
vote
1answer
66 views

How can I see the predictor function that Mathematica produces?

I am trying some basic machine learning with Mathematica. I am wondering if I can see the function that Mathematica produces for a training set. I give the following example: trainingset = {1 -> 1.3, ...
1
vote
0answers
46 views

Measurement of properties of custom classifying algorithm

I am interested in measuring my classifier algorithm. Therefore I look for something similar to ClassifierMeasurements, where I can put my predictions result and ...
0
votes
1answer
166 views

How do I change activation function of LinearLayer[] in NetGraph

I want to analize a network such that all neurons of its hidden layers output LogisticSigmoid[w.x+b], which is one of the most common ouputs analized in a neuron. ...
1
vote
1answer
65 views

Issue fine-tuning a simple embedding network

I'm trying to learn an embedding on Cifar-10 by finetuning ResNet-50 with a few added layers: ...
44
votes
4answers
3k 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 ...
5
votes
1answer
149 views

How to cluster a set of images?

I have a set of images (imgset) as Clearly, the classification list should be ...
2
votes
1answer
92 views

Plotting a precision recall curve?

I would like to plot some PR curves for a few different applications: results on a test set for a (multilabel multiclass) classifier results on a test set for a CBIR function that returns ranked ...
4
votes
1answer
264 views

Detecting a pattern in a time series with a Neural Network

I new to working with Neural Networks and I want to detect a pattern in a time series and return some measure of the certainty/uncertainty when a pattern has been detected: ...
9
votes
3answers
745 views

Example of NetChain running in MXNet cause Error

Cross post here Problem remains in Mathematica 11.2 First defining the net ...
8
votes
1answer
215 views

Dilation on 3D Images?

I need to apply a dilated convolution to a 3D image, but dilation values greater than 1 are not currently supported in v11.3: ...
4
votes
1answer
98 views

ClassificationMeasurements without the Classifier

I only have classifications (a list of inputs and outputs), but not a ClassifierFunction, how can I still use ...
4
votes
0answers
144 views

YOLOv3 Netmodel?

I see that YOLOv2 is on the Wolfram net repo, but has anyone ported the new YOLO version 3 architecture into Mathematica?
3
votes
0answers
108 views

Can someone help me to understand sequence-to-sequence transformation using (Wolfram-specific) recurrent neural nets?

I've been learning about recurrent neural networks lately and I think I'm starting to get the basic idea of how they work. I'm particularly interested in the sequence transformation capabilities of ...
0
votes
0answers
48 views

Memory management using blocking but in vain

I have trained a classifier named c and want to apply it to testing set. However, due to the huge size of testing set, I have to make prediction in blocks/groups to ...
10
votes
0answers
444 views

How to plug holes in an Image (with partial convolutions)?

NVIDIA recently published a new way to reconstruct images with holes. They use a new type of convolutional layer which is described in the paper Image Inpainting for Irregular Holes Using Partial ...
3
votes
2answers
147 views

Derivative of rectified linear unit in Mathematica?

I am following the artificial neural networks literature and apparently the latest trend is to use the rectified linear units (ReLU) as the activation functions for each neuron. I tried to take the ...
3
votes
1answer
165 views

Tutorial on net surgery?

I'm trying to replace the "fc1000" layer in a NetModel, what am I missing here: ...
3
votes
1answer
130 views

How exactly does NetTrain use a ValidationSet (can we reuse it as TestSet)?

Typically when you train a model you have three sets of data: training, validation, and testing - and they can’t be mixed, i.e. you can’t use images from one in the other. I want to know if the ...
9
votes
1answer
213 views

NetEncoder for images of “Varying” dimension?

I'm looking for someway to do what this syntax "should" do: NetEncoder[{"Image", Automatic, ColorSpace -> "RGB"}] /@ imgs; The documentation states that ...
8
votes
1answer
157 views

How to use a remote windows laptop for NetTrain?

I have a windows 10 laptop (with a gpu) at home and a macbook at my office, both with v11.3. What are steps to use the windows machine remotely for training? That is, I want to launch and run ...
1
vote
1answer
99 views

Specify NetEncode's tokenization model?

NetEncoder[{"Tokens"}] uses WordData indices to tokenize an input string. But is there a way to tell ...
18
votes
4answers
917 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),...
6
votes
1answer
346 views

FindFaces in Mathematica 11.3

I just upgraded to Mathematica 11.3. but now my FindFaces instructions do not work anymore. I guess they changed the syntax in 11.3. Here is the original code: <...