Skip to content

Commit

Permalink
added rest of edits
Browse files Browse the repository at this point in the history
  • Loading branch information
axsaucedo committed Jul 13, 2019
1 parent 443e94b commit 0ce3494
Show file tree
Hide file tree
Showing 13 changed files with 1,048 additions and 703 deletions.
1,689 changes: 986 additions & 703 deletions Bias Evaluation & Explainability.ipynb

Large diffs are not rendered by default.

Binary file added images/alibi-repo-new.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/alibi-repo.jpg
Binary file not shown.
Binary file added images/dataviz.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/modevallibs.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/seldon-core-repo.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/xai.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,22 @@
apiVersion: machinelearning.seldon.io/v1alpha2
kind: SeldonDeployment
metadata:
labels:
app: seldon
name: loanclassifier-explainer
spec:
name: loanclassifier-explainer
predictors:
- componentSpecs:
- spec:
containers:
- image: loanclassifier-explainer:0.1
name: model-explainer
graph:
children: []
name: model-explainer
type: MODEL
endpoint:
type: REST
name: loanclassifier-explainer
replicas: 1
4 changes: 4 additions & 0 deletions pipeline/pipeline_steps/loanclassifier/.s2i/environment
@@ -0,0 +1,4 @@
MODEL_NAME=Model
API_TYPE=REST
SERVICE_TYPE=MODEL
PERSISTENCE=0
14 changes: 14 additions & 0 deletions pipeline/pipeline_steps/loanclassifier/Model.py
@@ -0,0 +1,14 @@
import dill

class Model:
def __init__(self, *args, **kwargs):

with open("preprocessor.dill", "rb") as prep_f:
self.preprocessor = dill.load(prep_f)
with open("model.dill", "rb") as model_f:
self.clf = dill.load(model_f)

def predict(self, X, feature_names=[]):
X_prep = self.preprocessor.transform(X)
proba = self.clf.predict_proba(X_prep)
return proba
22 changes: 22 additions & 0 deletions pipeline/pipeline_steps/loanclassifier/loanclassifiermodel.yaml
@@ -0,0 +1,22 @@
apiVersion: machinelearning.seldon.io/v1alpha2
kind: SeldonDeployment
metadata:
labels:
app: seldon
name: loanclassifier
spec:
name: loanclassifier
predictors:
- componentSpecs:
- spec:
containers:
- image: loanclassifier:0.1
name: model
graph:
children: []
name: model
type: MODEL
endpoint:
type: REST
name: loanclassifier
replicas: 1
Binary file added pipeline/pipeline_steps/loanclassifier/model.dill
Binary file not shown.
Binary file not shown.

0 comments on commit 0ce3494

Please sign in to comment.