Skip to content

Tag: scikit-learn

Sklearn RFE, pipeline and cross validation

I’m trying to figure out how to use RFE for regression problems, and I was reading some tutorials. I found an example on how to use RFECV to automatically select the ideal number of features, and it goes something like: which I find pretty straightforward. However, I was checking how to do the same thin…

Fix parameters of Gaussian mixture model, instead of learning

Let us say I have a dataset data that I use to fit a Gaussian mixture model: I now store the learnt covariances fit_model.covariances_, means fit_model.means_ and weights fit_model.weights_. From a different script, I want to read in the learnt parameters and define a Gaussian mixture model using them. How do…