Use check_finite=False in discriminant analysis (#18909)
Use check_finite=False in discriminant analysis (#18909)

Co-authored-by: Guillaume Lemaitre <e5e78d384e205244ed69377c80930de68a2732ec@gmail.com>
Co-authored-by: Jérémie du Boisberranger <e3f2e912120bf2b3b91d0d3b53109753fb66c284@users.noreply.github.com>
jakirkham/scikit-learn,lesteve/scikit-learn,espg/scikit-learn,anntzer/scikit-learn,scikit-learn/scikit-learn,manhhomienbienthuy/scikit-learn,vinayak-mehta/scikit-learn,betatim/scikit-learn,saiwing-yeung/scikit-learn,betatim/scikit-learn,TomDLT/scikit-learn,manhhomienbienthuy/scikit-learn,TomDLT/scikit-learn,manhhomienbienthuy/scikit-learn,ivannz/scikit-learn,anntzer/scikit-learn,betatim/scikit-learn,vinayak-mehta/scikit-learn,betatim/scikit-learn,ivannz/scikit-learn,TomDLT/scikit-learn,jakirkham/scikit-learn,espg/scikit-learn,espg/scikit-learn,AlexandreAbraham/scikit-learn,manhhomienbienthuy/scikit-learn,vinayak-mehta/scikit-learn,ivannz/scikit-learn,jakirkham/scikit-learn,AlexandreAbraham/scikit-learn,scikit-learn/scikit-learn,vinayak-mehta/scikit-learn,lesteve/scikit-learn,lesteve/scikit-learn,saiwing-yeung/scikit-learn,saiwing-yeung/scikit-learn,TomDLT/scikit-learn,anntzer/scikit-learn,AlexandreAbraham/scikit-learn,AlexandreAbraham/scikit-learn,saiwing-yeung/scikit-learn,espg/scikit-learn,jakirkham/scikit-learn,anntzer/scikit-learn,scikit-learn/scikit-learn,lesteve/scikit-learn,ivannz/scikit-learn,scikit-learn/scikit-learn