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
22 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
39 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
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 ...
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: ...
-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
32 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 ...
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 ...
1
vote
1answer
46 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 ...
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
66 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
63 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
1answer
87 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 ...
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 ...
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 ...
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

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

Bug introduced in 10.3 or earlier and persisting through 11.3 ...
3
votes
1answer
66 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 ...
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 ...
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
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 ...
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, ...
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 ...
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. ...
3
votes
0answers
77 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
30 views

How does NetDecoder for Tokens work?

I'm trying to understand why I can decode encoded word tokens? ...
10
votes
1answer
219 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 ...
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
2answers
106 views

How to inspect the learned ClassifierFunction decision tree model?

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

How to modify NetTrain's error calculation

I'm training a neural network at the moment on an image segmentation problem (that is, I have an images and masks, and I am trying to train the network to generate its own masks from other images. I'...
0
votes
0answers
25 views

How to do surgery on FeatureExtraction on text?

I have a text data, which is a list of different sentences. I used below for example:- ...
8
votes
0answers
246 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 ...
7
votes
1answer
228 views

How to recreate this 3D plot?

In other languages, one can make a FeaturePlot3D-esque graphics where the inset images look realistically three dimensional. Meaning that they are smaller when farther away (and also hazier). So how ...
1
vote
0answers
30 views

How to ask FindClusters to return the loss function value in the output?

I have some data points pts as below:- pts = BlockRandom[SeedRandom[123]; RandomReal[1, {100, 2}]]; Now I want to separate ...
0
votes
0answers
26 views

How to change the formulae of FeatureExtraction?

I have a feature extraction function fe, which gives me n/0.816497 as the output of fe[{1}]:- ...
7
votes
1answer
329 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. ...
3
votes
1answer
85 views

How to reconstruct the result of FeatureExtraction?

For the below code for Mathematica 11.3, I got {-0.153792, 1., 1.} as output. ...
0
votes
1answer
77 views

Problem of Low Accuracy of NeuralNetwork Method in Classify MNIST 11.3

The accuracy is extremely low... even after changing a lot of options of Method... Other methods' result is fine and normal, 0.80 accuracy like LogisticRegression. ...
4
votes
1answer
105 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. ...
2
votes
0answers
54 views

Why is the output of the Embedding layer so non-linear?

I have 2 nets, i.e. net1 (i.e. LinearLayer) and net2 (i.e. ...
2
votes
1answer
103 views

How to generate a training set in an automatic way?

This question is related to my previous item where arithmetic with machine learning was considered. The results of the Predict command were not good because of a ...