Skip to main content

All Questions

Filter by
Sorted by
Tagged with
3 votes
0 answers
199 views

Bug in the classification optimization algorithm for large data sets

I believe that I encountered a bug in Mathematica 12. The Classify[] function throws errors when simultaneously: The training set has significantly above $10^5$ ...
0 votes
0 answers
103 views

Predict the form of a function using machine learning

I have a function F[x_] := x^3/(e^x -1) I generate many data points i = 1,2,3,4, ... ...
3 votes
1 answer
434 views

How do I create my own activation function in NetChain in Mathematica?

I want to have my own activation function, say a quadratic function, instead of Tanh, or Sigmoid etc. in Mathematica. How do I insert it in NetChain? e.g., how will the below code look for a new ...
5 votes
0 answers
145 views

Can I extract symbolic expression of neural network loss function?

Once we create a neural network with NetChain in Mathematica, can we extract the loss function in the symbolic form for Mathematica to play with symbolic manipulations using Mathematica's built-in ...
2 votes
1 answer
292 views

Can I use machine learning to predict a functions behavior?

I want to use this as training data (1, sin(x)), (2, sin(2x)), (3, sin(3x)) and answer the question what is (20, ?). I ...
1 vote
0 answers
202 views

Not able to use ImageIdentify

When I tried to use ImageIdentify (Trial version of Mathematica 12) on an image I clicked on my mobile I got this error message ImageIdentify::interr: An internal error occurred: An unexpected error ...
7 votes
0 answers
159 views

How to extend ImageCases?

I was very excited to see ImageCases being documented in version 12. But I immediately desired a mechanism for adding more entities to ...
7 votes
1 answer
195 views

Bug in EmbeddingLayer?

...
6 votes
1 answer
283 views

How to load trained RNN in MXNet?

No problems with CNN ...
6 votes
1 answer
340 views

Named entity recognition

How can one process natural language (English) to extract named entities (aka NER)? Or at least, entities which can be mapped to a Mathematica Entity. Note that trying to map entities via simple ...
8 votes
2 answers
172 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. ...
0 votes
1 answer
487 views

NetGraph/Model for BERT?

Does anyone know of a way to get the BERT model working for word embeddings in Mathematica? Doesn’t seem to be available on GitHub or the Wolfram Net Repo...
0 votes
0 answers
128 views

Creating a prediction/distribution based on several years of data

So I have several years of data from a survey. For each year I've used FindDistribution and Predict to see if I can fit the data. Here's one example Where I used FindDistribution to get ...
0 votes
2 answers
411 views

How to Sample from a Probability Density Function

I've done a pretty good job working my way through and understanding the various ways to calculate the differences between probability distributions through Kullback Leibler Divergence and was happy ...
4 votes
1 answer
209 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 ...
1 vote
1 answer
97 views

What is the meaning of "Number of features" returned by ClassifierInformation?

I have set of 13 dimensional vectors split into three classes, and I'm building a classifier using supervised learning. After running c = Classify[..] on ...
3 votes
0 answers
295 views

Physics based predictive model using Predict

Summary: The first order response of a block of metal quenching in a fluid (or a cold block heating in a warm environment) is well known. I am trying to create a physics based predictive model for ...
4 votes
0 answers
383 views

Visualizing and Understanding CNN with Mathematica

The famous 2013 paper from Zeiler and Fergus "Visualizing and Understanding Convolutional Networks" proposes a method to understand the behavior of CNN using one (or more) DeConv networks coupled with ...
4 votes
1 answer
187 views

Pulling the principal components out of a DimensionReducerFunction?

Suppose I perform dimension reduction using PCA: ...
3 votes
2 answers
1k views

Answer multiple choice questions

FindTextualAnswer isn't working for me here: ...
0 votes
0 answers
42 views

Can I use inbuilt machine learning to guess the n-th term of the inverse series?

Consider this concrete example. InverseSeries[ Series[ PolyLog[s, z], {z, 0, 10}]] From this output is there a way of writing down a formula for the n-th term? ...
1 vote
1 answer
384 views

One-hot encode from Integer Encoding

I have several data sets that I am working with in Mathematica. There are several columns of data but I am going through it one column at a time. Now I have some columns where respondents were able to ...
1 vote
0 answers
149 views

Cluster analysis with constraints on number of clusters and their abundance

How to perform cluster analysis in a set: With the number of clusters bounded but not specified, e.g. $k\in[3,5]$ With a bounded abundance of clusters (the number of elements in each of the clusters),...
2 votes
1 answer
133 views

Oversampling of data set for class balancing

We have a set of $n$ three-dimensional vectors: {{x_1, y_1, z_1}, {x_2, y_2, z_2}, {x_3, y_3, z_3}, ..., {x_n, y_n, z_n}} They represent the results of $n$ ...
1 vote
2 answers
66 views

Extracting numerical value from sentiment classifier

I have this code, and want to extract out just the number. I tried QuantityMagnitude and a transformation rule. ...
3 votes
3 answers
266 views

How can I test my machine learning model on a machine with no Mathematica?

I need to test my machine learning models that I’ve built using Predict on 100,000 observations. The problem is that the machine where the testing is done doesn’t ...
1 vote
1 answer
113 views

Error NetTrain::invencin: Invalid input when training a neural network [closed]

I've build a Deep neural network with various variables: ...
9 votes
1 answer
999 views

How do I implement masked Softmax?

Consider: input = {1, 2, 3}; mask = {1, 0, 1} Classic Softmax: SoftmaxLayer[]@input {0.0900306, 0.244728, 0.665241} ...
4 votes
0 answers
99 views

How to implement external memory for the "memory augmented neural network"?

I am trying to implement the memory-augmented neural network using MMA 11.3. The memory-augmented neural network in based on the paper here. There are implementations using ...
2 votes
1 answer
110 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, ...
1 vote
1 answer
257 views

How to get function of "GaussianProcess" prediction?

I am a new user of Wolfram Mathematica. I need your help. Let's say I have three variables: x, y, z. I want to calculate the "z" depending on x, and y. In other words, I want to find a function for z ...
1 vote
0 answers
76 views

Loading machine learning library without enabling my discrete Nvidia GPU? [closed]

I've asked a similar question [here]. I cannot use some of the machine learning modules without enabling my discrete Nvidia GPU. My setup: Ubuntu 16.04 on a Dell XPS-15 9560 Intel i7 CPU with 8-...
3 votes
0 answers
208 views

The hyper-parameters tuning

I am looking for an automatic tool to hyperparameter tuning. Something similar to Random Search Cross Validation in Scikit-Learn. Note: I used ValidationSet options,...
8 votes
0 answers
156 views

Slow down training many neural networks (Bug?)

I am working on something in which I need to train a neural network many times with slightly different training data. I noticed that after many training runs the input rate had dropped significantly. ...
1 vote
0 answers
116 views

"Learning" to parameterize Hermitian matrices with a basis using neural networks

I'm interested in using neural networks to "learn" how to write down Hermitian matrices, specifically those which are defined over spaces with a specific tensor product structure. The simplest example ...
1 vote
1 answer
166 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: ...
2 votes
0 answers
90 views

Confusing errors using predict to map between matrices

I'm messing around with the new features involving machine learning in Mathematica 11, and one easy thing to try is to make a machine learn the matrix exponential function. The first silly idea I had ...
0 votes
1 answer
80 views

Which built-in DistanceFunction options does Mathematica offer? [closed]

The documentation is not specific at all about which built-in distance functions are implemented in Mathematica: https://reference.wolfram.com/language/ref/DistanceFunction.html For instance, I ...
4 votes
1 answer
160 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
0 answers
135 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
0 answers
48 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
0 answers
195 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
0 answers
103 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 ...
2 votes
1 answer
112 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
1 answer
206 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
1 answer
258 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
1 answer
276 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 ...
4 votes
0 answers
898 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
1 answer
126 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 ...
8 votes
2 answers
2k 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 ...

1
5 6
7
8 9
14