Stack Exchange Network

Stack Exchange network consists of 174 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.

1
vote
0answers
20 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: ...
4
votes
1answer
102 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
38 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 ...
60
votes
8answers
8k 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
26 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
63 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
14 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 ...
-2
votes
0answers
64 views

problem image recognition imported [closed]

When I execute the code, after inserting the photo, it does not tell me what breed is the dog. Can someone help me? This is the code: ...
0
votes
0answers
23 views

Object unavailable - wolfram cloud [closed]

I developed a code for the creation of a microsite, at the beginning, pressing on the link that gave me output, redirected me to the microsite, now you open a web page with the following message: ...
6
votes
1answer
378 views

Fashion segmentation with a neural net?

I would like to train a network that can parse clothing: Does anyone know of a fashion segmentation network with or without pre-trained weights available that I can use in Mathematica? Update: I ...
0
votes
0answers
54 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
31 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 ...
1
vote
1answer
43 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
104 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
81 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
65 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
62 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
47 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 ...
6
votes
2answers
928 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 ...
6
votes
1answer
86 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
49 views

Connect to DeepMind Control Suite?

Has anyone found or built a package or library to connect MMA to the reinforcement suite from DeepMind?
2
votes
0answers
36 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
81 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
1k 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 ...
3
votes
1answer
172 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 ...
3
votes
1answer
99 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 ...
12
votes
1answer
216 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
109 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
50 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
50 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
459 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
52 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
49 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
70 views

Why does this NetTrain example fail?

I have some training data of the form {{x, y}, bool}, e.g. ...
9
votes
1answer
124 views
2
votes
1answer
82 views
7
votes
1answer
84 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. ...
10
votes
1answer
216 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
90 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
65 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 ...
9
votes
2answers
356 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
56 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
47 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
1answer
117 views

Custom Loss Layer to ignore ordering

I am trying to train a net that takes a sequence of numbers and gives a sequence of numbers. For example: ...
3
votes
0answers
55 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
267 views

Mathematica Machine Learning (Method “NeuralNetwork”)

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

Regarding Gaussian Process in Predict function

The following code is exactly copied from the documentation on Predict using Gaussian Process. ...
14
votes
1answer
680 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
143 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
119 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 ...