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
1answer
102 views

Using NetTrain with HDF5?

I have some nicely formatted training data in HDF5 files, i.e. the images and labels are serialized within the H5 file as groups and datasets. AFAIK NetTrain only ...
4
votes
1answer
61 views

How to restore trained classifier/predictor from persistent storage?

Mathematica 11.3 has the ability to store trained classifier/predictor in the notebook. But how can we restore it in the new session? Create notebook and measure it's size: ...
0
votes
0answers
40 views

Whats the best way to classify data for Fall detector device?

I would like to know what's the best way or the function to use to classify 2 files for a fall detection device. my first file contains only TDL (Normal Movements) values and the second contains only (...
8
votes
1answer
143 views

How to use a remote windows laptop for NetTrain?

I have a windows 10 laptop (with a gpu) at home and a macbook at my office, both with v11.3. What are steps to use the windows machine remotely for training? That is, I want to launch and run ...
2
votes
1answer
82 views

Error using accuracy and ConfusionMatrixPlot of ClassifierMeasurements

EDIT: Here is the complete code that i have used: ...
3
votes
0answers
142 views

Image Generator with a Neural Network (CIFAR-10)

As some of you may know, CIFAR-10 is a data base which has 60,000 images (which are 32x32 in size) of 10 different categories (airplane, dog, cat, frog, deer, bird, horse, ship, automobile and truck). ...
2
votes
2answers
105 views

ElementwiseLayer with Piecewise?

I need a specific custom activation function; how can I implement it with Piecewise? This is what I've tried (using the recommendation from this question): ...
3
votes
1answer
67 views

Using NetGraph as FeatureExtractor?

I'd like to compute FeatureDistance between two images with a NetGraph: rs = NetModel["ResNet-152 Trained on ImageNet Competition Data"]; fe = NetTake[rs, {1, -3}] ...
18
votes
0answers
150 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,...
3
votes
0answers
82 views

How to perform unsupervised texture classification?

Consider a texture mixture (img) from Brodatz. I want to classify the five different texture patterns and segment the corresponding regions. Following this, I ...
9
votes
2answers
357 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, ...
2
votes
1answer
50 views

How does DimensionReduce work for EventData?

My question is whether the use of DimensionReduce, for a simple example with Method -> "PrincipalComponentsAnalysis" is the ...
4
votes
0answers
236 views

Using Machine Learning techniques for text-analysis

I am analysing a bunch of tweets and I want to understand which political party the authors support. Let say, for example that I have five parties labelled by a number: ...
0
votes
0answers
64 views

Training speed of NetTrain on GPU

I have a model with NetTrain that works fine. However, as I increase the amount of training data, the number of inputs per second to my GPU drops very, very substantially. In fact, when I include all ...
3
votes
0answers
34 views

NetTrain doesn't accept sparse input?

The following code fails to execute: ...
0
votes
0answers
43 views

Neural Network and Enforce Positive Vector

I am trying to implement a neural network where I output a vector of 5 parameters each of which I know to be positive. I have code that works where I end up with an `"Output" -> 5.' However, after ...
0
votes
0answers
94 views

Change Loss Function in NetTrain

For a similar problem, I am trying to modify the code here (https://www.wolfram.com/language/11/image-and-signal-processing/image-recognition-using-deep-learning.html?product=mathematica) so that the ...
2
votes
0answers
73 views

Significant performance differences with “Predict” function between v10 and v11

So I am very new to ML. I tried running this code in Mathematica 10.4.1.0 ...
0
votes
0answers
39 views

Load tiles from folders for neural network

I would like to initialize a net with some images/tiles classified like this: ...
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 ...
6
votes
0answers
136 views

How “good” is the new Classify and how does it choose its method

I recently read the blog regarding data-science Wolfram Blog and then checked the quality of the new Classify. I have a bunch of slides that I show to my students ...
2
votes
0answers
67 views

Specifying feature types for BayesianMinimization

I'd like to use Bayesian optimization over a pair of features, one nominal, one numerical. If I do something like this: ...
5
votes
0answers
99 views

What's BayesianMinimization and related functions based on?

Is it specified anywhere what the backend is for the Bayesian optimization related functionality in Mathematica v11? I'm specifically referring to the Bayesian* ...
2
votes
0answers
69 views

Apply a classifier to a column in excel and export side by side result? [closed]

I'm relatively new to using Mathematica, and I was able to create a Classifier from a training set of about 3,000 pairs of non-numerical text strings. I have my test set of about 20,000 records in an ...
2
votes
0answers
52 views

FeatureSpacePlot freaks out with LatentSemanticAnalysis on words

I'm playing with FeatureSpacePlot on a collection of words: ...
2
votes
1answer
118 views

Can Predict return non-numerical values?

I just started working with the Mathematica machine learning package. When I use Predict, I can predict only numerical values like ...
1
vote
0answers
96 views

Machine Learning Predict Precision

I have this code p = Predict[{1 -> 123456789123456789, 3 -> 987654321987654321}] values are big, more than 15 digits (standard machine precision). when I ...
2
votes
0answers
59 views

ClusterClassify and FeatureTypes

I have a dataset that I want to classify in clusters. All values are numbers. For some variables, the values can represent a real measure (a distance, a weight...) but for some other variables, the ...
6
votes
1answer
3k views

How to train Sequence-to-sequence autoencoder using LSTM?

According Keras blog,I find the Seq2Seq auto-encoder. But it didn't give any example only code. To build a LSTM-based autoencoder, first use a LSTM encoder to turn your input sequences into a ...
3
votes
1answer
230 views

Machine learning classify function with audio and set of pictures

As I see from documentation, Classify function supports Audio and Pictures as input, video is not supported unfortunately :( Will it work if I try to use classify for mixed data input like ...
3
votes
1answer
206 views

Weighted Data within Classify and Predict (or NetTrain)

I posed this on Wolfram Community about a week ago and no one there seems to have a good solution, so I will try it here. (It may well be that this is an issue for Mathematica developers and that ...
1
vote
0answers
40 views

proper use of PredictorMeasurements[]

I've been playing around with Predict[] with multi-dimensional datasets and, for small training sets anyway, things seem to work correctly. For example, ...
3
votes
3answers
134 views

One Hot Encode columns with categorical data

I have a couple of survey datasets that I am loading into Mathematica to do behavioral clustering. I have columns of responses (Strings) where the users was given a fixed set of responses. 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 ...
4
votes
1answer
278 views

Constructing graph of points in 3D with edges weighted by distance

I have a set of data in $\mathbf{R}^3$ for which I want to construct a $k$-nearest-neighbors graph whose edges are weighted by the distance of each point to its neighbors. Is there a way to do this ...
7
votes
2answers
127 views

Impact of Linkage and DistanceFunction on Agglomerate clustering

I'm using Agglomerate function to find clusters of my experimental points. I have about 20 points with 10 parameters each. It seems it works fine, but there are plenty of Linkage and DistanceFunction ...
1
vote
0answers
128 views

How to train a network using out of core training when data have different length?

I posted How to use Mathematica to train a network Using out of core classification? some month ago. The network receive some fixed-length input and produce another fixed-length output,this is How to ...
4
votes
0answers
80 views

Can I use Classify's model without internet or without FrontEnd?

Question1: without Internet When I'm using a model trained by Classify in an Machine/Linux without internet, I got the information: ...
3
votes
1answer
208 views

Colorizing greyscale images?

I'm looking for a trained colorization model (wlnet file) that is available to download and immediate use in 11.2. Checking the 21 currently existing NetModels: ...
4
votes
0answers
116 views

How to train further in Predict?

Training further means we can get much smaller loss in the training set,and maybe get the smaller loss in the validation set,so this is useful. For example ...
25
votes
2answers
485 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 explore. ...
3
votes
0answers
383 views

Why “Inception V3 Trained on ImageNet Competition Data” have 1001 outputs?

There are 6 pre-trained models on ImageNet in NetModel. ...
11
votes
1answer
501 views

How to use an external GPU to train neural networks in Mathematica?

Taking steps in the uncharted territories of eGPUs, I have installed an NVIDIA GeForce Titan Xp GPU on an eGPU enclosure (Mantiz MZ-02) and have connected it to my laptop (HP Spectre x360 - 15-bl075nr ...
4
votes
1answer
94 views

ClassificationMeasurements without the Classifier

I only have classifications (a list of inputs and outputs), but not a ClassifierFunction, how can I still use ...
14
votes
0answers
438 views

How to ImageRestyle high-res images?

Running v11.2 on Ubuntu 16, ImageRestyle[] crashes for me on an image of size 1600 x 1200 pixels. All the examples in the documentation use images around 500 x ...
0
votes
2answers
113 views

How to train a net for recognize the number

Documentation have some examples about MNIST.But those image have same image.I make some trained data ...
2
votes
0answers
521 views

Stochastic Gradient Descent with constraints

Let's say we have a convex objective function $f(\textbf{x})$, with $\textbf{x}\in R^n$ which we want to minimise under a set of constraints. The problem is that calculating $f$ exactly is not ...
9
votes
0answers
156 views

How to extract tree parameters from RandomForest?

I want to extract the parameters of a decision tree from the object estimated by Classify[]. It seems that parameters of the estimated Classifier are available in the "Models" property. It is ...
8
votes
3answers
593 views

Example of NetChain running in MXNet cause Error

Cross post here Problem remains in Mathematica 11.2 First defining the net ...