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
1answer
63 views

Deploying A Classifier Function

Let's say we train a classifier on the titanic dataset cl = Classify[ ResourceData["Sample Data: Titanic Survival"] -> "SurvivalStatus"] ...
0
votes
0answers
43 views

Machine Learning Applications [closed]

I'm new to Machine Learning and I wanted to know if we can perform the real life applications or tasks related to Machine Learning in mathematica. I'm not looking for the inbuilt functions like ...
1
vote
0answers
29 views

Is Parallelization of NetTrain possible?

I was planning to build a Neural Network model and create a list of the same model with the elements of the list being different Initializations of the same model. Is it possible to Train the entire ...
1
vote
1answer
53 views

What is the default loss function used by the GradientBoostedTrees classifier?

I've used Classify[...] for a two class image classification problem which has yielded pretty good results. I let Mathematica select an algorithm for me and it picked a GBT model, everything looked ...
1
vote
0answers
31 views

Should this Dataset be Transposed for best Neural-Net Performance?

I've been working with this Kaggle dataset and intend to use it to make some time-series predictions from it. I've preprocessed it to the point where now I need to start making some decisions about ...
1
vote
0answers
41 views

How to access the output of a sub-chain or subgraph in a neural network?

I have a simple chain in Mathematica myChain = NetChain[{ LinearLayer[100], myLittleChain[], LinearLayer[25], SoftmaxLayer[] }] with a sub-chain ...
1
vote
1answer
62 views

Separating objects into a constrained number of groups where data is known about all object pairs

In Frequency Planning, we may know the interference between one cell and another cell. You may be a able to operate a specific number of frequencies. How would one separate them into the best groups. ...
0
votes
0answers
68 views

I'm not sure how to use Predict[]

In my university I got an assignment: I need to predict the stock price using two of machine learning methods with imported data. (I've chosen Linear regression and Decision tree). I tried to make a ...
2
votes
0answers
64 views

How to specify custom Loss function for Predict

How can I use Predict[Xs->Ys, Method->"NeuralNetwork"] to predict 90%-quantile (instead of mean value)? Utility Function does not work well for this case, because it assumes ...
1
vote
2answers
75 views

How to assemble layers to perform different linear transformations on each column of matrix?

I have a matrix $A_{m×n}$ and I want to assemble a network that performs $n$ different trainable linear transformations $T_{p×m}(i), i\in {1,2,...n}$ on its corresponding columns, (i.e. $B^i = T(i)A^i)...
7
votes
1answer
162 views

Running Mathematica in 'SpouseMode'

In this previous question I looked into a deprecated capability of Mathematica from Version 2. Mathematica command that allows it to read my intentions Thanks to all for your answers. I note that ...
1
vote
1answer
60 views

Extract details from PredictorFunction object

For training data, the command Predict generates an object PredictorFunction, which can evaluate a prediction from variables. ...
1
vote
0answers
33 views

What is the preprocessor NumericalSequenceExtractFeatures?

When I use Classify on a dataset with inputs that are matrices with different row sizes (i.e., sequences), and I check the internals of the ClassifierFunction by running ...
0
votes
2answers
67 views
0
votes
1answer
43 views

How can I rescale data by a learnable constant in a neural network?

I'm working on a class of machine learning problems which fit functions from scalars to vectors. Let's suppose the output of this function is just a set of two-component vectors. I have found that my ...
0
votes
1answer
87 views

Is there any way to compile and export LearnedDistribution?

I use the LearnDistribution function to learn the distribution of some data. Then, I want to export some code to sample from that learned distribution. I tried to use Compile as follows ...
1
vote
1answer
57 views

ClassifierMeasurements returns strange errors

I am following the example listed on this page ResNet 50 to train a custom classifier and inspect the outcome with ClassifierMeasurements. My training set has 443 images from more than 30 classes. The ...
3
votes
0answers
41 views

Training a neural network with post-processed data [closed]

I want to fit a large number of functions over a vector space with a neural network. I have a particular architecture in mind, which is naturally broken into two parts: the first part consists of ...
0
votes
0answers
40 views

Can Predict/Classify/NetTrain be parallelized over multiple computers (kernels)?

A similar question was posted more than five years ago here and I was wondering if anything has changed and whether there is a way to parallelize Classify/Predict/NetTrain now. More specifically, ...
3
votes
0answers
31 views

extract dynamic values from video frames [duplicate]

I have a video recording the time and temperature during the experiment. I would like to ask whether it is possible for MMA to extract the above two values (highlighted in red boxes) from the frames ...
0
votes
0answers
30 views

How to give Classify a list of files on disk instead of importing them all at once?

I am trying to use Classify to train an image classifier on a dataset of 30k+ images. I followed this tutorial and created a list of the form {File[…]->class,…}. I can use NetTrain with this list, ...
6
votes
0answers
108 views

Extracting information from Classify

I have used Mathematica's automated Classify function: ...
5
votes
1answer
141 views

Loss function with regularization

The ML framework has a limited set of loss functions available. How can I extend this by creating my own custom ones? For example, for L2-regularized training, Mathematica recommends ...
3
votes
0answers
26 views

Assessing your own classifier function with ClassifierMeasurements or NetMeasurements

The functions ClassifierMeasurements and NetMeasurements expect objects that are created through ...
0
votes
1answer
104 views

Interactive Machine Learning App to make Predictions using Descriptors

I have developed a Machine Learning algorithm that uses 4 chemical descriptors to calculate a chosen chemical property. I would like to create an interactive app on Mathematica (using the manipulate ...
3
votes
0answers
91 views

Classify/NetTrain run indefinitely without output when using GPU

I am experimenting with Mathematica's Classify/NetTrain functions for the first time. When I don't set a TargetDevice option, Mathematica defaults to the CPU and everything works as expected. When I ...
4
votes
1answer
253 views

Complex numbers in neural networks

I am trying to construct a neural network which fits a collection of functions from (complex-valued) vectors to complex numbers. After constructing a suitable network, I was surprised to see that ...
2
votes
1answer
90 views

How to build an RNN with input as character but output a sequence of tokens?

Let’s assume I have “abbcab”-> {“Apple”,”Banana”}, “Bibb”-> {“Carrot”} so the output is a sequence of various length, but I can pad it to be the same length. My problem, how do I create a ...
2
votes
1answer
31 views

What's the difference between train and test evaluation modes of a BatchNormalizationLayer?

After creating a BatchNormalizationLayer: batchnorm = NetInitialize@BatchNormalizationLayer["Input" -> 3] We can evaluate it in "Test" or &...
1
vote
1answer
67 views

How is the loss computed from the batch and round?

This is cross-posted from the forum. I am trying to just reproduce the loss computed during training a very simple network. In this case the loss is just the standard L2 loss function. Start with some ...
2
votes
1answer
66 views

Copying Weights using NetTrain in Mathematica

I would like to implement the PPO algorithm - Reinforcement Learning - in Mathematica. And for that, I need to be able to copy network weights from say subnetwork NN1 to subnetwork NN2 as an update ...
3
votes
0answers
35 views

Can NetNestOperator take a non pre-defined number of iterations?

I'd like to Nest a particular NetChain inside a larger NetGraph for a random number of ...
12
votes
0answers
238 views

Trying to build a code to translate handwritten formulas using ML

I'm lazy writing equations in Latex so I want a code to translate handwritten equations. This question is related to an old experiment I'm reviewing during vacations, here. I'm trying to use ...
2
votes
0answers
27 views

Classify command option question

I'm using Classify to predict who is going to win a battle based on their strength. The input is something like {{"Name 1", Strength1},{"Name 2", Strength2},{"Name 3", ...
2
votes
0answers
58 views

Questions on NetMapOperator, NetNestOperator, NetFoldOperator [closed]

I've been playing around with the Higher-Order Network Construction functionality such as NetMapOperator, NetNestOperator, and <...
11
votes
0answers
189 views

Tutorial example NetTrain fails miserably with a GPU

I have been experimenting with GPU NetTrain on AWS now when Mma 12.2 supports remote batch jobs (I don't have an Nvidia GPU to try these things out otherwise). In ...
0
votes
1answer
75 views

Constructing Net problem

so I'm trying build a simple net that will help me find the winner in a competition. I would like to use as input "Name", "FA" and "Force", and obtain "Winner" ...
2
votes
2answers
163 views

how to implement training for UNET implementation on Wolfram Neural Net Repository?

My question is with reference to the U-NET implementation present on the Wolfram Neural Net Repository The construction notebook present on the page (link: http://...
15
votes
1answer
265 views

Minibatch Standard Deviation Layer

I'm reworking some of the GANs I originally made in TensorFlow2 to see if I can improve performance in Mathematica, and have been stuck on how to create a custom Minibatch Standard Deviation Layer. I'...
3
votes
0answers
72 views

Classify and Predict results that I don't understand

I have a list of rules that has as the left hand side the font size and a letter and for the right hand side the space in pixels between this letter and the following letter. The data is from a ...
1
vote
3answers
113 views

plotting plot $(- \infty, x]$ for any arbitrary $x$? [closed]

is it possible to plot $(- \infty, x]$ for any arbitrary $x$ on wolfram online? is it possible provide commands? I am trying to understand the concept of Vapnik-Chervonenkis dimension.
4
votes
0answers
75 views

How to train each layer in a Neural Network so they optimize different loss functions in an adversarial network?

Example NetGraph to illustrate the idea (Input is an online signal with a value between -1 and 1, Noise is Gaussian Centered at 0 and standard deviation 0.1, EvilNet is constrained to output a value ...
2
votes
1answer
75 views

Want neural net example of rules {vector->string}

I am using data samples from a multispectral color sensor for color classification as an exercise in beginning to learn about neural networks. I have succeeded with ...
2
votes
1answer
116 views

Help with creating the NetChain

I'm trying to train a network to take 3 integers and give an output = Max/Min. For example {10, 20, 30} -> 3. But I cannot get the setup correctly. I must be missing something. ...
1
vote
0answers
111 views

Machine Learning / Deep learning using Mathematica? [closed]

I am looking forward to the recommendation to learn ML/DL in Mathematica I know that there are plenty of resources web sites and books, MOOC to learn Machine Learning and Deep Learning mostly in ...
0
votes
1answer
80 views

multivariate Gaussian distribution with identity covariance

I want to draw Geometry (or contours) for multivariate Gaussian distribution with identity covariance matrix (or draw decision boundary). How this is possible via Wolfram's online at Here? Please ...
4
votes
1answer
114 views

How to use classify to separate lines and circles

I generated lines and circles: ...
3
votes
2answers
183 views

How to find explicit hyperplane in SupportVectorMachine

I am using the SupportVectorMachine classfier: e.g., (* let me use Linear kernel for simplicity *) ...
2
votes
1answer
46 views

Get layer types from Predict[trainingset, Method -> {“NeuralNetwork”}]

I am using the Predict-Function with the NeuralNetwork-method on some training data. But I cannot figure out the characteristics of the NN that is built, especially not the layer types. How can I get ...
0
votes
1answer
58 views

Binary Classify a Large Data Set using Deep Learning

I tried training this model: All even integers map to T and all odd ones map to F. I used 100 million training examples with Support Vector Machine as the method yet I got garbage for the test cases. ...

1
2 3 4 5
12