How do I deploy a model when using Stratified K fold? I have used Stratified K fold for learning the model . Below is the python code:
&gt;def stratified_cv_v1(X, y, clf, shuffle=True, n=10,):
&gt;    stratified_k_fold = StratifiedKFold(n_splits=n,shuffle=shuffle)
&gt;    y_pred_v1 = y.copy()
&gt;    for ii, jj in stratified_k_fold.split(X,y): 
&gt;        X_train, X_test = X[ii], X[jj]
&gt;        y_train = y[ii]
&gt;        clf_v2 = clf()
&gt;        clf_v2.fit(X_train,y_train)
&gt;        y_pred[jj] = clf.predict(X_test)
&gt;    return y_pred_v1


&gt;print(classification_report(y, stratified_cv_v1(X, y, GradientBoostingClassifier)))


Now how do I use the model to deploy on a new data set where I need to predict ?
k-fold CV is meant to evaluate the model. Once the evaluation is done and one is ready to move to deployment, there's no point using CV anymore: the method has been tested and validated, so one can reasonably assume that from now on applying the same method to the same kind of data will lead to the same level of performance. Thus the usual process is:

Train a final model on the full dataset (no CV, no testing)
Apply the model to new instances