Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Practical Machine Learning on Databricks

You're reading from  Practical Machine Learning on Databricks

Product type Book
Published in Nov 2023
Publisher Packt
ISBN-13 9781801812030
Pages 244 pages
Edition 1st Edition
Languages
Author (1):
Debu Sinha Debu Sinha
Profile icon Debu Sinha

Table of Contents (16) Chapters

Preface 1. Part 1: Introduction
2. Chapter 1: The ML Process and Its Challenges 3. Chapter 2: Overview of ML on Databricks 4. Part 2: ML Pipeline Components and Implementation
5. Chapter 3: Utilizing the Feature Store 6. Chapter 4: Understanding MLflow Components on Databricks 7. Chapter 5: Create a Baseline Model Using Databricks AutoML 8. Part 3: ML Governance and Deployment
9. Chapter 6: Model Versioning and Webhooks 10. Chapter 7: Model Deployment Approaches 11. Chapter 8: Automating ML Workflows Using Databricks Jobs 12. Chapter 9: Model Drift Detection and Retraining 13. Chapter 10: Using CI/CD to Automate Model Retraining and Redeployment 14. Index 15. Other Books You May Enjoy

Incorporating custom Python libraries into MLflow models for Databricks deployment

If your projects necessitate the integration of bespoke Python libraries or packages hosted on a secure private repository, MLflow provides a useful utility function, add_libraries_to_model. This feature allows you to seamlessly incorporate these custom dependencies into your models during the logging process, before deploying them via Databricks Model Serving. While the subsequent code examples demonstrate this functionality using scikit-learn models, the same methodology can be applied to any model type supported by MLflow:

  1. Upload dependencies and install them in the notebook: The recommended location for uploading dependency files is Databricks File System (DBFS):
    dbutils.fs.cp("local_path/to/your_dependency.whl", "dbfs:/path/to/your_dependency.whl")# Installing custom library using %pip%pip install /dbfs/path/to/your_dependency.whl
  2. Model logging with custom libraries...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}