All Questions
682 questions
36
votes
1
answer
3k
views
RNN in Mathematica?
Recurrent neural network is an important part of machine learning and its improved version: LSTM network is widely applied, but Mathematica seemingly is in lack of these two features and in my opinion,...
1
vote
0
answers
146
views
Increase the speed of Machine learning based on 'Predict'
I am training a ANN model with a large dataset (~million level) using Predict or NetTrain function. I do not have a GPU machine but have a server equipped with 16 CPU cores. How can I maximize the ...
28
votes
2
answers
779
views
Frown for a sex change, or, how do I unbork the "FacialGender" classifier in 11.2?
The limits of machine learning. I thought the new "FacialGender" option for Classifier would be an amusing thing to ...
28
votes
1
answer
2k
views
How to export an MXNet?
I was hoping there was some way to generate the .params and .json file needed to define an MXNet model, from a network trained using NetTrain[] in Mathematica. I ...
21
votes
1
answer
331
views
Inefficient memory storage for Dataset
Why Dataset doesn't serialize its contents, isn't it the whole point? I expect it to behave similar to python's pandas.DataFrame,...
36
votes
2
answers
4k
views
Using a Convolutional Neural Network for time series classification
In the recent new in Mathematica 11 webinar one user asked during the Q&A session wether the current implementation of neural networks in Mathematica 11 could be used for processing time series. ...
4
votes
2
answers
398
views
How to find explicit hyperplane in SupportVectorMachine
I am using the SupportVectorMachine classfier:
e.g., (* let me use Linear kernel for simplicity *)
...
1
vote
0
answers
145
views
How to solve ODEs using deep learning in Mathematica [closed]
I have a number of ODEs (58) with 16 parameters and 9 variables. I want to solve the ODEs to obtain the analytical relationship between the parameters and variables. It is obviously that the ODEs ...
0
votes
2
answers
86
views
How to avoid one-hot encoding for LinearModelFit and NonlinearModelFit
This code works:
...
6
votes
0
answers
315
views
Extracting information from Classify
I have used Mathematica's automated Classify function:
...
7
votes
1
answer
984
views
How to find similar words from the provided list?
Let's say I have created a list of words that are acceptable in a certain context.
list = {...};
Now given a new or some existing word from the list I want to ...
0
votes
0
answers
197
views
I'm not sure how to use Predict[]
In my university I got an assignment: I need to predict the stock price using two of machine learning methods with imported data. (I've chosen Linear regression and Decision tree).
I tried to make a ...
2
votes
1
answer
199
views
How to build an RNN with input as character but output a sequence of tokens?
Let’s assume I have “abbcab”-> {“Apple”,”Banana”}, “Bibb”-> {“Carrot”} so the output is a sequence of various length, but I can pad it to be the same length. My problem, how do I create a ...
1
vote
2
answers
128
views
How to assemble layers to perform different linear transformations on each column of matrix?
I have a matrix $A_{m×n}$ and I want to assemble a network that performs $n$ different trainable linear transformations $T_{p×m}(i), i\in {1,2,...n}$ on its corresponding columns, (i.e. $B^i = T(i)A^i)...
4
votes
1
answer
171
views
How to use classify to separate lines and circles
I generated lines and circles:
...
2
votes
0
answers
57
views
Preprocessing data\[Ellipsis]. or Preprocessing data..... error in ParallelTable in Mathematica
I am working on Machine Learning. My purpose in the code is to repeat calculation a few times and average the results. While using Table command, following message pops up for ClassifiersMeasurements ...
11
votes
3
answers
2k
views
Noise filtering in images with PCA
I have a stack of images (usually ca 100) of the same sample. The images have intrinsic variation of the sample, which is my signal, and a lot of statistical noise. I did a principal components ...
5
votes
1
answer
337
views
ClusteringComponent and FindClusters are returning the wrong number of clusters and are inconsistent
I am trying to find the optimum number of clusters in a correlation matrix.
To do this I run a clustering algorithm that loops through 3 variables ( number of clusters, ...
9
votes
1
answer
311
views
How to implement BlazeFace?
BlazeFace is a lightweight and well-performing face detector tailored for mobile GPU inference. It runs at a speed of 200-1000+ FPS on flagship devices. How to implement BlazeFace in Mathematica?
5
votes
1
answer
440
views
How to paraphrase text?
I'm looking to train or use pre-trained models in order to re-phrase text. Are there any natural language models in the Wolfram Neural Repository (or elsewhere) that can be used to paraphrase text?
...
12
votes
2
answers
864
views
How to inspect the learned ClassifierFunction decision tree model?
Assume I have a ClassifierFunction object learned like this:
classifier = Classify[trainSet, Method -> "DecisionTree"]
...
11
votes
1
answer
841
views
How to perform UMAP dimensionality reduction?
This new method UMAP looks to be better than TSNE, unfortunately it is not available as a dimension reduction method yet:
Does anyone know if there exists an implementation of it in, or accessible ...
13
votes
1
answer
9k
views
How can image segmentation from UNET be improved?
EDIT 2: code can be found @ https://github.com/alihashmiii/UNet-Segmentation-Wolfram
EDIT 1: applying Binarize to the masks after resizing helps to ensure the data for mask is binary
I have made an ...
1
vote
1
answer
146
views
Interactive Machine Learning App to make Predictions using Descriptors
I have developed a Machine Learning algorithm that uses 4 chemical descriptors to calculate a chosen chemical property. I would like to create an interactive app on Mathematica (using the manipulate ...
3
votes
2
answers
349
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
1
answer
74
views
ClassifierMeasurements returns strange errors
I am following the example listed on this page ResNet 50 to train a custom classifier and inspect the outcome with ClassifierMeasurements. My training set has 443 images from more than 30 classes. The ...
20
votes
2
answers
5k
views
Machine learning. SVM algorithm
I want to work with machine learning in Mathematica. Are there any SVM algorithms implemented in Mathematica anywhere? Or any other algorithms for machine learning? With positive and negative database ...
4
votes
2
answers
473
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 ...
0
votes
0
answers
67
views
Mathematica accuracy errors when creating data
I created training data for a neural network and below are two errors I got
The only code that uses "FindRoot" command is the following
...
1
vote
1
answer
180
views
Extract details from PredictorFunction object
For training data, the command Predict generates an object PredictorFunction, which can evaluate a prediction from variables. ...
11
votes
0
answers
235
views
Tutorial example NetTrain fails miserably with a GPU
I have been experimenting with GPU NetTrain on AWS now when Mma 12.2 supports remote batch jobs (I don't have an Nvidia GPU to try these things out otherwise). In ...
25
votes
1
answer
6k
views
How can I detect if an image is of poor quality?
I need to filter out blurry or otherwise bad quality images from a set. I would like an efficient method to detect images that have any of the following three attributes:
Out of focus or motion blur
...
2
votes
0
answers
160
views
Simulated Cartpole Example in Mathematica
I am interested in modifying the code underlying the reinforcement learning example SimulatedCartpole in Mathematica 12.
This example is still listed as Experimental. The help function indicates that ...
3
votes
1
answer
114
views
Can NetNestOperator take a non pre-defined number of iterations?
I'd like to Nest a particular NetChain inside a larger NetGraph for a random number of ...
7
votes
1
answer
294
views
Decoding Music in Staff Notation using ImageIdentify
I wrote this Code fragment
Which is a E (quarter) note in Treble Clef. Instead Mathematica simply classified it as a "musical note"
Can we do better?
6
votes
2
answers
4k
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 ...
7
votes
1
answer
772
views
Specifying mean and kernel function in Gaussian Process
As part of the Improved Machine Learning in Mathematica 11, Wolfram advertises the Method "GaussianProcess" which can be used with Predict[] to obtain smooth Gaussian random fields. The screenshot ...
9
votes
1
answer
999
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}
...
13
votes
2
answers
1k
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 ...
13
votes
2
answers
2k
views
How to change NeuralNetwork options?
How can I manipulate the architecture and problems of a NeuralNetwork in Predict or Classify? For example, running the following ...
13
votes
2
answers
790
views
How to implement a triplet network with NetSharedArray?
In v11.3, NetSharedArray[] and NetInsertSharedArray[] give us a mechanism of sharing weights and biases across neural networks, ...
1
vote
1
answer
99
views
Derivative of predictor function
Given some data dat, we would like to generate a predictor function. Therefore we use
...
1
vote
1
answer
66
views
Separating objects into a constrained number of groups where data is known about all object pairs
In Frequency Planning, we may know the interference between one cell and another cell. You may be a able to operate a specific number of frequencies. How would one separate them into the best groups. ...
3
votes
1
answer
643
views
How can I normalize a dataset relative to data already given previously?
Some scientific libraries, like Scikit-Learn for Python are able to create normalizing/standardizing functions based on data that is previously given. Looking at the documentation for ...
6
votes
1
answer
1k
views
How do I create & train a neural net to predict a stock closing price at T+5min using OHLC and other data?
I'm trying to create a neural network and train it to test predictability of short term stock price movements.
I've collated a 1-min open, high, low, closing and volume dataset for a particular stock....
0
votes
1
answer
95
views
Binary Classify a Large Data Set using Deep Learning
I tried training this model: All even integers map to T and all odd ones map to F. I used 100 million training examples with Support Vector Machine as the method yet I got garbage for the test cases. ...
0
votes
1
answer
487
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...
2
votes
1
answer
188
views
Copying Weights using NetTrain in Mathematica
I would like to implement the PPO algorithm - Reinforcement Learning - in Mathematica. And for that, I need to be able to copy network weights from say subnetwork NN1 to subnetwork NN2 as an update ...
3
votes
0
answers
174
views
Classify/NetTrain run indefinitely without output when using GPU
I am experimenting with Mathematica's Classify/NetTrain functions for the first time.
When I don't set a TargetDevice option, Mathematica defaults to the CPU and everything works as expected.
When I ...
9
votes
1
answer
604
views
Why is SVM unable to separate linearly separable data?
I have two sets of data, namely blue and yellow. I manually added a point {8, -3} to the blue data.
...