frame¶
-
ibex.frame(est)[source]¶ Parameters: est – either an estimator class or an estimator object. The class (or class of the object) should subclass sklearn.base.BaseEstimator.Returns: - If
estis a class, returns a class; ifestis an object, - returns an object. Note that the result will subclass
estandibex.FrameMixin
Example
>>> from sklearn import linear_model >>> from ibex import frame
We can use
frameto adapt an object:>>> prd = frame(linear_model.LinearRegression()) >>> prd Adapter[LinearRegression](copy_X=True, fit_intercept=True, n_jobs=1, normalize=False)
We can use
frameto adapt a class:>>> PdLinearRegression = frame(linear_model.LinearRegression) >>> PdLinearRegression() Adapter[LinearRegression](copy_X=True, fit_intercept=True, n_jobs=1, normalize=False)
>>> PdLinearRegression(fit_intercept=False) Adapter[LinearRegression](copy_X=True, fit_intercept=False, n_jobs=1, normalize=False)
- If