Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move sklearn multi datatype model build scripts to docs
Signed-off-by: Suresh Nakkeran <suresh.n@ideas2it.com>
- Loading branch information
1 parent
933c06d
commit 572e60d
Showing
6 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
Empty file.
11 changes: 11 additions & 0 deletions
11
docs/samples/v1beta1/sklearn/v1/sklearn-multi-datatype-model/custom_transformer.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import pandas as pd | ||
from sklearn.base import TransformerMixin | ||
|
||
|
||
class DictToDFTransformer(TransformerMixin): | ||
|
||
def transform(self, X, y=None): | ||
return pd.DataFrame(X) | ||
|
||
def fit(self, X, y=None): | ||
return self |
Binary file added
BIN
+6.16 KB
docs/samples/v1beta1/sklearn/v1/sklearn-multi-datatype-model/model.joblib
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Binary file modified
BIN
-19 Bytes
(100%)
python/sklearnserver/sklearnserver/example_models/multi_datatype/model/model.joblib
Binary file not shown.