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?
102 views Asked by Markus At
0
There are 0 answers
Related Questions in C#
- Add additional fields to Linq group by
- couldn't copy pdb file to another directory while consuming wcf web service
- Why are the aliases for string and object in lowercase?
- WPF MessageBox Cancel checkbox check
- Resolve object using DI container with object instance
- Creating a parametrized field name for a SELECT clause
- Does compiler optimize operation on const variable and literal const number?
- Get data from one form to another form in C#
- Writing/Overwriting to specific XML file from ASP.NET code behind
- Deleting Orphans with Fluent NHibernate
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
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
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
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
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?
Popular Tags
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)