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
2
votes
0answers
72 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 ...
6
votes
1answer
4k views

How to train Sequence-to-sequence autoencoder using LSTM?

According Keras blog,I find the Seq2Seq auto-encoder. But it didn't give any example only code. To build a LSTM-based autoencoder, first use a LSTM encoder to turn your input sequences into a ...
3
votes
1answer
255 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 ...
3
votes
0answers
215 views
4
votes
1answer
260 views

Weighted Data within Classify and Predict (or NetTrain)

I posed this on Wolfram Community about a week ago and no one there seems to have a good solution, so I will try it here. (It may well be that this is an issue for Mathematica developers and that ...
2
votes
1answer
61 views

proper use of PredictorMeasurements[]

I've been playing around with Predict[] with multi-dimensional datasets and, for small training sets anyway, things seem to work correctly. For example, ...
3
votes
3answers
188 views

One Hot Encode columns with categorical data

I have a couple of survey datasets that I am loading into Mathematica to do behavioral clustering. I have columns of responses (Strings) where the users was given a fixed set of responses. The ...
1
vote
1answer
326 views

Mathematica Machine Learning (Method “NeuralNetwork”)

I am trying to use Predict and Classify functions. I am interested what NetworkDepth really ...
4
votes
1answer
346 views

Constructing graph of points in 3D with edges weighted by distance

I have a set of data in $\mathbf{R}^3$ for which I want to construct a $k$-nearest-neighbors graph whose edges are weighted by the distance of each point to its neighbors. Is there a way to do this ...
7
votes
2answers
137 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 ...
1
vote
0answers
144 views

How to train a network using out of core training when data have different length?

I posted How to use Mathematica to train a network Using out of core classification? some month ago. The network receive some fixed-length input and produce another fixed-length output,this is How to ...
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: ...
3
votes
1answer
239 views

Colorizing greyscale images?

I'm looking for a trained colorization model (wlnet file) that is available to download and immediate use in 11.2. Checking the 21 currently existing NetModels: ...
4
votes
0answers
128 views

How to train further in Predict?

Training further means we can get much smaller loss in the training set,and maybe get the smaller loss in the validation set,so this is useful. For example ...
25
votes
2answers
541 views

Frown for a sex change, or, how do I unbork the “FacialGender” classifier in 11.2?

The limits of machine learning. I thought the new "FacialGender" option for Classifier would be an amusing thing to explore. ...
3
votes
0answers
502 views

Why “Inception V3 Trained on ImageNet Competition Data” have 1001 outputs?

There are 6 pre-trained models on ImageNet in NetModel. ...
11
votes
1answer
600 views

How to use an external GPU to train neural networks in Mathematica?

Taking steps in the uncharted territories of eGPUs, I have installed an NVIDIA GeForce Titan Xp GPU on an eGPU enclosure (Mantiz MZ-02) and have connected it to my laptop (HP Spectre x360 - 15-bl075nr ...
4
votes
1answer
96 views

ClassificationMeasurements without the Classifier

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

How to ImageRestyle high-res images?

I’m running v12 now and ImageRestyle[] crashes for me on an image of size 1600 x 1200 pixels. All the examples in the documentation use images around 500 x 500 or ...
0
votes
2answers
124 views

How to train a net for recognize the number

Documentation have some examples about MNIST.But those image have same image.I make some trained data ...
2
votes
0answers
668 views

Stochastic Gradient Descent with constraints

Let's say we have a convex objective function $f(\textbf{x})$, with $\textbf{x}\in R^n$ which we want to minimise under a set of constraints. The problem is that calculating $f$ exactly is not ...
9
votes
0answers
192 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 ...
9
votes
3answers
721 views

Example of NetChain running in MXNet cause Error

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

Save trained NetChain between Mathematica sessions?

Let's say I have written a NetChain machine learning setup, trained the chain with NetTrain and obtained a model ready to ...
0
votes
1answer
101 views

generator didn't return a correct type in NetGraph with Multi-port

In this example,generator[<|"BatchSize" -> 4|>] get an association of lists, but NetTrain[net, generator] can't be used....
5
votes
1answer
917 views

How to make a switch in Neural Networks?

In this paper,they design a network like this. The left(green) is a normal network that mapping one feature to another feature,the right(red) side is an autoencoder(using RNN).But a switch is ...
3
votes
1answer
159 views

Is it possible to speed up Classify with PerformanceGoal->“Quality”

I want to reproduce a Kaggle's python version's result of MNIST. PCA+SVM with accuracy=0.98 on test set. By default in Classify, with SVM method, I get a result accuracy 0.9675 and now I get 0.975 ...
8
votes
1answer
305 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 ...
0
votes
0answers
70 views

How can I improve effect of Clustering of MNIST?

Limit us with Clustering technology, like FindClusters, ClusteringComponents,ClusterClassify,...
19
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 ...
2
votes
0answers
272 views

Predict a lagging continuous observable based on leading continuous parameters?

Consider a time dependent observable obs[t] and a set of n time dependent parameters par[i,t]...
9
votes
1answer
444 views

What does the value of Predict's “L2Regularization” correspond to?

What does the value supplied to the Predict Method option "L2Regularization" correspond to? ...
4
votes
1answer
168 views

Why LogisticRegression in Classify gives worse accuracy than result without PerformanceGoal Setting

Tested@Mathematica 11.1 on Windows ModelA ...
4
votes
0answers
98 views

Transfer Learning: How to take certain layers from a pre-trained neural net, add it to a new net, and keep its variables fixed? [duplicate]

How can one copy specified layers from a pre-trained neural network and add them to another trained neural net? For instance, ...
4
votes
0answers
156 views

NetTrain with External GPU?

I'd like to use the new Neural Networks functionalities in v11 on my Macbook Pro, unfortunately, most macs do not have the supported Nvidia cards. However, there is the option for using an external E-...
3
votes
1answer
80 views

Is there a good explanation of the output of FeatureExtract anywhere?

I have been looking at the official documentation of FeatureExtract, and I'm having a bit of difficulty interpreting the output--or understanding the reasons for ...
5
votes
1answer
645 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 ...
4
votes
1answer
110 views

Accuracy during training?

Is there any way to see a plot of the accuracy over the Validation set for each round instead of the loss graph, during a NetTrain session? There probably is and I'm just missing it...
8
votes
1answer
399 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 ...
8
votes
1answer
492 views

Batching in inference and support for multiple GPUs

I know that Mathematica supports GPU inference, and can be told which GPU to run models on by specifying TargetDevice->{"GPU",2} or such. My questions are as follows: 1) By using the above statement ...
2
votes
1answer
76 views

ImageIdentify category specification

There is an instance in the reference for ImageIdentify were a category is specified. Here it is: ...
4
votes
1answer
490 views

Joint Training and multiple losses in NetTrain

Jointly training a neural network to solve multiple tasks simultaneously sometimes results in elevated accuracy, and I'm looking for any known examples of this in Mathematica. Here's the specific ...
1
vote
1answer
151 views

Need advice for approach for multivariate regression/prediction using Deep Networks

I am trying to build predictive models for 2 outputs given approximately 10 input variables. I understand that I would first look at the simplest model, such as a multivariate linear regression, ...
4
votes
2answers
248 views

Regarding input to NetTrain function

Essentially I have used the SemanticImport[] function on a csv file with headers for each column. Now I understand that each of these headers is referred to 'key' in mathematica. * I have no problem ...
2
votes
1answer
257 views

Problem initializing training set on recurrent net

I would like to train a time-series data using GatedRecurrentLayer. The data consists of k scalar features mapping to a scalar number at every time step: i.e. ...
10
votes
3answers
727 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: ...
1
vote
0answers
117 views

Reducing the size of the training data

My problem is that running Classify on my training data takes too long. First I get 50,000 images such as car, cat, dog, hat, train, etc. ...
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 ...
0
votes
0answers
198 views

Rectangular object boundary detection

I would like to find the boundaries of an object: I have looked that the YOLO algorithm but it looks like the results cut off parts of the object a lot. What kind of algorithm can I use to achieve ...
3
votes
1answer
140 views

How to use history as one of the input in neural networks?

Suppose I have a net ...