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
1
vote
0answers
59 views

How to solve ODEs using deep learning in Mathematica [closed]

I have a number of ODEs (58) with 16 parameters and 9 variables. I want to solve the ODEs to obtain the analytical relationship between the parameters and variables. It is obviously that the ODEs ...
-1
votes
0answers
38 views

prove that 2 collection have the same VC-dimensions [closed]

I'm new here on the site, I'm a final year student in computer science. In a machine learning course, there was a question on a test that I could not understand. The question goes like this: Suppose ...
1
vote
1answer
52 views

Issue with Transfer Learning using VGG16 NetModel

I am trying to use the VGG16 architecture available in the Wolfram Neural Network Repository to classify the Fashion MNIST dataset. The VGG 16 by default accepts images of size 3x224x224. However the ...
0
votes
1answer
67 views

Extract ROIs - Machine learning - References

I want to try to extract ROIs from certain images using machine learning and neural networks , granted I know nothing about this field and it may not be the best way to do this, but the goal is to ...
11
votes
1answer
311 views

Wolfram Neural Net Repository Questions

I am a developer in the machine learning team, and mostly involved with the neural net repository. One of the discussions with my group raised these question in my mind, and these might be stupid ...
0
votes
0answers
60 views

Mathematica accuracy errors when creating data

I created training data for a neural network and below are two errors I got The only code that uses "FindRoot" command is the following ...
0
votes
1answer
36 views

Error Using NetMeasurements (assessing neural network performance)

I am trying to assess how well a neural network regression model performs on test data. To do this I have used NetMeasurements command. ...
1
vote
1answer
73 views

Building multilayer perceptron Neural Network

I’m new to machine learning and am a bit confused about how to create a neural network (multilayer perceptron) with a specific design. I would like to create a neural network with 40 features/neurones ...
4
votes
0answers
53 views

Modern topic modeling?

This question was asked in 2014: How to perform document classification (i.e. extracting topics from text)? At the time user @V.E. gave a great little tutorial on LDA, but today, there's still no ...
8
votes
1answer
296 views

Can LearnDistribution learn conditionality?

I would like to apply LearnDistribution to multivariate conditional distributions. Here's a simple artificial example: ...
2
votes
0answers
70 views

How to perform feature selection for machine learning applications?

Feature selection is fairly easy in e.g. Python's scikit-learn which sports a module and tutorials or MATLAB. Mathematica even touts that it uses feature selection ...
0
votes
0answers
30 views

Convolution layer input size error

I have network which I want to take in a $6 \times 2761$ 'image' and output into one of three classifications. I have 240 of these images that I would like to train with. My training list therefore ...
0
votes
1answer
105 views

Classify across ten methods

Mathematica supports ten different methods for Classify. The ten methods are: "ClassDistributions", "DecisionTree", "GradientBoostedTrees", "LogisticRegression&...
3
votes
0answers
86 views

How can I free GPU memory allocated with NetTrain

When I train a neural network with NetTrain[..., TargetDevice->"GPU"], wolfram's neural network code automatically allocates memory on my GPU for my ...
0
votes
0answers
57 views

Generating a sequence from a number using RNN

Can someone please provide me with a neat example about generating a sequence from a number using RNN? (Possibly without using NetGraph[].) Edit: I'm trying to ...
1
vote
0answers
40 views

Preprocessing data\[Ellipsis]. or Preprocessing data..... error in ParallelTable in Mathematica

I am working on Machine Learning. My purpose in the code is to repeat calculation a few times and average the results. While using Table command, following message pops up for ClassifiersMeasurements ...
2
votes
0answers
25 views

Does NetChain have a "Distribution" property like PredictorFunction?

PredictorFunction has an incredibly useful "Distribution" property. In the past, this has helped me filter out bad predictions, like this: ...
2
votes
0answers
88 views

Simulated Cartpole Example in Mathematica

I am interested in modifying the code underlying the reinforcement learning example SimulatedCartpole in Mathematica 12. This example is still listed as Experimental. The help function indicates that ...
0
votes
0answers
38 views

Bug in FunctionLayer for matrix products

I am trying to figure out if this is a bug or if I do not understand something about FunctionLayer. For reference this is: Mathematica v12.3.0.0 Define the matrices:...
2
votes
1answer
81 views

Deploying A Classifier Function

Let's say we train a classifier on the titanic dataset cl = Classify[ ResourceData["Sample Data: Titanic Survival"] -> "SurvivalStatus"] ...
1
vote
0answers
37 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
61 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
41 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
63 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
79 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
72 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
83 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
166 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
70 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
36 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
71 views
0
votes
1answer
52 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
91 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
58 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
45 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
45 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
34 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
33 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
117 views

Extracting information from Classify

I have used Mathematica's automated Classify function: ...
5
votes
1answer
166 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
28 views

Assessing your own classifier function with ClassifierMeasurements or NetMeasurements

The functions ClassifierMeasurements and NetMeasurements expect objects that are created through ...
0
votes
1answer
108 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
107 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
358 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
95 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
34 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
73 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
78 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
1answer
73 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 ...

1
2 3 4 5
12