Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Data Science by (17.6k points)

In duration of reading about LinearDiscriminantAnalysis using python , I had got two different methods to implement it which are available here , http://scikit-learn.org/stable/modules/generated/sklearn.discriminant_analysis.LinearDiscriminantAnalysis.html#sklearn.discriminant_analysis.LinearDiscriminantAnalysis

In these method the signature is here ,

sklearn.discriminant_analysis.LinearDiscriminantAnalysis(solver=’svd’, shrinkage=None, priors=None, n_components=None, store_covariance=False, tol=0.0001)

Now again i found one more method with same kind of signature , which is available here ,

http://scikit-learn.org/0.16/modules/generated/sklearn.lda.LDA.html

sklearn.lda.LDA(solver='svd', shrinkage=None, priors=None, n_components=None, store_covariance=False, tol=0.0001)

I just wanted to know that what is difference between both . which method we should use in projects and why ?

1 Answer

0 votes
by (41.4k points)
edited by

You can refer to the documentation mentioned below:

http://scikit-learn.org/stable/modules/generated/sklearn.discriminant_analysis.LinearDiscriminantAnalysis.html

And

http://scikit-learn.org/0.16/modules/generated/sklearn.lda.LDA.html

If you want to learn scikit learn then visit this Scikit Learn Tutorial.

Thinking of getting a master's degree in Data Science? Enroll in the MSc in Data Science in USA!

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

30.4k questions

32.5k answers

500 comments

108k users

Browse Categories

...