MCPcopy Create free account
hub / github.com/SeldonIO/seldon-server / _exclude_include_features

Method _exclude_include_features

python/seldon/vw.py:245–250  ·  view source on GitHub ↗
(self,df)

Source from the content-addressed store, hash-verified

243 return np.array(fscores)
244
245 def _exclude_include_features(self,df):
246 if not self.included is None:
247 df = df[list(set(self.included+[self.target]).intersection(df.columns))]
248 if not self.excluded is None:
249 df = df.drop(set(self.excluded).intersection(df.columns), axis=1)
250 return df
251
252
253 def fit(self,X,y=None):

Callers 2

fitMethod · 0.95
predict_probaMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected