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
1
vote
1answer
49 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
63 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: ...
3
votes
1answer
61 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
69 views

Detecting Lines in Data

I have some data representing a vaguely periodic signal, here is a sample ...
1
vote
0answers
55 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
52 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
76 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 ...
2
votes
1answer
135 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
0answers
112 views

Probem of Classify's Tree Method in Batch Predict

$Version 12.1.0 for Microsoft Windows (64-bit) (March 14, 2020) ...
6
votes
1answer
141 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 ...
1
vote
1answer
61 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? ...
0
votes
0answers
48 views

Neural network symbolic inputs and weights

If I create a neural network like, for example, so: ...
5
votes
1answer
355 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). ...
0
votes
0answers
47 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
56 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: ...
18
votes
4answers
382 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
153 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
300 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
64 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
18 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
869 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
305 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
53 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
54 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....
68
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
86 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
256 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
59 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
154 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
146 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
720 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
525 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
283 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 ...
4
votes
0answers
50 views

Is there a way to get the decision trees used by machine learning methods like `RandomForest`?

I was looking at a tutorial of SimFin, a new German-based financial data provider. There is a nice example of machine learning using sklearn in python. The package ...
4
votes
1answer
88 views

Adding Noise in Neural Net via ElementwiseLayer

I am trying to add noise to a neural net to train a denoising autoencoder. I don't want to pre-calculate the noisy data. Rather, I'd like the noise be applied via a function using the ElementwiseLayer....
1
vote
0answers
23 views

Training with GPU and tuning parameters with ParallelTable

We intend to train a neural network. It has a hyperparameter, such as the learning rate. We want to compare the training results of different hyperparameters. Our computer has two multi-core CPUs and ...
2
votes
2answers
83 views

Usage and meaning of “ProbabilityHistogram”

When doing a classification one can determine the ClassifierMeasurements to get Information about the classifier. I now wanted to get a histogram of the computed probabilities for a classifier. Maybe ...
0
votes
2answers
86 views

What's wrong with FindFormula after I set the value of x from 100 to 1000?

The first code here. x = 100; list4 = Table[i^2, {i, 3, x}]; list5 = Table[3 i, {i, 3, x}]; Transpose[{list4, list5}] // FindFormula Output: ...
6
votes
0answers
143 views

How can I prevent errors with ReplicateLayer[]?

I am trying to build a NetGraph[] that takes input of the form {{0.6},{0.6},...,{0.8},{0.8}} and multiplies the last sequence ...
8
votes
2answers
322 views

Resources to learn about Neural Nets using Mathematica?

I'm interested in learning about Neural Nets and I'd really like my instruction to be in Mathematica if possible. For instance, a tutorial like this one: http://neuralnetworksanddeeplearning.com/...
2
votes
0answers
55 views

Fuzzy Logic and Neural Networks

Is anyone working on building a Fuzzy Logic module that can be used for the output of Neural Networks? Thank You Michel
1
vote
0answers
119 views

is the code of this reinforcement learning example correct?

I am trying to learn reinforcement learning from an article on Wolfram.com, and after several days I still cannot quite get everything right. Now I wonder about the correctness of a piece of code ...
2
votes
1answer
63 views

How can I use ThreadingLayer to perform operations with layers of different dimmensions?

Is there a way that I can achieve subtraction between a scalar and a vector within NetGraph[], similar to what happens when I perform ...
3
votes
1answer
70 views

Controlling learning rate decay or cyclic learning rate in Mathematica's neural nets

I am using Mathematica's NetTrain[] function for training neural nets. There is a way to set the learning rate (LearningRate and ...
7
votes
1answer
76 views

Logistic Regression classifier in Versions 12 vs 11.3

There is a mysterious "LogisticRegression" method in MMA, which could be applied as a substitution for missing multinomial logit functionality. In version 11.3 I had the following simple 3-category ...
14
votes
3answers
415 views

Importing a grid of numbers from an image (sudoku like)

Can anyone see a way to import a grid of numbers from http://www.mit.edu/~puzzle/2019/puzzle/lantern_festival.html into Mathematica? TextRecognize doesn't seem ...
2
votes
1answer
133 views

Rounding the output Vector of a Neural Network layer to prepare it for the next layer

I am attempting to Round up the output Vector of a Neural Network layer to prepare it for the next layer Ex. Layer output {.1.,2.2,3.3} and I need it to be a Vector of Integers for the next layer. I ...

1
2 3 4 5
11