Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
42 views

Find Probability that Image Is Text

I can find out whether an image is text: ImageInstanceQ[img,Entity["Concept", "TextualMatter::m7642"]] And if an image is most likely text, I can find out the ...
5
votes
1answer
70 views

Export ImageCases to Python?

I’d like a tutorial on how to export a bounding box detector network to mxnet, (for bonus points: convert to Tensorflow), and then get it running correctly in python! Some related questions exist for ...
4
votes
0answers
40 views
+100

NetTrain Freezes Computer

I have a neural network I am trying to train: ...
-1
votes
0answers
40 views

How to creating a model for prediction disease based on patients symptoms using SVM algorithm

I have a matrix for diseases associated with their symptoms, the columns represent symptoms each row is a disease. the labels 1 and 0 in the matrix data sets represent when a disease_i related to a ...
1
vote
0answers
43 views

How to create model for classification using SVM methods?

I have a matrix for diseases associated to their symptoms, the columns represent symptoms each row is a disease. the labels 1 and 0 in the matrix data sets represent when a disease i related to ...
4
votes
2answers
177 views

Classifier training on a large data set

I am interested in binary classification and I have a huge set of training examples (around 4 millions). Each example is a $10 \times 2$ matrix. When I run the classification after two hour run the ...
5
votes
1answer
1k views

Neural network: Line detection in Image

I am playing around with Mathematica's new Neural Network toolbox and am trying to teach a network to detect lines in quite noisy images. An example Input image would look like the following: The ...
2
votes
1answer
59 views

Confusion about Predict Model NameAge

Predict["NameAge", "Claire"] 8 distribution = Predict["NameAge", "Claire", "Distribution"] dataRaw = distribution[[2]] <...
19
votes
0answers
581 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 ...
2
votes
0answers
43 views

Concise way to set input directory

Got this Mathematica ResNet- 50 Code online and has been trying to make run it using the same data set but it seems my directories to the dataset were not correct, keep getting this error: ...
2
votes
1answer
48 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 ...
4
votes
0answers
72 views

Reverse Engineering of MMA `Classify[]` Output?

Update: as @AntonAntoniv rightly noticed in his comment the case of DecisionTree is already discussed. Now it would be great to also have an equivalent answer for LogisticRegression. MMA is really ...
2
votes
2answers
57 views

Setting the number of neighbors in NearestNeighbors algorithm

I am using Machine learning in Mathematica 11 for a specific set of data. When I use p=Predict[data] I get the output model by method of NearestNeighbors, which ...
6
votes
1answer
65 views

Compute neural network loss over sliding windows?

I am trying to use the structural similarity index, which is defined in terms of a computation over sliding windows, as a neural network loss function. Obviously one can get a sliding mean using a <...
1
vote
1answer
34 views

How do I apply a NetChain element-wise during training?

I need to train a Neural network that models a function that takes a single real number, and outputs a real number. x -> y = f[x] However, in the training data, each data point doesn't link a single ...
7
votes
0answers
407 views

Train your own CycleGAN style translator

I have a set of images (a few hundred) that represent a certain style and I would like to train an unpaired image to image translator with CycleGAN. I'm looking for a tutorial on how one would do ...
11
votes
0answers
131 views

Implementing Contextual Bandits in version 12

The multi-armed bandit problem (MAB) is a classic in Reinforcement learning. Now that mathematica version 12 finally has support for Reinforcement learning: Here's a nice "mnist example" for training ...
12
votes
2answers
794 views

t-SNE visualization

Is there an implementation of “t-SNE” for dimension reduction in mma? This technique visualizes high-dimensional data by giving each datapoint location in a two or three-dimensional map. It generally ...
17
votes
5answers
2k views

Recurrent neural network in 11.1 explicit examples?

I heard that RNN was implemented in Mathematica as of 11.1. Trying to search online, I find some general information about neural networks in Mathematica, or a list of related functions. My trouble is ...
0
votes
0answers
21 views

Console Output to file corrupted

When i run WolframScript and write the output of a *.wls to a file and then modified the program slightly, i started getting these more exotic outputs. The function used is NetTrain. Does someone ...
0
votes
0answers
26 views

Unable to replicate Predict/NeuralNetwork example from Help Pages

I am trying to replicate an example right out of the help manual (ref/method/NeuralNetwork). This example compares the convolutional NN versus a fully-connected NN....
0
votes
0answers
34 views

TextContent does not work on my computer

TextContents does not work, returns `TextContents::wlnetcorr2: A required WLNet file is corrupted and could not be loaded. `TextContents::nlpnetmodel: An internal error occurred while loading ...
4
votes
0answers
83 views

Can I use Mathematica ML capability to translate an image of a formula?

If I am given a pdf image of a mathematical symbolic formula can I translate it into Mathematica syntax using ML? I tried using Classify, but I can only translate parts of the equation and I don't ...
3
votes
0answers
149 views

Bug in the classification optimization algorithm for large data sets

I believe that I encountered a bug in Mathematica 12. The Classify[] function throws errors when simultaneously: The training set has significantly above $10^5$ ...
0
votes
0answers
54 views

Predict the form of a function using machine learning

I have a function F[x_] := x^3/(e^x -1) I generate many data points i = 1,2,3,4, ... ...
3
votes
1answer
69 views

How do I create my own activation function in NetChain in Mathematica?

I want to have my own activation function, say a quadratic function, instead of Tanh, or Sigmoid etc. in Mathematica. How do I insert it in NetChain? e.g., how will the below code look for a new ...
4
votes
0answers
56 views

Can I extract symbolic expression of neural network loss function?

Once we create a neural network with NetChain in Mathematica, can we extract the loss function in the symbolic form for Mathematica to play with symbolic manipulations using Mathematica's built-in ...
2
votes
1answer
163 views

Can I use machine learning to predict a functions behavior?

I want to use this as training data (1, sin(x)), (2, sin(2x)), (3, sin(3x)) and answer the question what is (20, ?). I ...
0
votes
0answers
53 views

TargetDevice->“GPU” takes no effect in prediction of Classify and ClassifierMeasurements?

I can train the model with GPU via method->"NeuralNetwork" in Classify. I'm on Mathematica 12.0 and the problem also happens in 11.3. Is this a bug since 11.1 to 12.0? In training, GPU is faster ...
1
vote
0answers
44 views

Not able to use ImageIdentify

When I tried to use ImageIdentify (Trial version of Mathematica 12) on an image I clicked on my mobile I got this error message ImageIdentify::interr: An internal error occurred: An unexpected error ...
4
votes
0answers
55 views

How to extend ImageCases?

I was very excited to see ImageCases being documented in version 12. But I immediately desired a mechanism for adding more entities to ...
5
votes
1answer
109 views
4
votes
1answer
111 views

Named entity recognition

How can one process natural language (English) to extract named entities (aka NER)? Or at least, entities which can be mapped to a Mathematica Entity. Note that trying to map entities via simple ...
8
votes
2answers
113 views

Kernel shut down when use FindFaces with LBP Cascades

I found Mathematica can use OpenCV to improve face recognition in FindFaces: how to improve the results of the face recognition feature. But I tried this way and the kernel crashed. ...
0
votes
1answer
200 views

NetGraph/Model for BERT?

Does anyone know of a way to get the BERT model working for word embeddings in Mathematica? Doesn’t seem to be available on GitHub or the Wolfram Net Repo...
0
votes
2answers
96 views

How to Sample from a Probability Density Function

I've done a pretty good job working my way through and understanding the various ways to calculate the differences between probability distributions through Kullback Leibler Divergence and was happy ...
4
votes
1answer
180 views

ClassifierMeasurements Indeterminate Examples

I like to use ClassifierMeasurements. It's nice and doesn't make me think too hard. One of the features I like a lot is the ...
1
vote
1answer
62 views

What is the meaning of “Number of features” returned by ClassifierInformation?

I have set of 13 dimensional vectors split into three classes, and I'm building a classifier using supervised learning. After running c = Classify[..] on ...
3
votes
0answers
123 views

Physics based predictive model using Predict

Summary: The first order response of a block of metal quenching in a fluid (or a cold block heating in a warm environment) is well known. I am trying to create a physics based predictive model for ...
4
votes
0answers
129 views

Transfer learning a bounding box detector

I'd like to add a new class to one of the standard object detection architectures. Consider the YOLO v2 detector from the Neural Net Repo. ...
4
votes
0answers
76 views

Visualizing and Understanding CNN with Mathematica

The famous 2013 paper from Zeiler and Fergus "Visualizing and Understanding Convolutional Networks" proposes a method to understand the behavior of CNN using one (or more) DeConv networks coupled with ...
47
votes
5answers
7k views

Mathematica command that allows it to read my intentions

In version 2.0 of Mathematica there was a command, ReadProgrammerIntentions[ ] which allowed it rapidly compose code that could solve problems simple to complex, ...
4
votes
1answer
112 views
3
votes
2answers
203 views
1
vote
1answer
84 views

How to make Hinton diagrams

I just start studying machine learning with Mathematica and, I want to know how make Hinton diagrams. Can someone give an idea, please?
0
votes
0answers
30 views

Can I use inbuilt machine learning to guess the n-th term of the inverse series?

Consider this concrete example. InverseSeries[ Series[ PolyLog[s, z], {z, 0, 10}]] From this output is there a way of writing down a formula for the n-th term? ...
1
vote
1answer
56 views

One-hot encode from Integer Encoding

I have several data sets that I am working with in Mathematica. There are several columns of data but I am going through it one column at a time. Now I have some columns where respondents were able to ...
1
vote
0answers
64 views

Cluster analysis with constraints on number of clusters and their abundance

How to perform cluster analysis in a set: With the number of clusters bounded but not specified, e.g. $k\in[3,5]$ With a bounded abundance of clusters (the number of elements in each of the clusters),...