remove ClfSwitcher() from this lot

This commit is contained in:
Tanushree Tunstall 2022-05-22 23:36:24 +01:00
parent 18d9b77aee
commit 1a1154b4f4
15 changed files with 0 additions and 419 deletions

View file

@ -5,31 +5,6 @@ Created on Wed May 18 06:03:24 2022
@author: tanu
"""
#%% RandomForest + hyperparam: BaseEstimator: ClfSwitcher()
class ClfSwitcher(BaseEstimator):
def __init__(
self,
estimator = SGDClassifier(),
):
"""
A Custom BaseEstimator that can switch between classifiers.
:param estimator: sklearn object - The classifier
"""
self.estimator = estimator
def fit(self, X, y=None, **kwargs):
self.estimator.fit(X, y)
return self
def predict(self, X, y=None):
return self.estimator.predict(X)
def predict_proba(self, X):
return self.estimator.predict_proba(X)
def score(self, X, y):
return self.estimator.score(X, y)
parameters = [
{
'clf__estimator': [GaussianProcessClassifier(**rs)]