I am currently porting an image processing project from R to C#. At the end of the pipeline there is a binary classifier for which I have used linear discriminant analysis as the input vector consists just of two doubles. In R I have used the lda function from the MASS package, in C# I am using LinearDiscriminantAnalysis class from Accord.NET. The classifier itself works just fine, but apart from the prediction itself I also have to extract a probability or confidence. In MASS posterior probabilities are conveniently part of the return value of the predict.lda function, but in Accord.NET there seems to be no easy way to get probabilities. I have tried computing probabilities from the result of the Scores method in the LinearDiscriminantAnalysis.Pipeline class using the softmax function, but since the scores are in the range between -0.01 and -0.08 the probabilities hover around 50%, which is out of line with the results I get in R and with the fact that the separation achieved with the classifier is excellent. Is there a simple way of computing the posterior probabilities I get in R from the output of the LinearDiscriminantAnalysis.Pipeline classifier?
How do I calculate posterior probabilities from the results of linear discriminant analysis in Accord.NET?
100 Views Asked by Markus At
0
There are 0 best solutions below
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in R
- in R, recovering strings that have been converted to factors with factor()
- How to reinstall pandoc after removing .cabal?
- How do I code a Mixed effects model for abalone growth in Aquaculture nutrition with nested individuals
- How to save t.test result in R to a txt file?
- how to call function from library in formula with R type provider
- geom_bar define border color with different fill colors
- Different outcome using model.matrix for a function in R
- Creating a combination data.table in R
- Force specific interactions in Package 'earth' in R
- Output from recursive function R
- Extract series of observations from dataframe for complete sets of data
- Retrieve path of supplementary data file of developed package
- r package development - own function not visible for opencpu
- Label a dataset according to bins of a histogram
- multiply each columns of a matrix by a vector
Related Questions in PROBABILITY
- How to pick a number based on probability?
- Markov chain: join states in Transition Matrix
- How to get a number of probability distributions "averaged"?
- Prediction of sets
- Fast computation of joint histogram of two images
- Given three boxes X, Y, Z. Let W denote white balls and B denote black balls. The contents of the boxes are : X (2W, 3B) , Y(3W, 1B) , Z(1W, 4B).
- Probability generating function
- How to calculate the entropy of a coin flip
- Number of combinations in a given number array in javascript
- Calculating the probability of incorrect events within independent groups
- Randomly Generating Combinations From Variable Weights
- Python Custom Zipf Number Generator Performing Poorly
- How to programmatically calculate a discrete probabilities
- How to get the probability values from a histogram matlab
- Comparing two methods of choosing random numbers in [-1, +1]
Related Questions in ACCORD.NET
- How to do text classification with Accord.Net?
- How can i train HMM for continuous sign language recognition
- Find partial membership with KMeans clustering algorithm
- Creating a 'blank' Bitmap in Portable Accord.Net
- Accord net multi class SVM training + crossvalidating is very slow
- ToIntArray - Replacement function
- Capturing state as array in QLearning with Accord.net
- Accord.Imaging BagOfVisualWords Object load, deserialization issue from old framework version
- Where is Accord.NET AdaBoost Decide method?
- Accord.NET machine learning on table data to predict next row
- Detecting square in image
- Accord.NET (KNN) using F#: Distance Function
- None of the samples of accord.net handles international parsing of decimals
- How to use MeshGrid method in Accord.Math Matrix Class?
- How do I calculate posterior probabilities from the results of linear discriminant analysis in Accord.NET?
Related Questions in LINEAR-DISCRIMINANT
- What kind of LDA performs 'fitcdiscr' function?
- Possible to force logistic regression or other classifier through specific probability?
- MemoryError when shrinkage=true for LinearDiscriminantAnalysis
- R Error : some group is too small for 'qda'
- Subscript out of bounds while LDA analysis
- How do I calculate posterior probabilities from the results of linear discriminant analysis in Accord.NET?
- Why does lda.coef_ output a different number of coefficient sets to the number of discriminant components?
- Making 3D plot of data with LDA boundary
- sklearn linear and quadratic discriminant analysis: how to interpret the coef_ and intercept term, and why no coef_ for qda
- R-script debugging for lda and predict
- Why in LDA, n-components doesn't works properly?
- Diagonal Quadratic Linear discriminant and Diagonal Linear discriminant analysis in python
- Log-odds decision boundary of multivariate distribution
- Python mean shift clustering of complex-number numpy array
- How to use sklearn RFECV to select the optimal features to pass to a dimensionality reduction step before fitting my estimator
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?