phase 4
phase 4
Collect feedback from users and systems that interact with your deployed model. Utilize this
feedback to iteratively improve your model. You may need to retrain the model with updated data
or adjust its parameters based on user insights.
Version Control:
Maintain version control for your model. Watson Studio allows you to manage multiple versions of
your model, making it easier to track changes and revert to previous versions if necessary.
Integration:
Integrate the scoring endpoint of your deployed model into your application or system. This
integration enables real-time predictions by sending data to the model's APl endpoint.
Ensure the security of your deployment. IBM Cloud provides features for access control,
authentication, and encryption to safeguard your model and data from unauthorized access and
breaches.
Collaboration:
If you're working on the deployment with a team, take advantage of Watson Studio's collaboration
features. Share notebooks, data, and insights, and collaborate efficiently to enhance the
deployment.
Performance Optimization:
Continuously assess the performance of your model. Explore opportunities to optimize it, which
might involve hyperparameter tuning, retraining with fresh data, or implementing more efficient
algorithms.
client =WatsonMachineLearningAPIClient(wml_credentials)
Training ML model:
Utilize the machine learning libraries and framework available in Watson studio to train your
model. Make sure to split your data into training and testing set to assets model accuracy.
python
logreg = LogisticRegression(max_iter=300)
LogisticRegression(C=1.0, class_weight=None, dual=False, fit_intercept=True,
intercept_scaling=1, max_iter=300, multi_class=warn',
n jobs=None, penalty=12, random_state=None, solver='warn,
python
y_pred =logreg.predict(X_test)
print(Accuracy of logistic regression classifier on test set: {.2f).format(logreg.score(X_test,
Y_test))
Accuracy of logistic regression classifier on test set:0.77
"python
conf_matrix = confusion _matrix(Y_test, y_pred)
print(conf _matrix)
[1209 346]
[144 411]]
`python
print(classification _report(y_test,y_pred))