Skip to main content

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

Using a LSTM for time series forecasting

I found a Long Short-Term Memory (LSTM) network in the Wolfram Language (Mathematica), which implements it for simple arithmetic addition problems. The network is defined as follows: ...
Avgust K's user avatar
0 votes
0 answers
24 views

Neural network that augments the input with constants

Suppose we have a simple neural network as follows: ...
Math Gaudium's user avatar
0 votes
0 answers
33 views

Improving accuracy of neural network for determining qubit rotation angle

The physics example problem (to illustrate the use of a basic neural network using Mathematica) I am looking at is a qubit rotated about the y-axis, where the rotation angle is discretized as $\...
John Doe's user avatar
  • 279
0 votes
0 answers
72 views
+100

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 ...
John Doe's user avatar
  • 279
0 votes
0 answers
43 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: ...
John Doe's user avatar
  • 279
1 vote
0 answers
29 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 ...
Schwarzer's user avatar
3 votes
0 answers
48 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?
user5601's user avatar
  • 3,625
0 votes
0 answers
32 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 ...
Erfan's user avatar
  • 169
0 votes
1 answer
68 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 ...
Nichola's user avatar
  • 101
0 votes
0 answers
74 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 ...
Max's user avatar
  • 101
1 vote
1 answer
145 views

How to do BayesianMinimization in 2D?

Studying a new experimental BayesianMinimization command in 14.0 and following an example from the documentation ...
user64494's user avatar
  • 26.6k
3 votes
1 answer
75 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 ...
Joshua Schrier's user avatar
3 votes
0 answers
114 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/...
t-smart's user avatar
  • 2,031
6 votes
5 answers
1k views

Decision tree in Mathematica

I have data like these: ...
Teodoro Marinucci's user avatar
2 votes
0 answers
52 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 ...
Lewis Ryan MH's user avatar
1 vote
0 answers
92 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, ...
HyperGroups's user avatar
  • 8,619
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. ...
Syed's user avatar
  • 55.3k
0 votes
0 answers
63 views

How to extract images from Information?

class = Classify[ ExampleData[{"MachineLearning", "UCILetter"}, "Data"]] Information@class I have queried the Information function, ...
我心永恒's user avatar
  • 1,562
0 votes
1 answer
54 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 ...
Lewis Ryan MH's user avatar
3 votes
1 answer
137 views

Living or Non-Living?

...
Syed's user avatar
  • 55.3k
0 votes
0 answers
38 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 ...
GaloisFan's user avatar
  • 405
0 votes
0 answers
57 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 ...
Quasar Supernova's user avatar
0 votes
0 answers
32 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?
Erfan's user avatar
  • 169
0 votes
0 answers
126 views

Predict with Deep Learning in Mathematica

I have two series of number (Tmax,Tmin) and my target is (ET). I want modeling this and I have one code for this operation but this code is not very acceptable. Can you help me to improve or use an ...
Erfan's user avatar
  • 169
3 votes
1 answer
71 views

NetGraph won't accept EmbeddingLayers of different n

Why doesn't this work: ...
user233932's user avatar
0 votes
0 answers
63 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 ...
Kvothe's user avatar
  • 4,491
5 votes
1 answer
267 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, ...
apg's user avatar
  • 2,155
3 votes
1 answer
112 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 ...
Eisbär's user avatar
  • 1,476
3 votes
0 answers
321 views

Fourier neural operator using wolfram mathematica

Fourier Neural Operator (FNO) is a neural network-based approach that combines deep learning with the Fourier transform to solve partial differential equations. It leverages the power of neural ...
Baoxiang Pan's user avatar
5 votes
1 answer
176 views

Does Mathematica have a LogSumExp function that's numerically stable?

I searched "Mathematica LogSumExp", and literally nothing is coming up. It's a relatively important function in machine learning and for numerically stable computation. Will I just have to ...
chausies's user avatar
  • 191
6 votes
2 answers
214 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.: ...
Wolfgang123's user avatar
3 votes
0 answers
109 views

Using Mathematica ML models in another application

Using Mathematica, I trained and exported some machine learning models with the suggested file extension .wmlf. However, I noticed that these files are stored in HDF5 format. How can I import these ...
Jeremy L's user avatar
3 votes
1 answer
63 views

Sentiment analysis function (not using Classify)

I am looking to create a function that will take a text and parameter strings "neg","pos", and "sum" and calculate a sentiment value for the text. I want to use ...
keith's user avatar
  • 41
3 votes
1 answer
289 views

Prediction Algorithm [closed]

Trying to identify what algorythm I need to use to predict a battery full time (100%), based on historic data (charge rate is variable). I suspect it's some form of linear regression of a sort, ...
user13239021's user avatar
1 vote
1 answer
45 views

Why does ImageRecognition recognise some concepts in a list of concepts but not others?

Why can I successfully use an option list of the dog and cat entities with the ImageRecognition function but not use a similar option list for two aircraft entities
Nick's user avatar
  • 403
1 vote
1 answer
134 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 ...
bhopshang's user avatar
  • 739
5 votes
0 answers
170 views

Target Device->"GPU" Not Working For Machine Learning: LibraryFunction error

I'm running Wolfram Desktop version 13.2.1, and after downloading Visual Studio, Nvidia Toolkit version 12.1 and 11.2, and verifying that ...
Daniel Berkowitz's user avatar
2 votes
0 answers
132 views

Machine learning for symbolic mathematics

I came across a meaningful article about the use of machine learning (in particular, with Mathematica) to solve ODEs and find undefined integrals. Are there any other works, especially done with ...
user64494's user avatar
  • 26.6k
0 votes
0 answers
75 views

Neural network: Segmentation of water and not water area

Good morning everyone. I have a large dataset of photographs similar to the one attached. It would be my intention to train a neural network to recognise water and "non-water" zones. How ...
Ramiro dell'Erba's user avatar
1 vote
0 answers
92 views

What is that neural network?

I am teaching my comp to add naturals by creating a neural network: ...
user64494's user avatar
  • 26.6k
1 vote
0 answers
127 views

Mathematica, ML and TensorFlow

I am currently studying a specialization on Coursera in Machine Learning and am investigating various tools to help me out with the maths and with visualisations and so on. Although I have many ...
serlingpa's user avatar
  • 111
3 votes
0 answers
75 views

Performance Problems with Number-Recognizing AI Functions

I created an AI function that recognizes numbers using MNIST. ...
Milk's user avatar
  • 1,718
3 votes
0 answers
208 views

Why Mathematica's Classify gives 100% accuracy on FashionMNIST dataset

Tested on Mathematica 13.2 ...
HyperGroups's user avatar
  • 8,619
1 vote
0 answers
99 views

Training stuck problem about SVM in Classify

fashion MNIST dataset You can download the FasionMNIST and unzip the data, you'll see that train-images-idx3-ubyte. You may also use official ...
HyperGroups's user avatar
  • 8,619
1 vote
1 answer
172 views

How can I get a mean ROC curve from multiple Classify iterations?

I'm running a classifier on some data using Classify. Because the classifier results depend on the data used for training, I decided to run the classifier in a loop ...
LNah's user avatar
  • 189
1 vote
0 answers
40 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 ...
HyperGroups's user avatar
  • 8,619
1 vote
0 answers
30 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 ...
ipcamit's user avatar
  • 111
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? ...
Milk's user avatar
  • 1,718
12 votes
4 answers
1k 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. ...
azerbajdzan's user avatar
  • 18.6k
5 votes
1 answer
187 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: ...
userrandrand's user avatar
  • 5,892

1
2 3 4 5
14