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
2
votes
0answers
47 views

How to train each layer in a Neural Network so they optimize different loss functions in an adversarial network?

Example NetGraph to illustrate the idea (Input is an online signal with a value between -1 and 1, Noise is Gaussian Centered at 0 and standard deviation 0.1, EvilNet is constrained to output a value ...
1
vote
2answers
111 views

How can I see the predictor function that Mathematica produces?

I am trying some basic machine learning with Mathematica. I am wondering if I can see the function that Mathematica produces for a training set. I give the following example: trainingset = {1 -> 1.3, ...
2
votes
1answer
60 views

Want neural net example of rules {vector->string}

I am using data samples from a multispectral color sensor for color classification as an exercise in beginning to learn about neural networks. I have succeeded with ...
2
votes
1answer
103 views

Help with creating the NetChain

I'm trying to train a network to take 3 integers and give an output = Max/Min. For example {10, 20, 30} -> 3. But I cannot get the setup correctly. I must be missing something. ...
27
votes
2answers
669 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 ...
1
vote
0answers
74 views

Machine Learning / Deep learning using Mathematica? [closed]

I am looking forward to the recommendation to learn ML/DL in Mathematica I know that there are plenty of resources web sites and books, MOOC to learn Machine Learning and Deep Learning mostly in ...
3
votes
2answers
166 views

How to find explicit hyperplane in SupportVectorMachine

I am using the SupportVectorMachine classfier: e.g., (* let me use Linear kernel for simplicity *) ...
0
votes
1answer
25 views

multivariate Gaussian distribution with identity covariance

I want to draw Geometry (or contours) for multivariate Gaussian distribution with identity covariance matrix (or draw decision boundary). How this is possible via Wolfram's online at Here? Please ...
2
votes
1answer
153 views

UtilityFunction for actual and predicted values (machine learning)

In machine learning, the utility function for a classifier assigns the utility value to an actual value v(act) and a predicted value v(pred), typically e.g. in form of ...
4
votes
1answer
109 views

How to use classify to separate lines and circles

I generated lines and circles: ...
33
votes
2answers
2k views

Handwriting recognition with Mathematica

I am trying to teach Mathematica to read my handwriting. Since I don't want to ruin my reputation by showing my own handwriting, I am going to use a font called blackjack. Lets say this is a ...
2
votes
1answer
39 views

Get layer types from Predict[trainingset, Method -> {“NeuralNetwork”}]

I am using the Predict-Function with the NeuralNetwork-method on some training data. But I cannot figure out the characteristics of the NN that is built, especially not the layer types. How can I get ...
0
votes
1answer
46 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
1answer
52 views

Classify does not work with my training set [closed]

I tried using Classify. It gives the wrong answer even for training data. c = Classify[trainingset]; c[13] ...
1
vote
1answer
73 views

Mathematica classify NeuralNetwork default parameters

We have trained a Neural Network on Mathemetica classify with one hidden layer and received good classification results. We would like to know the default parameters beside it has one hidden layer? ...
5
votes
1answer
396 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). ...
7
votes
1answer
574 views

Train your own CycleGAN style translator

I have a set of images (a few hundred) that represent a certain style and I would like to train an unpaired image to image translator with CycleGAN. I'm looking for a tutorial on how one would do ...
1
vote
1answer
58 views

Recognizing letters in grid with TextRecognize

Here is the test image: You might recognize this as a Boggle board. I want to translate the image into a 4x4 array of letters. Not quite sure how to deal with rotated letters and ambiguous letters ...
3
votes
1answer
69 views

Fitted equation with Predict

Is there a way to know the fitted curved from the function Predict when choosing the linear regression method. I am using this data: ...
4
votes
1answer
79 views

How can I plot this one-dimensional Self Organizing (Kohonen) Map?

Mathematica used to have a package called NeuralNetworks that is not currently working. With that package, you could create a Kohonen or Self Organizing Map (https://en.wikipedia.org/wiki/Self-...
4
votes
1answer
75 views

Detecting Lines in Data

I have some data representing a vaguely periodic signal, here is a sample ...
1
vote
0answers
67 views

Create New Type of Layer For Neural Network

I'm doing some work exploring modelling neural networks in which each neuron could represent a different type of physical system. What I want to do is, I think, quite different to what an ordinary ...
1
vote
0answers
54 views

What are all the machine learning methods that can be used for Predict?

When I'm writing code for the Predict function, it allows me to choose what method I want to use. There are 7 options available from the drop-down after I type in <...
3
votes
1answer
135 views

Save neural network after training

I've written quite a few projects that involve training a neural network through the Classify and Predict functions, but every ...
4
votes
0answers
121 views

Probem of Classify's Tree Method in Batch Predict

$Version 12.1.0 for Microsoft Windows (64-bit) (March 14, 2020) ...
7
votes
1answer
155 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
2answers
2k 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 ...
2
votes
1answer
113 views

LogitModelFit crashes with large learning set

I am using LogitModelFit to implement a classification system for handwritten digits, based on the MNIST ExampleData set. The ...
0
votes
0answers
57 views

Neural network symbolic inputs and weights

If I create a neural network like, for example, so: ...
0
votes
0answers
50 views

Interpolated Hyperbolic tangent as a layer of a neural network

It is necessary to specify piecewise linear interpolation of the hyperbolic tangent. And substitute this function as a layer of a neural network. I tried a lot of things, please suggest your options.) ...
0
votes
0answers
58 views

Network training error InvalidJSON

I want to insert piecewise linear interpolation of the hyperbolic tangent into the neural network. An error occurs at the stage of training the network. trainingData: ...
19
votes
4answers
406 views

Find best region to put text onto image

Given an image upon which you want to inset text, the question arises: What is the best sub-region to place text? For example, given a background image I want to find the rectangle in the image (...
3
votes
1answer
222 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? ...
14
votes
1answer
307 views

Advanced usage of BayesianMaximization?

There’s an example in the docs for BayesianMaximization for optimizing two suboptions of a classifier with a fixed method. I would like to optimize over multiple options for Method and their various ...
4
votes
0answers
79 views

Seq2Seq RNN with an AttentionLayer

In many Sequence to Sequence machine learning tasks, an Attention Mechanism is incorporated. Before Transformer Networks, introduced in the paper: Attention Is All You Need, mainly RNNs were used to ...
1
vote
0answers
21 views

Retrain an existing ClassifierFunction with new data

Classify[] and Predict[] generate nice ClassifierFunnction, but it is not clear to me whether these can be retrained on new data, without the data originally used for training.
2
votes
1answer
2k views

GPU support on latest MacBook Pro, especially for deep learning

I'm thinking about getting some new top of the line computer hardware, specifically a MacBook Pro from Apple. These have AMD Radeon Pro 5500M GPUs, which while a bit slower than something like an ...
12
votes
1answer
314 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
55 views

Clarity on Classify's ClassPriors option

I'm looking for clarity on Classify's ClassPriors option, and I've listed some specific questions below. According to the documentation: ClassPriors is an option ...
0
votes
0answers
55 views

Unable to replicate Predict/NeuralNetwork example from Help Pages

I am trying to replicate an example right out of the help manual (ref/method/NeuralNetwork). This example compares the convolutional NN versus a fully-connected NN....
69
votes
8answers
12k 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, ...
4
votes
0answers
89 views

Neural network for a simple game?

I'm taking a class that is based on the Mathematica coding language, and we must do a 6-week final project. I am considering coding a neural network for a simple game like 2048, pacman, snake, etc. ...
9
votes
2answers
264 views

Can I use Mathematica to generate candle scents?

I found this blog (which is highly entertaining). It has an interesting post where the author uses the GPT-2 neuro-network with candle scent training data to generate new candle scents. The AI comes ...
2
votes
1answer
64 views

Using Predict to fill in missing data

I am attempting to use Predict[] to fill in the missing data in the dataset below; ...
9
votes
1answer
177 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?
3
votes
2answers
149 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?
21
votes
0answers
735 views

How to ImageRestyle high-res images?

I’m running v12 now and ImageRestyle[] crashes for me on an image of size 1600 x 1200 pixels. All the examples in the documentation use images around 500 x 500 or ...
14
votes
0answers
539 views

How to plug holes in an Image (with partial convolutions)?

NVIDIA recently published a new way to reconstruct images with holes. They use a new type of convolutional layer which is described in the paper Image Inpainting for Irregular Holes Using Partial ...
2
votes
0answers
346 views

How to generate names with a GAN?

I'd like a tutorial for text generation using GANs, specifically for names. I have a list of company names and would like the network to generate novel ones. This is one of the only few examples of ...
48
votes
3answers
3k views

Generalized Backpropagation for Neural Networks (e.g. DeepDream)

Is there currently any way to abuse NetTrain to maximize an arbitrary cost/utility -function in some hidden layer and/or even modify the input to increase neuron ...

1
2 3 4 5
11