Issue
Is there a dummy Scaler to plug into a Pipeline that does nothing? i.e.
# define the SVM model using the RBF kernel
model = Pipeline(steps=[('preprocess', MinMaxScaler()),
('model', SVC(kernel='rbf',
gamma='scale',
probability=True,
class_weight='balanced',
cache_size=1000,
tol=1e-10,
shrinking=True,
decision_function_shape='ovr',
break_ties=False,
C=3.0))])
params = [{'preprocess': [DummyDoNothingScaler(), MaxAbsScaler(), MinMaxScaler(), StandardScaler()],
'model__gamma': ['scale', 'auto'],
'model__C': [1.0, 1.01, 1.015,3.0]
}]
Is there a DummyDoNothingScaler
?
Solution
Actually using None
works perfectly as "do nothing" i.e.
params = [{'preprocess': [None, MaxAbsScaler(), MinMaxScaler(), StandardScaler()],
'model__gamma': ['scale', 'auto'],
'model__C': [1.0, 1.01, 1.015,3.0]
}]
Answered By - SkyWalker
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.