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

Identifying and tracking cluster elements in ClusterClassify for multiple time-steps of data

I have multiple time-steps of {x,y,z}coordinates data for some atoms. I would like to cluster the data for each frame and later identify how cluster compositions change and how each atom changes from ...
user avatar
  • 515
0 votes
1 answer
38 views

Predict Function & Generating a Training Set

I am trying to use the Predict[] function to do a regression analysis. I have the data imported from a CSV and based on my past Python experience the libraries I used always have a slick way to take ...
user avatar
  • 45
3 votes
1 answer
31 views

Retain Values in new column when Appending a column to an existing dataset

I am working on a basketball data set. I am trying to append a "Class" column which looks at the "Pos" column and assigns a 1 if a forward (C, PF, SF) or a 2 if a guard (PG, SG). I ...
user avatar
5 votes
1 answer
88 views

Introductory material on machine learning?

Does Mathematica have a handbook or other introductory material on machine learning? Or are there any books on analyzing machine learning with Mathematica?
user avatar
2 votes
0 answers
23 views

Create "PredictorFunction" with NeuralNetwork

I tried to construct a predictor for a continuous variable using neural networks, something like f(a,b,c,d,e) = x, trying to predict x for a given set of a,b,c,d, and e. The builtin ...
user avatar
  • 21
2 votes
0 answers
73 views

FeatureExtraction[] for Text -- to normalize text or not?

The title pretty much captures my question. When I use FeatureExtraction[] for text, should I normalize text before parsing it through ...
user avatar
  • 5,172
1 vote
0 answers
35 views

Is it possible to add new concept to ImageContents

I was hoping to use ImageContents to locate some specific objects in a series of images with a bounding box. However, ...
user avatar
  • 3,842
3 votes
0 answers
64 views

Problem with Mathematica Relationship Building

When I enter the following to get Mathematica to open my pod door I get Could someone try and replicate this? Also, my name is not Dave and I throw my own error... ...
user avatar
  • 6,898
2 votes
1 answer
63 views

How does mathematica generate FinalPlots

It is well known that after using NetTrain[net,dataset,All], a NetTrainResultObject is returned. This is an association, with a ...
user avatar
  • 1,941
1 vote
1 answer
36 views

BasicRecurrentLayer with no bias and linear activation function?

Trying to design a small neural network for modeling a LTI system, I'd like to configure a BasicRecurrentLayer with these particular settings: No bias vector should be used (I've tried the option &...
user avatar
  • 123
0 votes
0 answers
18 views

How to apply NetDecoder on each element in output?

I try to apply the NetDecoder on each output element but get an error. ...
user avatar
4 votes
0 answers
184 views

How do I generate SMILES using machine learning in Mathematica

I am wondering if anyone has experience with generating molecules using machine learning in Mathematica. There are a bunch of papers these days with such applications/developments. For example, https:/...
user avatar
  • 515
2 votes
1 answer
45 views

How many nearest neighbours in a classifier by default?

I've been running a classifier on my data with the 'NearestNeighbors' method. I've learned that I can specify the number of neighbours used with the following command: ...
user avatar
  • 155
5 votes
1 answer
114 views

Unexpected high memory consumption using out-of-core NetTrain

I'm working on training a neural network on an image dataset. There are 14k images and each image contains 3x150x150 pixels. I have built a generator function following the approach in Training on ...
user avatar
2 votes
4 answers
90 views

How to predict future samples from discrete samples of a low frequency signal?

Suppose I have discrete samples of a low frequency signal as in: For example: ...
user avatar
  • 6,630
4 votes
1 answer
130 views

How to add doodles and sketches in a mandala

i discovered mathematica yesterday; and i've been playing with RandomMandala since. i also saw this question; and i really liked the second answer; but i like the ...
user avatar
5 votes
0 answers
187 views

Any competitive speech-to-text models?

SpeechRecognize is not very useful compared to most voice transcription engines nowadays, simply too fragile and prone to errors. I use Otter.ai currently, is there anything competitive to that (or ...
user avatar
  • 3,720
12 votes
1 answer
476 views

M1 Apple silicon ML performance

Testing out a new M1 Macbook pro with Mathematica 13.0.0. I verified that I used the correct version and it is running natively on ARM. Mathematica in general runs great, and much fast than on my ...
user avatar
  • 121
4 votes
1 answer
147 views

Constructing neural networks from Keras example

I am trying to convert neural networks from a book to Wolfram language. The book has this example with the quote two layers of 10 neurons and a dropout of 0.2 for each ...
user avatar
  • 515
0 votes
0 answers
21 views

Reuse same layer of Neural Network

I hope to wrap up ConvolutionLayer in a way so that it takes two inputs, does the same operation on those, and outputs their result respectively. For example, ...
user avatar
  • 1,941
1 vote
0 answers
45 views

How to export the expandable graphs

So in Mathematica, neural network objects appear like this: This is rather boring, but if you click on the plus sign, it expands into a better graph: Which is ...
user avatar
  • 1,941
1 vote
0 answers
77 views

Download Mathematica resource from another source [closed]

I want to do machine learning on Mathematica, however when I use obj = ResourceObject["CIFAR-10"]; to load the dataset, it shows errors after the ...
user avatar
  • 1,941
16 votes
2 answers
285 views

How to export a ContentDetectorFunction for use in Python?

For text and images v13 introduces the ability to train detectors easy which result in ContentDetectorFunction's. To use these IRL we need to export to python's ...
user avatar
  • 30.3k
2 votes
1 answer
70 views

CrossValidate for image classification with NetTrain

I am trying to set up transfer learning using instructions from this repository page on EfficientNet. I am able to perform a stand-alone training and testing using the instructions on that page. The ...
user avatar
  • 515
0 votes
0 answers
31 views

Ranges of ANN predict values too narrow

I plan to train a neural network on a large dataset. Each example contain 16 parameters (inputs) and 1 output. A snapshot of the dataset looks like: net = ParallelTable[Parasets[[i]] -> {degraeffr[...
user avatar
4 votes
0 answers
80 views

Exporting a DimensionReducerFunction

I need to run my DimensionReducerFunction in a standalone fashion outside of MMA. That is, without calling into a kernel or through an APIFunction. For example, ...
user avatar
  • 30.3k
1 vote
0 answers
22 views

How is posterior distribution computed for various values of `Method` in the `Predict` function?

Assume I have some dataset to train a machine learning model on using Predict along with a test point x. ...
user avatar
  • 233
0 votes
0 answers
34 views

How to change labels of confusion matrix in ClassifierMeasurements?

I have trained a classifier with classes A,B,C, and D, and when I use ClassifierMeasurements to plot the confusion matrix, the order of the labels is A,B,C,D. How can I change the order of the labels ...
user avatar
0 votes
0 answers
44 views

Spliting training dataset in ANN training using NetTrain

I am training a neural network on large training dataset containing 25,525,200 examples. each example contain 15 parameters (inputs) and 1 output, such as Inputs 0.015,83.6,0.663,0.104,0.097,0.167,0....
user avatar
3 votes
1 answer
76 views

Automated mapping between input and output columns of FeatureExtractorFunctions

This problem is about FeatureExtraction. It arose in the course of training a neural network where the data contains a mixture of nominal and numeric variables. Basically, my code looks like the ...
user avatar
1 vote
0 answers
90 views

Increase the speed of Machine learning based on 'Predict'

I am training a ANN model with a large dataset (~million level) using Predict or NetTrain function. I do not have a GPU machine but have a server equipped with 16 CPU cores. How can I maximize the ...
user avatar
1 vote
0 answers
78 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 ...
user avatar
1 vote
1 answer
66 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 ...
user avatar
0 votes
1 answer
73 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 ...
user avatar
  • 912
13 votes
1 answer
400 views

Wolfram Neural Net Repository Questions

I am a research scientist 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 ...
user avatar
0 votes
0 answers
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 ...
user avatar
  • 285
0 votes
1 answer
43 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. ...
user avatar
  • 285
1 vote
1 answer
139 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 ...
user avatar
  • 285
4 votes
0 answers
71 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 ...
user avatar
  • 30.3k
8 votes
1 answer
311 views

Can LearnDistribution learn conditionality?

I would like to apply LearnDistribution to multivariate conditional distributions. Here's a simple artificial example: ...
user avatar
  • 30.3k
2 votes
0 answers
123 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 ...
user avatar
  • 493
0 votes
0 answers
39 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 ...
user avatar
  • 171
0 votes
1 answer
114 views

Classify across ten methods

Mathematica supports ten different methods for Classify. The ten methods are: "ClassDistributions", "DecisionTree", "GradientBoostedTrees", "LogisticRegression&...
user avatar
  • 2,036
4 votes
0 answers
139 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 ...
user avatar
0 votes
0 answers
67 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 ...
user avatar
2 votes
0 answers
52 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 ...
user avatar
  • 497
2 votes
0 answers
29 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: ...
user avatar
2 votes
0 answers
108 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 ...
user avatar
  • 131
0 votes
0 answers
42 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:...
user avatar
  • 605
2 votes
1 answer
100 views

Deploying A Classifier Function

Let's say we train a classifier on the titanic dataset cl = Classify[ ResourceData["Sample Data: Titanic Survival"] -> "SurvivalStatus"] ...
user avatar
  • 747

1
2 3 4 5
13