1. Home
  2. Explore
  3. Computer Science
  4. Machine Learning at Scale

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Machine Learning at Scale

Transcript

DREW PAULIN: Great. Hi everyone. Welcome to the final presentation in our Databricks lecture series. I'm really glad that you could all join us. I'm Drew Paulin and I'm the Academic Director of the MIDS Program here at the I School. I'm very pleased to introduce Jules Damji who is leading our Session today. He'll be exploring some of the challenges of data at scale. Looking at ML flow and delta Lake, we'll discuss how machine learning at scale facilitates the future of data science.

Jules is a developer advocate at Databricks and an ML flow contributor. He's a hands-on developer with over 15 years of experience and has worked at leading companies such as Sun Microsystems, Netscape at home, OPS ware and LapCloud, Verisign, Proquest and Hortonworks, building large-scale distributed systems. He holds bachelors and masters degrees in computer science from Oregon State University and Cal State Chico and a masters in political advocacy and communication from Johns Hopkins University.

So before we get started, I just want everybody to know that we're going to set aside ten minutes or so at the end of the presentation for questions. So feel free to post questions in the Q & A panel. You can see it in the bottom there, in the toolbar or in the chat. And we'll be sure to return to them At the end of the session. Jules welcome. Thank you so much for joining us today. JULES DAMJI: Well, thank you very much for that kind introduction and thanks a lot for this invite. It's really, really an honor to be here at Berkeley. Berkeley has very strong emotional ties for me. I started my first computer science courses a very long time ago and I'm not going to date myself, but I started to work in taking some summer courses in Pascal, Fortran. And if I say Fortran that pretty   Much dates me quite a bit in Corey Hall working midnight and late hours there. So coming back to Berkeley and being associated

with Berkeley is actually really an honor. And both my children graduated from UC Berkeley. So it is a very special place for me and I want to thank you guys for inviting me. So delighted to be here. And what I want to do today is really talk about whenever we have a future, and that's why I have a question mark in my title. When you talk about future, we are always worried about, about, about, we expect to look into the crystal ball. So I had to tread very carefully to talk about what are some of the things that, that, that I'm going to talk about today. And I want to frame this particular presentation in number of ways. But I'd like to start first by saying this has really been a year of hope in more ways than one. You know, it has been a year were we actually seen the experience, the accelerated adoption of certain sudden Data technologies. We have come to see the data has actually a

center of everything where data is, is pulling a lot of data teams together. We're actually even acknowledging the interplay of data teams. And when I talk about data teams I'm talking about data scientists, machine learning engineers, data analysts. All the people who actually work, with data actually coming together. And so what I'd like to do is, is frame the discussion today and how data has become the center of gravity. Now you've probably heard the old cliche saying, you know, data is a new oil. But I like to, I like to sort of rephrase it differently is data is really the new center of gravity. And, and having said that, I want to sort of frame today's discourse in discussing what are some of the data problems that have sort of emerged recently because of scale and the type of data we deal with and how we'd actually impedes us do advanced analytics. And I'm using the term advanced analytics over here in the sense

that it encompasses all kinds of advances to do with large data, whether you're doing data analysts we're looking at historical data to do some sort of what happened. Or we are trying to do forecasting with the data, or you're trying to predict what the future is going to be, whether you're doing machine learning or within deep learning. So, advanced analytics is sort of an umbrella term to include all kinds of analytics. And what are some of the problems that exists in the past? What some of the data architectures that impede us today. And what is the new future looking like, especially now that you probably have heard this term called lake house, which is a new paradigm that has forced us to look into data. And date architectures in a different way. And in particular, I'm going to frame the discussion, have to open-source technology fit into the grand scheme of things in this particular new paradigm called lake house. Now, for those of you who, who, who don't know, Databricks

is a company that I work for and for all of our founders have very strong academic and historical tides with UC Berkeley. So Berkeley actually is a Center of everything. Lot of graduates who from the EECS actually come and work for us as well. So it's, it's, it's a pleasure to be part of it. And we provide a cloud analytic platform for data teams to actually work together. And this includes data engineers, data scientists, ML engineers, and data analyst. And as you know, ApacheSpark was, was founded at Amp Lab, which is now called Rice Lab. And so we actually provide that as amended service along with other open source projects such as ML Flow and Delta Lake, we now provide as part of the unified platform. And we have close to over 7 thousand customers across the globe who are using this analytics platform. Having said that, what are the challenges today? Why is it that big data is so

difficult today? And, and how do you actually grapple with data beyond 2020? When you look at yourself in the mirror, metaphorically speaking, you look at all the sea of data, how do you actually grapple with it? And I think there are few things that actually have emerged over a period of time. One is the data quality and other one is to tardiness, right? It's very important to have good data quality for, for doing good data science and good insights and building a scalable machine label. And then staleness is another important thing that we actually want data to be in real-time with real data, not to be stale. And obviously, volume and scale is now something that we actually have to deal on daily basis. And if you look at some of the problems that data analysts and data professionals have complained about. Recent surveys that actually showed that about 60% of the people who

are dealing with advanced analytics always report that they're dealing with bad data because they have to do lot of cleaning data 60% of the time. A good number of them have also reported that, that the data becomes very stale. And sometimes when they do forecasting or when they do real-time analysis that dealing with data which is about two months old, which is not a very good thing to do because you really don't get very accurate results when you're building a machine model. And majority of them saying that data comes sometimes from unreliable sources and after about 12 months, that it lays completely meaningless. What do you do with that? And I think a similar sentiment was also echoed by a Kaggle data science survey, which as you guys know that we spent a fair amount of time analyzing and understanding data. If the data is bad, if the data is old, then you're not really getting a very accurate picture of that. And the good amount of time is also spent

in maintaining these infrastructures that we actually have in order to build an existing pipeline. So you can actually get good data and good quality data. You can scale the data and all these sort of important part of it. So what symptom and problem, why it is difficult to get high-quality data in a timely manner. And I think part is because the problem is, is on making. And, and because we're stuck in the old ways, right? We want to feel comfortable in the systems and architectures and the languages that we built and we want to continue using that. And I think the other problem is, is that data evolves. We have seen that data evolves and we have to evolve with it. And when I talk about we, I'm talking about the data architecture that have evolved. So in order for us to understand how data architectures have evolved over a period of time.

To grapple with some of the data that has actually changed with it over the past two or three decades. Let's just take a quick peek at the history of how data architectures have evolved and how people did advanced analytics from the early years of the 1980's to today. So if you look at the architecture of the 1980’s data warehouses were the cafe lattes, right? They were principally very popular. And one of the reason they were popular because they of their singular architecture that allowed you to do the ETL directly from these myriad operational databases they actually had in order for you to actually do some, some business analytics and SQL reporting directly from the data warehouses. And they were purposely built right? They were purposely built to perform way high-performing SQL analytics and BI, because they provided you structured tables, they

hit schema so you can verify that the data quality conformed to the schema. They had highly primary and secondary indexes. So you can actually query the data quite efficiently using the the SQL operators and the caching were also used and all the other techniques that you normally use and expect a powerful engine to perform as part of the data warehouses and also provided powerful management features such as asset transactions. So you always get the reliable qualitative data when you ask for a table to come back and you perform a sudden operation such as kernal operations. You know that in either fails or it, it's guaranteed that it's successful. And multiple readers and multiple writers can actually do that. And more importantly, it gave you the ability to time travel, right? So you can actually go back in time to fetch an exact amount of data that you actually need. The problem was that now machine learning data

scientists really, you can't really do SQL, you can't really do machine learning on SQL because SQL is a non touring language. So if you want to do complicated computations, you head to extract the data out from the data warehouses and put it somewhere else, which is not reall a good experience, for data scientists and machine learning because it introduces a time delay as well. I think what happened was that in the eighties it, solved a particular purpose, right, data warehouses were popular and they are popular today. I'm not saying that they are not popular today. They are being used quite a bit for specific purposes. Then came the 2010s and 2010s, sort of revealed sudden constraintsa and sudden problems that data warehouses faced. And one of them was that because of the data changed, as you guys can remember, 2010 was you had the explosion of the Internet. You had unstructured data and semi-structured data in terms of JSON and XML and,

and, and, and yaml file, do you get time series data that, that you actually had to do forecasting on. You had logs from all the devices and from all the servers that you actually had to analyze your digital images that had to be trans-coded, and documents that on which you actually want to do some sort of a language analysis or you want to do an MLP. And that wasn't very suitable for data warehouses. So they couldn't, they couldn't afford or they couldn't provide you the infrastructure to deal with unstructured data or semi-structured data. The other problem is because of the fact that, that, that you actually now have to deal with the massive amount of large data sets the data warehouses tables were built to handle and optimize those small data. So now you actually have a high cost of creating multiple tables all across an expanding horizontally or vertically depending on which way. And that actually incurred,

quite a bit of code. But I think the most important factor you have to remember as a data scientist as, as, as doing advanced analytics and there's no support this particular infrastructure to be able to actually do data science in ML. It's scale that is asked of us today because of the fact that people are building machine learning models on daily basis or an hourly basis on minutes and deploying it and testing with large amounts of data. So you actually need that capability. So because of these particular constraints, obviously we being human beings, we have to evolve with the data structure. And if you actually want to keep up with the pace and time to be able to handle all these things. Did architectures evolved with the data types? So now then can this whole notion of data lakes, what are data lakes? And the whole idea behind data lake was because they were local storage.

You could actually put your row data or unstructured data into a data lake. And because they actually use open sized file formats like Parquet, you  could pretty much store anything in everything you actually want it in this particular format in the data lake. So they provided you with low-cost horizontal scalability. And because of the fact that the cloud providers now separated the compute and storage, you have the ability now to put compute engine’s very powerful and have the ability to actually get the data you actually want. And the other thing is that the subset of the data that you actually needed for doing some real-time analysis or data warehousing, you could take a partial subset of the data and then put it under, under Data Warehouses. Or you can upload it using ETL into real-time databases that can actually do BI reports. So now you actually have all these workflows that you

can actually support, right? And more importantly, because of the fact that all these machine learning libraries that you actually had today have the ability to directly read text files and CSV files and images directly from the data. And so now you actually have a low storage area. So you might ask “Jules, The problem is done. What is the pretty good problem?” And I think the problem has manifested itself in number of places because now you have the ability to store data in large stores

across systems. But the, but the ETL processes now have, have introduced a complexity because now you actually have multiple storage systems with, with, with different semantics. Now you have SQL for data warehouses. Now you have real-time databases where you actually doing an ETL, generating the reports. And these can actually introduce delays and this can introduce bugs as well. So now you actually have ETL happening in two different places. You have data preparation on the machine learning site where you actually had to prepare the data in order for you to do your analysis and training and validation. And you also want to do ETL on the other side where you actually want to have the ability to have data warehouses. So you can actually do BI and do some real-time reporting. So now there's extra ETL that actually introduces bugs. And if bugs happen, there's a time delay. And as a result of that, we are back to square one. Remember I showed

you about what are some of the problems that we're facing today and data reliability is one of them. And now we're actually introducing the problem of timeliness and these ETL processes. This can actually take long, right? Sometimes it can take hours to days. So you're always getting stale data, not getting the real data. And so even though they're sold, this particular problem at the time when, when the volume wasn't growing. But today with the, with the scale that we're dealing with and with the immediacy they were actually dealing with machine learning. We can't really afford this extra ETL stapes. And as a result of that, we are introducing a high cost because now if you want to do continuous ETL, you are now dealing with, with an extra engineering cost and things can actually break and you actually fixing it. So you are fixing the problem in order to actually get the latest data when you still introducing

that. So it's a, it's, it's, it's a slippery slope there. So what do you do, right? You asking your question. I mean, this is the current architecture that a lot of enterprises actually using. What is it we can actually do? And a new set of paradigm sort of evolve, as I said earlier, that in order for us to, to handle the fast changing and the differing data on a daily basis. We have to be agile to be adaptable. And so there's this new architecture, new vision that you might have heard about, cold lake houses vision. And it's being bandied around both in the academic world and also in industry. And you would term, you will hear the term called Lake house vision. The idea is very simple. It goes back to the early days where you actually want to have a single platform for every use case, whether you are streaming analytics, whether you’re using BI, whether you’re using data science or using machine learning.

You still used the data lake to store all your raw data in whatever format that you actually want. But important thing is that you build a layer on top of it, which is your management layer. And the management layer,is where you actually provide the ability to, to, to get tables in a transaction in an acid manner. You can provide versioning for tables that comprise a particular file. You can use all the, the, the high performance techniques that data warehousing as part of this management layer. And this now became,or is becoming now the future where people are saying, OK, this actually makes sense and you don't want to have multiple ETL processes if you want to have one

data layer that actually manages all the management layer features built on top of the data that gives us the horizontal scale and built on an open file format. And we provide the access directly on top of the data layer that, that all these other workloads can actually do that without, without, without having to wait for that. They have timely data, they have the instant data right away. And this particular vision is, is today that, that most of the enterprises are beginning to adopt. It's actually taking off because it's actually solving the data quality and data timeliness manner. And so idea is, as I said earlier, is that you use the cheap storage for your, for your data lake storage and you put your park where you put important

file form it. In the data storage, you build the management layer that gives you two transactions, the versioning all that as part of your meta layer. And then you provide SQL and high-level APIs that instead of using independent way to get access to data, it goes to the management layer. So applications can actually say, okay, give me this particular table and it'll figure out what are the best version of what's a recent version of this particular table and provide you with the exact files they'd actually need. And your subsequent respective applications can read that particular file and process it in, in due course. And again, the question is, can we get in the state of the art performance and the governance that features this particular design. In other words can I get the best of both worlds? That I get massive amount of horizontal storage at the, at the same level, the ability to actually do transactions at scale, which is normally expected of enterprise

database systems that allow you to do that. And the question is yes, I think we can actually do that. And the reason we can actually do that is because there is a confluence of these emerging technologies which are actually enabling and undergirding the vision of what data lake is, is is is and lake houses are all about. And one is the meta layers, which are built on top of data lakes that allow you to do transaction at scale that provide you the versioning capability. So you can actually have multiple applications do transactions without corrupting the data. And this is an important part of technology, which is actually evolving. That is providing this particular vision to, to, to come true. And the second one is that, is that there are clear, they are SQL performance engines which are being built on top of the data lake that takes advantage of the storage system that has high throughput performance.

And they're using the file formats, the open file formats such as Parquet, which is a very efficient columnar database to be able to actually build query engines on top of that. And the last but not least is because we want to do machine learning at scale, we want to have all these frameworks that we are used to decorate your access directly to that through that many management layer. And I'm going to just talk briefly about each of those three technologies that enable and undergird, this vision of data lake house which is really taking off. And we're beginning to see a lot of noise in the industry about, about this new paradigm, which is actually a shift from the older one. So data lakes is good, right? A normal Data Lake, allows you to put any number of files you actually want into, into, into the data lake. The problem is that there's no versioning. So in other words, in a few, you might be looking at an old version of the file or you might be

looking at an old version of the table. You don't know whether somebody just updated it or somebody actually has just deleted it. Or you might get a data which is, which is not the most current one. And, and the management of the meta layers on top of the data lake allows you to give me this rich management features in an acid manner so that you can have multiple applications, can do isolation and get the appropriate files which are part of the particular table. And it allows you to do parallel processing. So multiple clients can say, give me the version of all the files which are comprised of this particular table called V1. And I'll get the management layer to figure out exactly what are the, what are the files which are part of this particular transaction table version one, then return you back those. Now this meta layer is, being developed in the open-source manner across the industry. We at Databricks implement

the delta Lake, which is an open source that we, that we donated to. The next Foundation, there's a similar meta layer for delta lake is being developed and contributed to a purchase Apache called Apache Iceberg, which Netflix uses it at scale to do their, to do their transaction, to do manage their data lakes. And then Acid has also been introducing Hive. Free data that allows you to do Acid transaction on the high meta store. And, and we actually

have seen that delta Lake is now sort of sort of emerging and taking really, really industry by storm is because this, this management layer allows you, for example, to be able to have multiple clients access data in a manner that doesn't interfere with other transactions. So if you have two applications, which is saying give me, give me, give me the, the, the version two of this particular table. The transaction log exactly knows that version two was created at sudden particular time and it only contains file one, file to file three. On the other hand, when you, when you have a query that delete an application deletes that it creates a version three of the transaction load. Now the version three of that particular table will only have files with the deleted entries. So either C1 or the table analysis would say something in-between which delta lake initially didn't have that. But having this management layer, part of the data

lake technology with the transaction law, allows you do that as massive scale. The other thing that delta lake allows you to do is to be able to have other management features which are expected in enterprises. So I can actually take my, my, my delta lake table and read it as a stream and then merge it and do inserts into upserts and do all the DML operations along with Kafka or any other streaming operations. So now I can actually update the data in real time. But important thing is that now you can actually do time travel just like you can actually do that in the data warehouses where I can actually now go back to a particular version of the table. And this is very, very important for machine learning to do at scale because you want to be able to reproduce a model that you created six months ago, right? If you were storing and reading everything from data like you have no idea what

files we use, but over here you know exactly what files were uses, and exactly what features were used , how they were used. And that allows you to reproduce your, your, your machine learning model or your experiment if you actually wanted to do that. And then the other things they actually provided you is the ability to control and ensure that the data quality is actually maintained. Now remember I talked about data quality in the survey and I talked about why data quality is an important part in doing machine learning at scale. And this is one way where you can actually enforce that the new data that's coming in is conforming to a particular schema. And if the schema evolves, then you make sure that if you go back to a particular table than the volt schema won't have, will have entries which are either null entries or some other type of entries that you can actually fulfill in it. And so this is actually an important part of the management feature for delta lake. And then we're

beginning to see, at least within the data bricks that other customers, ah 50% of their workload - Io workloads in excess of exobytes of data using and handled by delta lake. And we're beginning to see the same amount of interest and adoption in industry you will some of the major ETL vendors are using delta Lake for ingestion. They using delta lake as a storage mechanism in the cloud. And some of the popular SQL engine. On the far right hand side, I actually big building query connectors to extract the data and then do analysis. So we can begin to see that this is really emerging as one of the standards in part of the, the lake house vision. Now, having a meta layer by itself and operates itself is not enough. You actually  need to ensure that the query engines, which are built on top of the data like that, take advantage of the storage system and file formats scale as well, and their

performance in the same manner that the data warehouses were. And so let's look at that in particular detail. We have seen that 70 lake house engines which are being developed today, sort of directly take advantage of some of the techniques that we all are familiar with. If you're actually building distributed system of you're building very high efficiency exosystem caching is an important element of it. And so all the data did you actually read from the data can be actually cached using, using the, the recent ram technology. Or you can actually store them in the highly available SSD drives. And possibly if you're dealing with, with, with images, if you're dealing with recordings of voice, those could be sort of possibly transcoded as well. You can also use some of the techniques that people actually use today, where even though you don't have the control over the file format, because file  format is Parquet. But you can

control how we actually lay out the structure of data. You cluster, co accessed data together, sort them out, you partition them out. You use reordered to access them. And this gives you a lot of performance. So for, for using caching techniques actually matches some of the data warehouses and data. And then these other techniques that you can actually attach, say, auxiliary data structure like statistics and indexes. So when you make a particular query such as a column for date, you know that a certain range of dates will only appear in this particular file. So you only go to that particular file it’s like did a pruning.

And this is an old technique that people actually use. So those are the auxiliary data searches you can associate. And that gives you the ability to do reading cold data at a very high performance. And lastly, the vectorized execution engine that take advantage of the modern CPUs, with SIM in a single instruction, multiple data. So you can actually have this vectorized execution happening in parallel. And one of the things that we actually did at their preschool level, delta engine, we actually saw an enormous performance gain when we compared using these vectorized engine and using these technologies against some of the cloud

competitive offerings available. And we will fairly competitive. We weren’t better than that but, but, but, but we're actually close. Using somebodies measure TPC benchmarks for doing SQL queries. So this is the second bit that actually undergirds the, the, the lake house vision and that allows data scientists and ML engineers to be able to deal with large amounts of data, which is an important part of, of, of doing your task. And the last bit about, about how these, these, these undergird

themselves is the optimize access directly using data science and ML frameworks. And today, most of the machine learning framework that I talked about have the ability to directly read Parquet files, Org files, or whatever father there could be having the data lake. And they also provide declared interfaces so that I0 can be enabled for further optimization. So for example, if you look at Spark DataFrame API, you can actually use its,its domain-specific relational operators which, which translates internally into a query plan with relational algebra and then the query plan. The query plan can then be further optimized by the query engine to say, okay, I'm going to push it down to the delta lake to give me the exact files that I need, I legs away the indexes are I know where the data resides and I'll bring back my training set that you have asked for and now you actually get this in a very efficient

manner. So these underlying confluence of emerging technologies are really the, the, what I would say the three legs of the stool which actually making the data lake house vision possible. And you begin to see a lot of noise and adoption in the ability to actually provide that as, as a new architecture to handle some of the data problems to look at beyond 20-20. And so if you combine those, those simple architecture with the combination or what you actually expect in terms of performance and

transaction from a data warehouse and use the lake house as a simple enterprise data architecture, you begin to see that, that this is really, really going to take off and this is really the future. And, and the question now is that, is that, you can use the delta lake which is now being shot, is you can say you can use the delta lake to be able to actually use your storage at a massive scale and have used that as part of the data layer on top of it and then provide the SQL access to that. And for, for machine learning to be able to do that skill, you can actually use ML flow, which is the next thing I want to talk about, the amount of time that we have left. So this

just recap sort of simplifies some of the data architectures. We're going to back to the original where you have a simple architecture that allows you to have all this application, get the data in a reliable manner and in a, in a good quality manner and also keep the data fresh. And I think that was an important part we'd actually speaks volumes to about what I said earlier that today's problems, our data quality and tardiness, and this is purported to be able to actually address those problems at scale. The second thing I want to talk about is how ML flow fits into the grand scheme of things. I talked about how delta lake plays an important part of it. And, and now I want to talk about how, how data scientists and ML engineers can build models at scale and manage models at scale. And then have the entire end-to-end process available to them at their disposal.

Now, those of you who have been working in the industry and those if you are going to work shortly after you graduate or those of you are already working. You have probably realized or probably have heard that machine learning is complex. And I would contend that the complexity is not so much that the math behind is difficult, although you don't need a PhD in it, but you need, you need some literacy in some statistic and sudden, sudden advanced calculus to do integrals. It's not that, it's not that the languages and the frameworks that you use are difficult because most of these actually have abstracted. And given you APIs at the high level. So you can actually create a classical logistic regression or you can clear a cache for decision tree. We can clear the cashe for linear regression and they give you default constructors and learning parameters that you can actually create a fairly good model.

The problem stems from the fact that, that, that the methodology in how you create a model is very different from methodologies that you and I, or software engineers are used to it. And just to give you an idea of comparing traditional software versus machine learning. The traditional software, the goal is different. The goal over here into traditional software is you are, given a particular specification and you have to create a software delivery of software service for it. And the quality now depends on how many bugs you have and what's your SLA. Whereas if you complete that with machine learning, the goal is slightly different. The goal is the business metric. I want the accuracy, I want the probability, I want constantly I'm experimenting it. So it's an iterative process. And the quality of the code, of the quality of your product depends on the data. Data is the center

of everything. Not that doesn't depend on your code, obviously it does, but the data plays an important part of it and the data changes because you won't ever be able to, to make sure that you get the latest and greatest data. And it's an iterative process. You go over and over again. Typically in a software traditional environment your software stack is limited. You might have one database, you might have a couple of works engines, you might a few frameworks that you actually support and the limited environment you just do it in the cloud, you might have one in the premise. Whereas, where as in the machine learning at scale, You want to take the best of the open source machine learning library is available. You want to use all of them. It's, it's, it's, it's it's any or all and you won't get the latest and the language that you're familiar with. And you want to be able to diversely

deploy your machine models in a diverse environment. So these sort of adds to the complexity. And if you look at the traditional continuous way, in which you actually build a particular model data, data preparation part, where you extract data, whether you're doing ETL or whatever you're actually putting into lake house that actually has some tuning associated. But you might be using Python for that. You might be using Spark, you might be using Pandas. You might use SQL and you'll have some tuning parameters that you actually want to make sure that you use that. But important part is when you're building the model and you're iterating over the model, you have to be able to actually tune and track the results of those in a manner so that you know, to get the best metric that gave you the best tuning parameters so that we have the confidence to say, okay,

this particular metric, I'm happy with it. The accuracy of 99% or the probability of this prediction is, is over 98%. I'm happy with that. And that is contingent on data and it's contingent on tune. But all of that, all of that has to be done at scale, right? Whether you’re doing deployment whether you’re getting raw data into your lake house. Whether you actually doing, doing tuning, distributed training, all that actually has to be done in the scale. So that's the third problem. The fourth problem with machine learning is that how do you actually take the model that you actually have? So this is Drew created a particular model and you say “hey Jules,” here's a particular model here is taken. How do I, how does Drew ensure there he gives me as a model is the one that I can actually take it and deploy it and I will have the same results. So modal exchange is an important part of it, which is part of all the ML ops best practices. And then finally, you know,

we, we are in the time of GDPR and governance is important. If you want to find out how the model was, was deployed, who approved the model, who did the validation? Who tested the model? Who deployed what data was actually used who approved it, and what was the provenance? How did they actually arrange it, all those aspects have to be incorporated, really actually building this entire model from inception all the way to production. And so to address these sort of very complex issues, we developed a database called ML flow, which we contributed to Linux Foundation, which is an open source product. And we modularize those in terms of, we want to be able to track things when you're actually running experiments, when you're tuning parameters, when you are building and training the model and calculating yo-yo accuracy, you run thousands of experiments that we won't be able to track that. So we know

that the best results will comply with our, with our metric. The second thing I alluded to that I want to be able to reproduce my runs. And if Drew gave me a particular model, can I package it together and put it on GitHub or put it somewhere else where publicly people can just use that particular project and run it in their environment and produce exactly the same results, right? So, Gary can actually take what Drew, put, use that as a product to get the same results that the Drew used in order to create the model. And then models, models component is another, another way to actually package all this particular model. So you can actually deployed this on these different environments. And then finally, model reegistry is a central repository where you can

put thousands and thousands of model to be able to actually version that. Use ML ops to, to transition them from development, to staging and all that. So this whole conglomerate of circle of things sort of modularized in this thing called open, open, open-source platform flow. And then we provide you with the, with the libraries which are integrated as part of the ML flow. So you're familiar with Python, you're familiar, Are you familiar with Java Scala? You can actually use that. Now for experimentation. You know, there's certain things you want to keep track of. Some things are like parameters and metrics, and we actually have the ability to give you a simple API. So you can actually just use those to track that. And the UI gives you the ability to actually go in and check these parameters. And we also try to simplify that by, by giving you auto logging whereby you can actually use autolog. So automatically actually gives you all

this ability. So this allows you to track experiment at scale. The other thing is actually projects that can take a particular project and I can capture all the configs that I need, all the data dependence that have all the code and libraries. And I can, I can, I can use that data to project, to execute locally  or remotely on any of these remote execution, so that’s the way to reproduce that. And the third ML flow component is actually models that allows you to build all these different models in different libraries and be able to actually deploy them in diverse environments. So for example, I can actually have all these different libraries that I actually want to use. And I can create flavors of this particular model. And these models can now be deployed in this respective environments without me understanding the underlying complexity of how it's actually done. So model is a way to actually model to flavor to model

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent