All Questions
682 questions
1
vote
0
answers
43
views
Why Spectral Method and GaussianMixture in FindClusters and ClusteringComponents can't set the number of Clusters?
There is an official example, that we can set clusters number.
However, when I set the number to run the example, funny thing happens.
The same problem in ...
1
vote
0
answers
33
views
Differentiating matrix function in `Table` from
I am trying to get an analytical expression for derivaives of an algorithm explained here.
I usually use automatic diff. a lot, but since this part of function will not change, I thought to implement ...
0
votes
0
answers
29
views
Error running Classify repeatedly within Manipulate
To create a CDF document, I have to run Classify in Manipulate. However, if the code is executed as follows, Classify continues to run repeatedly. Can it be executed and stopped only once?
...
12
votes
4
answers
2k
views
Text recognition - extracting table of text from image
I want to extract table from the image bellow as a list of strings. I tried the following but it does not work.
...
5
votes
1
answer
196
views
Sort symbols or characters by image complexity
As an example, I would like to sort the following characters by some sort of complexity measure:
...
3
votes
0
answers
184
views
Can Mathematica's Minimize() function be called inside Python code using Python data?
Summary:
I would like to use the Wolfram Client Library for Python to invoke Mathematica's Minimize function directly from within Python, passing to it Python data structures.
Details:
I have a Python ...
3
votes
0
answers
146
views
Implementation of Restricted Boltzmann Machines?
A Restricted Boltzmann Machine is a classical and basic neural net method in Pattern Recognition and Machine Learning.
We can easily find implementation in Matlab or Python, but are there any ...
17
votes
1
answer
616
views
Stable diffusion models in WL?
Are there any diffusion-based (text + image) -> image generation models available in Mathematica, Wolfram Repositories, or from third parties?
In particular, I'm ...
6
votes
1
answer
157
views
Graph Convolution Network, molecule activity
I am trying to translate an example code for graph convolution network from Deep Learning for Physical Scientists: Accelerating Research with Machine Learning.
Edward O. Pyzer-Knapp et. al. They have ...
4
votes
0
answers
127
views
General hyperparameter searching?
I typically use naive random or grid search to choose them, but I'd like to ask if there are built-in or paclet-based methods that can help perform more principled general hyperparameter searches?
For ...
16
votes
0
answers
698
views
How to reconstruct 3d meshes from 2d images of a scene?
The new ImageStitch was nice functionality added in v13, but is there anything available for constructing meshes (with color textures) from a bag of 2D images (...
5
votes
2
answers
101
views
Which model behind SequencePredictorFunction?
Is the SequencePredictorFunction based on Hidden Markov Model?
If so, how does the model estimate the number of hidden states?
2
votes
0
answers
61
views
Unable to Replicate an ANN Using the Output from Predict Function
I’m working on constructing an ANN. I first used the Predict function with the method “Neural Network” to determine the structure according to my data.
This is the given output of the structure:
...
2
votes
0
answers
47
views
FeatureExtraction for TimeSeries giving errors
I'm trying to replicate this example using FeatureExtraction for TimeSeries. However, it's giving errors.
Here's the code I've run:
...
10
votes
1
answer
380
views
Labeling images for TrainImageContentDetector
I want to use TrainImageContentDetector on a directory of ~2k unlabeled images. I'm willing to put in the effort to label them, but I was never good at using "...
9
votes
2
answers
803
views
A strategy to create good initial guess for Lorentzian model fit
I was preparing an answer for a question that got deleted, so I will post this anyhow.
Given a set of data with a hump
...
1
vote
0
answers
62
views
How to measure a LearnedDistribution?
I would like to measure the qualities of a LearnedDistribution in general and with regard to test sets. The docs say that it takes an option ValidationSet, but ...
0
votes
0
answers
50
views
What does standard deviation mean when using Predict[]?
I am using the Machine Learning function Predict[data, Method -> "DecisionTree"], and I am trying to get the most accurate measurement of its accuracy. ...
18
votes
2
answers
1k
views
Diffusion probabilistic model in deep generative modeling
Diffusion Models (http://proceedings.mlr.press/v37/sohl-dickstein15.html and https://arxiv.org/abs/2006.11239) are generative models gaining popularity in the community of deep generative modeling, ...
3
votes
0
answers
184
views
TrainImageContentDetector gives very poor result on GPU compared to CPU
On the doc page of TrainImageContentDetector, there is an example of heart detector training. I tried this example with different TargetDevice and constrained the <...
5
votes
0
answers
142
views
Derivation from a network
how can I represent the derivative of a network (e.g. NetGraph or NetChain) as a network? I have tried it with FunctionLayer[] and NetPortGradient, but without success.
I would be very pleased to ...
4
votes
1
answer
62
views
"MoleculeFeatures" in FeatureExtractor
"MoleculeFeatures" is one possible Feature Extractor method. What molecule properties does "MoleculeFeatures" entail?
0
votes
0
answers
67
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 ...
1
vote
1
answer
212
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 ...
4
votes
1
answer
110
views
Does RandomArrayLayer implement the reparameterization trick?
I want to backpropagate through random operations (e.g. learn the mean and variance of a Gaussian random variable). I assumed that
...
3
votes
1
answer
40
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 ...
6
votes
1
answer
221
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?
3
votes
0
answers
97
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 ...
3
votes
0
answers
125
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 ...
1
vote
0
answers
51
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, ...
3
votes
0
answers
74
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...
...
2
votes
1
answer
83
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 ...
1
vote
1
answer
233
views
How to predict the future by machine learning past data?
The following is 1,094 days (Length@btcData) of Bitcoin prices. Among them, data for the first 985 days (Length@btctrain) were used for training, and data for the last 109 days (Length@btctest) were ...
1
vote
1
answer
66
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 &...
6
votes
1
answer
542
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:/...
2
votes
1
answer
60
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:
...
6
votes
1
answer
188
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 ...
3
votes
4
answers
198
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:
...
4
votes
1
answer
220
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 ...
6
votes
0
answers
287
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 ...
14
votes
1
answer
2k
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 ...
4
votes
1
answer
338
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
...
3
votes
1
answer
211
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, ...
1
vote
0
answers
74
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 ...
1
vote
0
answers
135
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 ...
17
votes
2
answers
338
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 ...
2
votes
1
answer
175
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 ...
4
votes
0
answers
90
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, ...
1
vote
0
answers
29
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.
...
3
votes
1
answer
108
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 ...