Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
164 views

How to do BayesianMinimization in 2D?

Studying a new experimental BayesianMinimization command in 14.0 and following an example from the documentation ...
user64494's user avatar
  • 29.1k
1 vote
0 answers
62 views

How to measure a LearnedDistribution?

I would like to measure the qualities of a LearnedDistribution in general and with regard to test sets. The docs say that it takes an option ValidationSet, but ...
user5601's user avatar
  • 3,820
18 votes
2 answers
1k views

Diffusion probabilistic model in deep generative modeling

Diffusion Models (http://proceedings.mlr.press/v37/sohl-dickstein15.html and https://arxiv.org/abs/2006.11239) are generative models gaining popularity in the community of deep generative modeling, ...
Baoxiang Pan's user avatar
7 votes
1 answer
127 views

How to calculate a PDF of a neural network output?

I have to find the probability density function of the output of an internal layer in a neural network. I wanted to do it using NetMeasurements adding a layer like <...
user40532's user avatar
  • 215
11 votes
1 answer
490 views

Can LearnDistribution learn conditionality?

I would like to apply LearnDistribution to multivariate conditional distributions. Here's a simple artificial example: ...
M.R.'s user avatar
  • 31.8k
3 votes
0 answers
43 views

Assessing your own classifier function with ClassifierMeasurements or NetMeasurements

The functions ClassifierMeasurements and NetMeasurements expect objects that are created through ...
barnold's user avatar
  • 31
0 votes
1 answer
448 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 ...
user355834's user avatar
7 votes
1 answer
156 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 ...
garej's user avatar
  • 4,895
3 votes
1 answer
643 views

How can I normalize a dataset relative to data already given previously?

Some scientific libraries, like Scikit-Learn for Python are able to create normalizing/standardizing functions based on data that is previously given. Looking at the documentation for ...
Jmeeks29ig's user avatar
  • 1,447
2 votes
1 answer
78 views

Confusion about Predict Model NameAge

Predict["NameAge", "Claire"] 8 distribution = Predict["NameAge", "Claire", "Distribution"] dataRaw = distribution[[2]] <...
HyperGroups's user avatar
  • 8,649
0 votes
2 answers
410 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 ...
BBirdsell's user avatar
  • 1,256
0 votes
0 answers
60 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 ...
kgrafton's user avatar
  • 263
6 votes
1 answer
104 views

Predict failed to reproduce result of multiple linear regression

I would like to reproduce the result of multiple linear regression with Predict. In approach 1, I used matrix computation and obtained ...
H42's user avatar
  • 3,509
2 votes
1 answer
221 views

Plotting a precision recall curve?

I would like to plot some PR curves for a few different applications: results on a test set for a (multilabel multiclass) classifier results on a test set for a CBIR function that returns ranked ...
M.R.'s user avatar
  • 31.8k
2 votes
1 answer
80 views

How does DimensionReduce work for EventData?

My question is whether the use of DimensionReduce, for a simple example with Method -> "PrincipalComponentsAnalysis" is the ...
Slepecky Mamut's user avatar
4 votes
1 answer
120 views

ClassificationMeasurements without the Classifier

I only have classifications (a list of inputs and outputs), but not a ClassifierFunction, how can I still use ...
M.R.'s user avatar
  • 31.8k
9 votes
0 answers
394 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 ...
iav's user avatar
  • 2,016
11 votes
1 answer
2k views

Markov Random Field

I look for an efficient way to implement a Pairwise Markov Random Field. I have implemented a homogeneous (i.e., unary potential is a similar function in all nodes, and pairwise potential is a ...
Kiril Danilchenko's user avatar
7 votes
1 answer
772 views

Specifying mean and kernel function in Gaussian Process

As part of the Improved Machine Learning in Mathematica 11, Wolfram advertises the Method "GaussianProcess" which can be used with Predict[] to obtain smooth Gaussian random fields. The screenshot ...
Alexander Erlich's user avatar
1 vote
0 answers
215 views

Cross-entropy calculation

This is a really dumb question, but here goes: is there a way to compute cross-entropy of two probability distributions? There is CrossEntropyLayer[], so ...
Igor Rivin's user avatar
  • 5,134
3 votes
1 answer
96 views

Classifier from Two Distributions

Maybe this is a noob question and maybe it should be on CrossValidated ... Suppose I have two classes {class1, class2} and have their two associated EmpiricalDistribution[]s, pdf1(x) and pdf2(x). ...
Abel Brown's user avatar
5 votes
1 answer
1k views

How to perform convolutions on this complicated pdf?

For a known pdf f[x], I need to calculate integrals over the probability density of the sum of Log[f[x]] over independent samples: $$Q[t,n]\equiv P(\sum_{i=1}^{n}...
Jerry Guern's user avatar
  • 4,642
15 votes
2 answers
1k views

How to do Independent Component Analysis?

The new experimental function in 10.3.1 DimensionReduce[], has the following three options for Method: ...
M.R.'s user avatar
  • 31.8k
1 vote
0 answers
610 views

Uncorrected Versus Corrected Measures of StandardDeviation in PredictorMeasurements' "StandardDeviation"

When using Predict have noticed that the standard deviation of the residuals computed manually is not equal to the output from ...
mikeagibson's user avatar
15 votes
1 answer
474 views

Rapid density estimation and rendering of decision regions

I would like to create an interactive demonstration using Manipulate[] that illustrates a fundamental concept in pattern classification and machine learning. This ...
David G. Stork's user avatar