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?
103 Views Asked by Markus At
0
There are 0 best solutions below
Related Questions in C#
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in R
- How to make an R Shiny app with big data?
- How do I keep only specific rows based on whether a column has a specific value?
- Likert scale study - ordinal regression model
- Extract a table/matrix from R into Excel with same colors and stle
- How can I solve non-conformable arguments in R netmeta::discomb (Error in B.matrix %*% C.matrix)?
- Can raw means and estimated marginal means be the same ? And when?
- Understanding accumulate function when .dir is set to "backwards"
- Error in if (nrow(peaks) > 0) { : argument is of length zero Calls: CopywriteR ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> Execution ha
- How to increase quality of mathjax output?
- Convert the time intervals to equal hours and fill in the value column
- How to run an R function getpoints() from IPDfromKM package in an R shiny app which in R pops up a plot that utilizes clicks to capture coordinates?
- Replace NA in list of dfs in certain columns and under certain conditions
- R and text on Cyrillic
- The ts() function in R is returning the correct start and frequency but not end value which is 1 and not 179
- TROUBLING with the "DROP_NA" Function
Related Questions in PROBABILITY
- How to evaluate the probability of a range in R?
- shortest path algorithm with expected cost
- How to modify probabilities in lotery? - Python
- Coin throw probability on a chessboard square
- Group dataframe and sample n rows with equal probability between groups
- Coupon collector’s test (for testing sequences)
- hmmlearn MultinomialHMM emissionprob_ size
- Calculating Conditional Distributions using Copula in R
- What is the CRC32 Collision probability of All possible ASCII strings of variable length ranging from 1 to 7
- Why do the samplers not behave the same when sampled on there own?
- Visualize a vector of booleans as an image grid of symbols with different colors in python
- Content-Based Filtering for Tagged Posts
- Python - Writing code for probability of choosing 7 pairs in a dominoes game?
- Inverse probability of treatment weighting (IPTW) and crr() or FGR() in R
- Reverse engineering values for mlogit logsum function applied to a choice model
Related Questions in ACCORD.NET
- How to change the distance calculation between two nodes in an Accord.Collections KDTree?
- How do I calculate posterior probabilities from the results of linear discriminant analysis in Accord.NET?
- Reduce an embedding's dimensions using PCA
- Overcoming Unity IL2CPP compiler issues ("error: unknown type name")
- How do I use Accord.Video.VFM with System.Drawing.Bitmap?
- Screen recorder stopped when another process exists
- Accord .Net for iOS in Unity 3D v2021.3.1
- Accord.NET: Error - There are no samples for class label 0
- C# project in Visual Studio Code is missing the Accord.targets 3.8.0 package
- Accord support for DirectShow
- In Accord.net, why does ResilientBackpropagationLearning.RunEpoch throw an IndexOutOfRangeException?
- Create a neural network to solve the regression problem on the Boston Housing dataset using Accord.net
- how to resolve Accord.Video.FFMPEG error Rational is defined in an assembly that is not referenced
- Accord.Video.FFMPEG getting error for long video
- How to read video frame by frame in C# .NET Framework 4.8?
Related Questions in LINEAR-DISCRIMINANT
- Multiclass classfication on small imbalanced data
- How to obtain additional data from a Discriminant Function Analysis?
- R-script debugging for lda and predict
- sklearn linear and quadratic discriminant analysis: how to interpret the coef_ and intercept term, and why no coef_ for qda
- 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
- How do I calculate posterior probabilities from the results of linear discriminant analysis in Accord.NET?
- Why are linear discriminant analysis in SPSS and Python not giving me the same results for coefficients?
- Python tool for applying Mixture Discriminant Analysis (MDA) resp. Flexible Discriminant Analyis (FDA) instead of Linear Discriminant Analysis (LDA)
- Add Linear Discriminant Analysis Line and Show Equation on ggplot
- Data points in ggplot of lda seem inverted
- Why is the confusion matrix and test error the same despite the LDA being done different datasets
- R: How do I remove the sub (error) label in partimat plot from klaR package
- Most important variables for finding group membership
- How can I plot a histogram on rotated axis in projection space (LDA)
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 # Hahtags
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?