All Questions
Tagged with machine-learning or machine-learning
682 questions
1
vote
1
answer
84
views
Training a neural network on two dataset simultaneously
I have my neural network model and want to train it at the same time on 2 datasets that share the same structure. What I have done so far does not work.
This is my code
...
1
vote
0
answers
29
views
Is this a reasonable way to transform simple MSE loss function to weighted MSE for neural networks?
The idea is tested on a dataset with a clear outlier (see picture below)
...
11
votes
1
answer
490
views
Can LearnDistribution learn conditionality?
I would like to apply LearnDistribution to multivariate conditional distributions. Here's a simple artificial example:
...
0
votes
0
answers
32
views
Combination of decoder and encoder for VAE interpolation
To get VAE interpolation I need decoder and encoder to be combined. Can you make a suggestion?
...
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:/...
0
votes
1
answer
62
views
Neural network that augments the input with constants
Suppose we have a simple neural network as follows:
...
0
votes
1
answer
59
views
Scheduled Updating of LossFunction Scaling in NetTrain
I'm looking for a way to externally manipulate (hyper)parameters of a network during NetTrain training, as a function of the training progress. Specifically, I want ...
0
votes
1
answer
57
views
Use of ports on basic machine learning regression
I have this simple code to do a regression on a list of points very close to a parabole. It is purely anecdotal that I happen to know the exact underlying trend, the idea is just to have simple/nice ...
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 ...
3
votes
1
answer
89
views
NetGraph won't accept EmbeddingLayers of different n
Why doesn't this work:
...
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 ...
1
vote
1
answer
109
views
Strange result for decision-tree-classifier. Why?
I'm still in touch with DT-Classification and try to understand how the Mathematica algorithms works and what tree is generated (related: click). I just tested the well-known "playing tennis" (...
5
votes
0
answers
216
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 ...
7
votes
1
answer
772
views
Image Generator with a Neural Network (CIFAR-10)
As some of you may know, CIFAR-10 is a data base which has 60,000 images (which are 32x32 in size) of 10 different categories (airplane, dog, cat, frog, deer, bird, horse, ship, automobile and truck). ...
2
votes
0
answers
1k
views
How do I obtain the Fisher information matrix from a data set?
My apologies in so much as this is probably in large part a problem of me not being aware of the necessary mathematics but since this should be a common issue in machine learning and Mathematica now ...
1
vote
0
answers
25
views
How to evaluate text-to-speech models in WL
There are a many solid options for text-to-speech (TTS) now in SpeechSythesize and from API providers in general. How might I use Mathematica to compare the quality ...
7
votes
3
answers
253
views
How to identify and select the first name from a string containing a first name and a last name?
Is it possible to identify and select the first name in a string that is made up of a first name and a last name, e.g.:
...
0
votes
0
answers
26
views
Neural Network erros in NetEncoders?
I'm making a fairly complex neural network, and I've listed all the ports, the network flow, and the layers well. However, when I tried to run the NetGraph, it gave me the error message
...
0
votes
0
answers
53
views
Using NetMeasurements for basic neural network
I have a neural network that works fine, but I would like to obtain some results on the Validation Set which provides some metrics on the performance of the training. I am obtaining some strange ...
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 ...
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 ...
3
votes
0
answers
83
views
How to import huggingface dataset files?
The .hf file from HuggingFace's datasets library is a very popular format: https://github.com/huggingface/datasets. Is there an easy way to import these from either files on disk or their webportal?
3
votes
1
answer
161
views
0
votes
0
answers
97
views
SoftmaxLayer with one-hot vectors
The quantum physics problem I am looking at is a rotated qubit. The setup involves a y-rotated qubit measured in the z-basis (hence spin-up and spin-down). This scenario typically includes modeling ...
0
votes
0
answers
67
views
Using CrossEntropyLoss function for basic neural network
Hi I am interested in understanding how to use the neural network functions in Mathematica. I have just started learning hence this is a basic query. The simple example I am looking at is as follows: ...
1
vote
0
answers
38
views
TensorProduct in a FunctionLayer cannot compile correctly
My network can output an array of 6x512x512 size at the end, now I want to multiply an array of length 3 for each of these 6 channels to get the color of the different channels, I am using the ...
0
votes
0
answers
36
views
Modeling with different outputs size
I have lists of input and output. I want to perform the prediction operation but my outputs are different for each input and this causes an error. Can someone help me to write the model in such a way ...
0
votes
1
answer
84
views
Gradient of tensor expressions
I would like to compute gradients of tensor expressions without having to instantiate particular tensors and for arbitrary sizes.
Example 1 :
For example, let's say I want to minimize $C=\sum_j(\sum_i ...
0
votes
0
answers
75
views
Error following upgrade to Mathematica 14.0: Classify: TargetDevice -> GPU requires restart [duplicate]
I recently upgraded Mathematica from 13.3 to 14.0 on my workstation. When I attempted to execute a script that ran without any issues on 13.3, I suddenly get an error associated with the Classify ...
1
vote
1
answer
164
views
How to do BayesianMinimization in 2D?
Studying a new experimental BayesianMinimization command in 14.0 and following an example from the documentation
...
3
votes
1
answer
77
views
StandardizedVector returned by FeatureExtract/FeatureExtraction is not the same as Standardize
The documentation would suggest that the "StandardizedVector" option of FeatureExtract and FeatureExtraction should give the same results as Standardize ("numeric data processed with ...
3
votes
0
answers
136
views
What will be the next backend for machine learning?
Apache MXNet has been the choice of Mathematica Neural Network backend, but it has long since been mostly ignored by the ML community and now is finally in the attic (https://attic.apache.org/projects/...
6
votes
5
answers
1k
views
Decision tree in Mathematica
I have data like these:
...
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 ...
2
votes
0
answers
54
views
Publishing image classifier as a website or to the cloud
I have made an image classifier by importing images and training my neural network, and I would like to share this classifier with my colleagues that don't have access to Mathematica.
However, if I ...
23
votes
1
answer
943
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 ...
1
vote
0
answers
96
views
Why does ridiculous error information appear in Classify with Method GradientBoostedTrees?
The data could be classified correctly by method like LogisticRegression, NearestNeigbors.
The dataset is quiet simple, ...
0
votes
1
answer
61
views
Creating an If function for the probabilities of the classes of images after using NetTrain
So I have 3 Classes the model can output after veiwing an image, at the moment it has a 70% accuracy, however this is not an issue as the plan is unless it's 85%+ sure on the Probability of the class ...
1
vote
1
answer
51
views
FeatureSpacePlot output differs in documentation vs. a notebook
I was exploring this first example of FeatureSpacePlot and it shows some strange behavior. On the left is the documentation window and to the right is the notebook. ...
0
votes
0
answers
68
views
How to extract images from Information?
class = Classify[
ExampleData[{"MachineLearning", "UCILetter"}, "Data"]]
Information@class
I have queried the Information function, ...
1
vote
1
answer
153
views
Generating molecules using a GAN in Mathematica
I have been unable to find any tutorials or examples of creating molecules using a Generative Adversarial Network (GAN) in the Wolfram language. It appears that the Selfies paclet was created to ...
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 ...
9
votes
1
answer
3k
views
Fashion segmentation with a neural net?
I would like to train a network that can parse clothing:
Does anyone know of a fashion segmentation network with or without pre-trained weights available that I can use in Mathematica?
Update:
I ...
0
votes
0
answers
42
views
How to treat small numbers in order to gain efficiency and precision in neural network algorithm?
Unfortunately I won't be able to provide a MWE, as it would be too big and complex, and this question will be based on pure semantics, basically (and I understand if this is impossible to answer in ...
0
votes
0
answers
70
views
How do I make Predict function accept a sequence of data inputs as a feature while training?
How do I make Predict function accept a sequence of data inputs as a feature while training? I am unable to use this :
trainingdata = { 5 -> {{1,4},{2,3}}, 6 -> {{2,4},{3,3}} , .... }
as ...
0
votes
0
answers
33
views
What is the network structure of Ademxapp Model A1 Trained on Cityscapes Data in the Mathematica?
I want to implement the model (Ademxapp Model A1 Trained on Cityscapes Data) on my data for segmentation, so I need the partial structure of this model, can anyone help?
3
votes
1
answer
118
views
Evaluating a questionnaire from image
I want to evaluate a questionnaire made at school. The survey is made on paper and I will scan it. So I have an image with all the questions (44 questions). What I am looking for is which number was ...
0
votes
0
answers
65
views
How to use NetChain to obtain a fit that is at least accurate on the training data
How do I use NetChain to obtain a fit that is at least accurate on the training data?
I am trying to get a hopefully predictive fit for some data (see my question ...
5
votes
1
answer
276
views
Using AI to get the geographic locations of a list of banks
I have a list of banks from Bloomberg, and am looking to locate them on the world map,
...
3
votes
1
answer
270
views
UtilityFunction for actual and predicted values (machine learning)
In machine learning, the utility function for a classifier assigns the utility value to an actual value v(act) and a predicted value v(pred), typically e.g. in form of
...