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
19 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
22 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....
10
votes
0answers
87 views
+100

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 ...
0
votes
0answers
31 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
76 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
122 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
53 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
0answers
38 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 ...
3
votes
1answer
63 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 ...
0
votes
0answers
47 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
40 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
49 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 ...
2
votes
1answer
159 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 ...
5
votes
0answers
39 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 <...
6
votes
1answer
112 views
5
votes
1answer
101 views

How to load trained RNN in MXNet?

No problems with CNN ...
0
votes
2answers
94 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 ...
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
119 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
71 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
111 views

Pulling the principal components out of a DimensionReducerFunction?

Suppose I perform dimension reduction using PCA: ...
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
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?
1
vote
1answer
53 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 ...
4
votes
0answers
120 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. ...
1
vote
0answers
63 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),...
2
votes
1answer
47 views

Oversampling of data set for class balancing

We have a set of $n$ three-dimensional vectors: {{x_1, y_1, z_1}, {x_2, y_2, z_2}, {x_3, y_3, z_3}, ..., {x_n, y_n, z_n}} They represent the results of $n$ ...
0
votes
0answers
36 views

Ordinal subset in the set of classes

I need to do an unusual classification, which I probably will not achieve only with Classify[]. Features are quite simple vectors composed of numbers and nominal ...
1
vote
2answers
46 views

Extracting numerical value from sentiment classifier

I have this code, and want to extract out just the number. I tried QuantityMagnitude and a transformation rule. ...
4
votes
1answer
107 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 ...
0
votes
1answer
195 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...
1
vote
1answer
27 views

Error NetTrain::invencin: Invalid input when training a neural network [closed]

I've build a Deep neural network with various variables: ...
9
votes
1answer
146 views

How do I implement masked Softmax?

Consider: input = {1, 2, 3}; mask = {1, 0, 1} Classic Softmax: SoftmaxLayer[]@input {0.0900306, 0.244728, 0.665241} ...
4
votes
0answers
37 views

How to implement external memory for the “memory augmented neural network”?

I am trying to implement the memory-augmented neural network using MMA 11.3. The memory-augmented neural network in based on the paper here. There are implementations using ...
1
vote
0answers
70 views

ImageRestyle yielding low-level errors even in example cases

the title covers it. I'm on v11.3.0.0 on a MacBook Pro running Mojave 10.14.2, and trying to run ImageRestyle seems to immediately throw a bunch of errors that aren't related to the input in an ...
0
votes
1answer
80 views

How to get function of “GaussianProcess” prediction?

I am a new user of Wolfram Mathematica. I need your help. Let's say I have three variables: x, y, z. I want to calculate the "z" depending on x, and y. In other words, I want to find a function for z ...
1
vote
0answers
49 views

Loading machine learning library without enabling my discrete Nvidia GPU? [closed]

I've asked a similar question [here]. I cannot use some of the machine learning modules without enabling my discrete Nvidia GPU. My setup: Ubuntu 16.04 on a Dell XPS-15 9560 Intel i7 CPU with 8-...
1
vote
0answers
54 views

The hyper-parameters tuning

I am looking for an automatic tool to hyperparameter tuning. Something similar to Random Search Cross Validation in Scikit-Learn. Note: I used ValidationSet options,...
2
votes
0answers
48 views

“Learning” to parameterize Hermitian matrices with a basis using neural networks

I'm interested in using neural networks to "learn" how to write down Hermitian matrices, specifically those which are defined over spaces with a specific tensor product structure. The simplest example ...
8
votes
0answers
98 views

Slow down training many neural networks (Bug?)

I am working on something in which I need to train a neural network many times with slightly different training data. I noticed that after many training runs the input rate had dropped significantly. ...
1
vote
0answers
37 views

Confusing errors using predict to map between matrices

I'm messing around with the new features involving machine learning in Mathematica 11, and one easy thing to try is to make a machine learn the matrix exponential function. The first silly idea I had ...
0
votes
1answer
62 views

Which built-in DistanceFunction options does Mathematica offer? [closed]

The documentation is not specific at all about which built-in distance functions are implemented in Mathematica: https://reference.wolfram.com/language/ref/DistanceFunction.html For instance, I ...
3
votes
2answers
167 views

Answer multiple choice questions

FindTextualAnswer isn't working for me here: ...
3
votes
3answers
184 views

How can I test my machine learning model on a machine with no Mathematica?

I need to test my machine learning models that I’ve built using Predict on 100,000 observations. The problem is that the machine where the testing is done doesn’t ...
1
vote
1answer
63 views

Neural network not training due to function not loading

I'm trying to train a neural network on Mathematica 11.3, but NetTrain won't work and gives the follwoing error: ...
1
vote
0answers
54 views

K-medians clustering computation

Is there a built-in function for data clustering using k-medians algorithm? I found out about the ClusterDissimilarityFunction of the ...
0
votes
0answers
35 views

interface problem for image recognition

I made the following code that should recognize the image imported from the pc. If I do it for the first time it's fine, but if I load a second image it leaves me the name of the previous one. You ...
1
vote
0answers
82 views

Speed up Classify using GPU

I am interested in classify binary data using a Random Forest method. My data is numeric tensor and label of each class represented by 1.0 or 0.0. The size of the training data is ~16 million examples,...
0
votes
0answers
16 views

Import all images of a folder on mathematica [duplicate]

How can I import all the images of a folder on mathematica specifying the category of such images? For example, if I have a folder with images representing the night how do I import them and specify ...