November 2017
Intermediate to advanced
1035 pages
11h 31m
English
QDA is the generalization of a common technique such as quadratic regression. It is simply a generalization of the model to allow for more complex models to fit, though, like all things, when allowing complexity to creep in, we make our life more difficult.
We will expand on the last recipe and look at Quadratic Discernment Analysis (QDA) via the QDA object.
We said we made an assumption about the covariance of the model. Here, we will relax the assumption.
QDA is aptly a member of the qda module. Use the following commands to use QDA:
>>> from sklearn.qda import QDA >>> qda = QDA() >>> qda.fit(X.ix[:, :-1], X.ix[:, -1]) >>> predictions = qda.predict(X.ix[:, :-1]) >>> predictions.sum() ...
Read now
Unlock full access