Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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
4
votes
1answer
135 views

How can I reproduce the result of AgeEstimation model in MXNet-Python?

How can I reproduce the result of AgeEstimation model in MXNet-Python? here is my repo about MXnet-Python codes to load Mathematica Models. I want the result of Mathematica and the result of MXNet-...
1
vote
0answers
78 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 ...
65
votes
8answers
10k views

What are the Wolfram Language's relative strengths for machine learning?

I see a low use of Mathematica in Kaggle competitions. Why would one use the Wolfram Language versus R, Python, or Julia for machine learning? Besides prettier plots and the Manipulate function, ...
0
votes
0answers
37 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
108 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
19 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 ...
0
votes
0answers
70 views

Creating a GUI for a classifier

I developed the following code which is suitable for cloud deployment. However, in order to avoid the problems of the cloud, I would like to create an user interface that runs in a Mathematica ...
0
votes
0answers
39 views

how to train a neural network [duplicate]

I have developed the following code, but I would like to train a neural network so that it can recognize all the dog breeds, integrating many images in order to have a high probability that the ...
2
votes
1answer
75 views

Issue deploying a FormPage using Classify

I developed this code that allows me to recognize what breed is the dog in the inserted image (for the time being developed only for five breeds of dogs), however, when I go to insert the image in ...
4
votes
1answer
129 views

Value for output of layer is inconsistent (implementing SqueezeUNET from Keras)

I'm attempting to implement this neural network in WL: https://github.com/lhelontra/squeeze-unet/blob/master/squeezeunet.py which is a variant of the SqueezeNet network that does image segmentation. ...
3
votes
1answer
125 views

Identify emotions from a drawn face using machine learning?

Can someone tell me how you could modify this code so that it recognizes more facial expressions? ... thanks for the help. ...
1
vote
1answer
102 views

What do the numerical values obtained from “FeatureExtraction” mean and what are their applications?

I started a self study on machine learning with mathematica recently. I have seen the power of predict and classify. I am particularly impressed with "FeatureExtraction" function but I really want to ...
2
votes
0answers
162 views

Neural Network Time Series Input

All, I am attempting to replicate the work done using Long Short Term Momory Artificial Neural Networks proposed in this thesis by following this (great) example. I have a given dataset for which I ...
0
votes
1answer
70 views

Cross Validation using SVM and Random Forest

I am very new to Mathematica and would like to know how to use k-fold cross-validation with SVM and Random Forest classifiers and have the output include both accuracy and F1-Score. I found an ...
7
votes
2answers
1k views

How to do $ n $-fold cross validation with Classify?

Other machine learning libraries have utilities to generate indices that can be used to generate dataset splits according to different cross-validation strategies. How do I tell ...
7
votes
1answer
136 views

How to use XGBoost from within Mathematica?

Is there an easy and efficient way to use XGBoost from within Mathematica without naively Import/Exporting the data? Does anyone know of a third party package or any example applications of ...
3
votes
0answers
63 views

Connect to DeepMind Control Suite? [closed]

Has anyone found or built a package or library to connect MMA to the reinforcement suite from DeepMind?
2
votes
0answers
43 views

Calculate the precision@k in Classify

I am interested to measure a precision@k. The Classify function provides a build in an option for that or an elegant approach to calculate this without the need to ...
0
votes
1answer
115 views

Realization machine learning [closed]

Can you advise me what kind of machine learning to achieve? ... I had thought, for example, to make a face and, by varying the expression through the "manipulate" function (I do not know if it is ...
10
votes
1answer
3k 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 ...
4
votes
1answer
117 views

Speedup of DimensionReduce

I am interested in accelerating DimensionReduce using the "TSNE" method. I have a matrix with a size of 30000 * 10, and I want to reduce to 30000 * 8. But the calculation is very slow, any suggestions ...
15
votes
1answer
420 views

Training Neural Networks on Cloud GPUs (Wolfram Cloud / AWS / Paperspace /etc)

I have spent a lot of time lately training neural networks. However, my poor laptop has only an AMD GPU, so I am stuck training these networks on the CPU. That means I get to train networks over ...
7
votes
1answer
122 views

Machine learning: How to fix part of the weight matrix?

Consider a linear layer with 2*2 weights linear = LinearLayer[2, "Input" -> 2]; net = NetInitialize[linear]; After the initialization, the four elements of ...
4
votes
0answers
61 views

Candidate sampling for softmax neural networks in mathematica

Though I've been using mathematica for a few years, I've never really delved into its ML capabilities (except for the occasional clustering). I'm curious if anyone who has some experience using ...
1
vote
0answers
62 views

How to parse through a .txt file in the Classify function and assign a class to each item?

I have 2 txt files that contain 500 DNA sequences each. Both files use 2 hard returns to separate the sequences like so: ATCGATCT... ATCGATCT... ATCGATCT... I ...
6
votes
1answer
534 views

How to import/export to libsvm?

Under the hood Mathematica uses libsvm, so I don't think this question is beyond the pale. I need to export an svm I trained with Classify to the standard SVM Format (which is readable by libsvm). ...
1
vote
0answers
87 views

How to use UnitVectorLayer in a NetChain?

How can I create a NetChain with UnitVectorLayer inside? In this way I receive this error: ...
0
votes
0answers
51 views

CDF of probability from a ClassifierFunction

I have a classifier function that classifies whether a student is likely to succeed in a course given their score on a placement test. From this, I am pulling both the probability of being successful ...
3
votes
1answer
102 views

Why does this NetTrain example fail?

I have some training data of the form {{x, y}, bool}, e.g. ...
10
votes
1answer
146 views

Wha't the meaning of NaN in the descriptor of ImageKeypoints

Bug introduced in 10.3 or earlier and persisting through 11.3 ...
2
votes
1answer
96 views

Error using accuracy and ConfusionMatrixPlot of ClassifierMeasurements

EDIT: Here is the complete code that i have used: ...
10
votes
1answer
375 views

NetTrain an image caption generator

I would like to write out the simplest possible word-by-word image caption generator. This network should take an image and build a sentence describing it. Here is my fashion dataset of images and ...
4
votes
2answers
106 views

Crashes of Classify function

I'm working on a classifying two classes. I am training my Classify function with the RandomForest method, but it crashes. The ...
3
votes
1answer
146 views

How to use FastText embeddings in a NetGraph?

Does Mathematica 11 have access with either the Wikipedia or CommonCrawl FastText embeddings? Maybe this is built-in through the Neural Net Repository or available through a ...
13
votes
2answers
561 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, ...
0
votes
0answers
102 views

Using machine learning to find correlation between data

I've taken several months worth of data on health(water intake, activity, steps, sleep quality, heart rate, etc.) and I would like to use Mathematica to find correlations within the data. I would like ...
5
votes
1answer
82 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, ...
4
votes
0answers
94 views

Capsule Network reconstruction layer

I am experimenting the capsule network, using the architecture provided here: Capsule Network in Mathematica Deep Neural Network Repository While I can figure out what the network do following the ...
1
vote
1answer
349 views

Mathematica Machine Learning (Method “NeuralNetwork”)

I am trying to use Predict and Classify functions. I am interested what NetworkDepth really ...
7
votes
1answer
113 views

Regarding Gaussian Process in Predict function

The following code is exactly copied from the documentation on Predict using Gaussian Process. ...
14
votes
1answer
926 views

Implementing t-SNE (t-Distributed Stochastic Neighbor Embedding)

Context Six months ago @M.R. asked about an implementation of the t-Distributed Stochastic Neighbor Embedding (t-SNE) algorithm by van der Maaten and Hinton (2008). (@M.R.'s question) @Alexey ...
3
votes
1answer
188 views

What is Mathematica's ML Linear Regression Method?

When I run p = Predict[trainingSet, Method -> "LinearRegression"];, how is that different from just running ordinary least squares? It's quite slow on a ...
7
votes
2answers
164 views

How to Classify with LogisticRegression with a non linear border?

I am currently taking the Coursera Machine Learning course and want to reproduce some of the coding exercises in Mathematica. In Exercise 2 the problem is to Classify with Logistic Regression. So I ...
5
votes
0answers
168 views

GPU Acceleration and the Predict function [duplicate]

With the Mathematica Predict function, does it automatically use GPU acceleration? For example, with NetTrain, one has to specify TargetDevice->"GPU" to show they want to perform the calculation on ...
11
votes
1answer
279 views

Can Predict/Classify be parallelized?

Being able to parallelize Predict /Classify would be useful on multiple fronts: Performance/Scale Streaming Pedagogical ...
3
votes
0answers
105 views

Implementing Mathematica Machine Learning Algorithm in an HTML-Web Page

I have a Mathematica Neural Network developed in Mathematica 11.2 that I'd like to upload and use on my website. The algorithm takes in images as an input. My website is built with HTML-CSS and Flask. ...
3
votes
1answer
42 views

How does NetDecoder for Tokens work?

I'm trying to understand why I can decode encoded word tokens? ...
9
votes
2answers
270 views

How to inspect the learned ClassifierFunction decision tree model?

Assume I have a ClassifierFunction object learned like this: classifier = Classify[trainSet, Method -> "DecisionTree"] ...
4
votes
1answer
73 views

Predict[] Application Timing [closed]

I trained a Predict and when I look at PredictorInformation it says evaluation time is less than 1 millisecond per example. ...
3
votes
1answer
84 views

How to NetTrain only N batches?

I'd like to train a neural network for only a specified number of batches, that is for only part of an epoch (or TrainingRound). I've tried using the ...