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

Speaker 1Speaker 2

Machine Learning at Scale

17:49
0:00-17:49
  1. Maria

    Welcome to our conversation about data at scale. The presentation’s central question is how data teams can build reliable analytics and machine-learning systems when data is enormous, diverse, and changing quickly. Jules Damji frames the answer around two technologies: Delta Lake, for managing data, and MLflow, for managing machine-learning work.

  2. Simon

    And before we get to the tools, there’s a useful shift in perspective. Instead of calling data “the new oil,” Jules calls it the new center of gravity: data brings data scientists, machine-learning engineers, analysts, and data engineers together around shared problems.

  3. Maria

    He uses “advanced analytics” broadly. It includes looking back at historical data to understand what happened, forecasting what may happen next, and using machine learning or deep learning to make predictions. The common requirement is dependable data that arrives in time to be useful.

  4. Simon

    The challenges he highlights are data quality, staleness, and volume. In the surveys he describes, many analytics practitioners reported spending substantial time cleaning poor-quality data. Others said their information could be months old, or come from unreliable sources, making forecasts and models less trustworthy.

  5. Maria

    That matters because a model can be sophisticated and still produce weak results if the data is inaccurate or out of date. Teams also spend time maintaining the infrastructure and pipelines that are supposed to deliver good data. So the obstacle isn’t only the analysis itself; it’s getting suitable data to the analysis reliably.

  6. Simon

    Jules argues that some of the difficulty comes from relying on architectures built for earlier kinds of data. Data changes, but organizations can be reluctant to change systems and practices they know. To understand the gap, he takes us through three broad stages: data warehouses, data lakes, and the lakehouse.

  7. Maria

    The classic data warehouse was designed for structured information and business intelligence. It could bring data in from operational databases through ETL—extract, transform, and load—and organize it into tables with defined schemas. Indexes, caching, and other optimizations helped make SQL queries efficient.

  8. Simon

    Warehouses also offered important management guarantees. Transactional operations could succeed as a complete operation or fail, rather than leaving data partway changed. Multiple readers and writers could work with the data, and time travel could let a user retrieve an earlier version. Those capabilities made warehouses valuable for reliable reporting.

  9. Maria

    But warehouses were not a natural home for every machine-learning task. Data scientists often needed to take data out and move it somewhere else to carry out more complex computations. That extra movement could slow the work and create another step to maintain.

  10. Simon

    Then the types and amounts of data expanded. The presentation points to semi-structured formats such as JSON and XML, as well as logs, time-series data, images, and documents. A warehouse built around structured tables was not designed to handle all those forms as easily, especially as datasets grew.

  11. Maria

    Machine-learning work also raised the need to train, test, and deploy models repeatedly, sometimes with very large amounts of data. That pushed teams toward a different approach: the data lake. A lake can store raw and unstructured data in open file formats such as Parquet, with the horizontal scalability and lower-cost storage associated with cloud object storage.

  12. Simon

    Separating storage from compute is another important part of that approach. Teams can choose computing resources to work with the data, and different tools—including machine-learning libraries—can read files directly. They can also send a subset of lake data into a warehouse or real-time database for particular reporting needs.

  13. Maria

    That flexibility sounds like the problem is solved, but the lake by itself doesn’t provide all the controls a warehouse does. Jules describes a common result: organizations maintain several storage systems, each with different semantics, and build ETL pipelines between them. Data preparation for machine learning may be happening separately from preparation for reporting.

  14. Simon

    More pipelines mean more places for bugs, delays, and duplicated work. If data must be transformed in multiple locations, a fix in one pipeline may not fix the others. And if those pipelines take hours or days, the information available for analysis may already be stale.

  15. Maria

    That leads to the lakehouse idea: keep the scalable, flexible storage of a data lake, but add a management layer that supplies capabilities associated with a warehouse. The goal is one data platform that can support streaming analytics, SQL and business intelligence, data science, and machine learning without requiring a separate copy and ETL process for every use.

  16. Simon

    The management layer is essential. It can present files as managed tables, keep track of which files belong to which table version, and support transactions and versioning. Applications can ask for a table through SQL or higher-level APIs, while the management layer identifies the appropriate files to read.

  17. Maria

    So the lakehouse is not simply a collection of files with a new label. It combines open, scalable storage with a layer that manages consistency and access. The presentation describes three pieces that make the vision possible: transaction and metadata layers, query engines built for performance, and direct integration with data-science and machine-learning frameworks.

  18. Simon

    Delta Lake is the example Jules focuses on for the management layer. A plain data lake can leave users unsure whether a file has been updated or deleted, or whether they’re seeing the current table. Delta Lake’s transaction log tracks table versions and the files associated with them, so multiple applications can work with data without simply overwriting one another’s view.

  19. Maria

    Imagine a table at version two that consists of a particular set of files. If a later operation deletes data, the log records a new version rather than leaving users to guess what changed. A query asking for an earlier version can still be directed to the files that formed that earlier table.

  20. Simon

    That version history is especially useful for machine learning. If a team needs to reproduce a model experiment from months ago, it can identify which table version and files were used, rather than relying on an uncertain snapshot of the lake. The presentation also connects this reproducibility to knowing which features were used and how.

  21. Maria

    Delta Lake can also support operations such as inserts, updates, upserts, and deletes, including when data is being processed in streaming settings. And schema controls can help check that incoming data conforms to an expected structure. If the schema changes, teams can manage that change instead of silently assuming the data still means the same thing.

  22. Simon

    Jules also names other open-source approaches to lake management, including Apache Iceberg and transactional capabilities associated with Hive. His broader point is that this management layer is becoming an important part of how organizations make lakes more reliable and usable across applications.

  23. Maria

    But transactions alone don’t make a lakehouse fast. A query engine must also use the storage format and system efficiently. The presentation describes familiar techniques: cache frequently used data in memory or on SSDs, arrange related data together, and partition or sort it so that queries can find what they need without reading everything.

  24. Simon

    Indexes and statistics can help with that, too. If the engine knows which files contain a certain range of dates, for example, it can skip files that cannot match a date filter. The presentation calls this kind of file skipping or pruning an auxiliary aid to faster queries.

  25. Maria

    The engine can also use vectorized execution, which takes advantage of modern CPUs by processing multiple data values in an instruction. The aim is to bring warehouse-like query performance to large datasets stored in the lake. Jules mentions Delta Engine as an example of applying such techniques and says its performance was competitive in the benchmarks he discussed.

  26. Simon

    The third piece is making the data accessible to machine-learning tools. Frameworks can read open formats such as Parquet, while APIs like Spark DataFrames let users express operations in a familiar way. The query engine can optimize the resulting plan and push work toward the data, rather than requiring a user to manually move every file around.

  27. Maria

    With that data foundation in place, Jules turns to MLflow and the challenges of building models at scale. He says the hardest part of machine learning is not necessarily the mathematics or the APIs. Rather, the process differs from traditional software development: the goal is often a business metric, and the result depends heavily on data that changes over time.

  28. Simon

    Traditional software is usually built against a specification, and quality may be judged by bugs and service-level commitments. Machine learning is more iterative: teams experiment with data and parameters to improve a metric such as accuracy or prediction quality. They may use many open-source libraries and languages, then need to deploy the resulting model in varied environments.

  29. Maria

    That creates several practical needs. Teams must track experiments, parameters, and metrics; reproduce a run; package and exchange models; and know how a model was trained, tested, approved, and deployed. Governance and provenance matter, especially when people need to investigate why a model made a consequential decision.

  30. Simon

    MLflow addresses these needs with components for tracking, projects, models, and a model registry. Tracking records experiments—including parameters, metrics, and artifacts such as files or models—and provides a way to compare results. The speaker also describes automatic logging, which can capture relevant information without requiring every detail to be recorded by hand.

  31. Maria

    MLflow Projects help make work reproducible by packaging code with its configuration and dependencies. A project can then be run locally or remotely. The idea is that a colleague can take the packaged project and, with the required environment, reproduce the work rather than receiving only a model file with no explanation of how it was created.

  32. Simon

    The Models component helps package models made with different machine-learning libraries and expose them in formats suited to different deployment environments. These formats, or “flavors,” provide an abstraction over the underlying library. As Jules explains it, that can make it possible to load a model through a common interface—for instance, as a Python function—even if it was created using a different framework.

  33. Maria

    Then there’s the model registry, which Jules compares to an organization’s central repository for models. It tracks named models and their versions, along with descriptions and history. A team can identify who created a version, what work led to it, and where it is in the process.

  34. Simon

    The registry can label models with stages such as staging, production, or archived. A developer can register a model, a reviewer can run tests and check whether it meets a metric, and then an approved version can move into production. Multiple versions can also be kept in the same stage, which can support A/B testing.

  35. Maria

    That process connects to ML operations, or MLOps, and to continuous integration and delivery. The registry’s workflow APIs and notifications can help teams coordinate transitions and trigger tests or deployment steps. A model can be served through a REST interface, deployed in an environment such as Kubernetes, or used in batch inference, depending on the setup.

  36. Simon

    There’s another reason to keep watching models after deployment: data changes. If model performance begins to drift as the data changes, a team may need to retrain or replace the model. Jules describes monitoring and validation as part of the broader workflow, with notifications and CI/CD tools helping teams respond.

  37. Maria

    A question from the audience asks where AutoML fits. Jules calls it a developing area, not a magic button that solves every problem. One useful direction is letting a user select a dataset and a set of candidate algorithms, then compare the resulting models and metrics—while still giving the user visibility into what was tried.

  38. Simon

    He mentions PyCaret as an example of a tool that can run selected classical machine-learning algorithms and log experiments to MLflow. That gives a team a summary of candidate results, rather than treating the winning model as a mysterious black box.

  39. Maria

    The discussion also connects distributed and federated learning to ethics and data stewardship. Jules emphasizes examining data for bias and understanding which features influence a model’s decisions. He mentions using feature-importance information, including SHAP, to help interpret how a model reached a result.

  40. Simon

    That interpretability matters in high-impact examples such as healthcare decisions or loan approvals. Teams need to ask what criteria and features informed the prediction, not just whether the model produced an answer. The presentation also says distributed approaches, including federated learning, can be used with Spark-related tools, while recognizing that ethical handling of the data remains important.

  41. Maria

    Healthcare brings the issues of scale, privacy, and access into sharp focus. Jules points to Glow, an open-source project for genomic analysis, and describes Regeneron using it for drug discovery with large genomic datasets. The general lesson is that genomics is one area where the size and complexity of the data make scalable pipelines especially valuable.

  42. Simon

    For personal or wearable health data, he stresses that collection and access rules are not just technical decisions. Data collectors and curators must decide what to collect and how it may be exposed. Tools can help anonymize, secure, and encrypt information, and organizations must account for applicable requirements such as HIPAA.

  43. Maria

    The management layer can help enforce those decisions through access controls. For example, different users might be permitted to see different rows or columns, or some information might be anonymized for one user while remaining available to someone with broader authorization. The technology can support governance, but people still have to establish appropriate policies.

  44. Simon

    When someone asks whether Delta Lake can sell insights to other companies, Jules clarifies that Delta Lake is a storage and management technology, not a data-selling business. Databricks, he says, provides managed services and tools for processing and securing a customer’s data; what an organization ultimately does with its insights is a separate question.

  45. Maria

    Another question asks how to synchronize a model with the application that uses it. The workflow Jules describes starts when a model is registered and moves to staging. Tests can run against validation data, and, if the model passes and is approved, it can be promoted to production and deployed for inference.

  46. Simon

    Once deployed, the model’s predictions might be returned through a service, used for batch inference, or sent to a lake for dashboards and further analysis. The same workflow can connect model monitoring to development: if performance drifts, the team can be notified and begin training or evaluating an updated model.

  47. Maria

    The audience also asks whether data must always be brought to one central location. Jules gives the example of edge inference: a small device with limited resources can run a model locally and alert a central system when its sensor detects something important. The training may happen elsewhere, with a model later deployed back to the device.

  48. Simon

    He points to TensorFlow Lite as one option for running models on small devices, and describes conservation cameras as an example of edge object detection. The device may be able to infer from its local sensor data without having the resources to train the model. This can reduce the need to send every observation to a central location immediately.

  49. Maria

    Koalas is another technology Jules briefly introduces. He describes its API as similar to pandas, but intended to let users do exploratory data analysis across a Spark cluster rather than being limited to the data that fits on one machine. The purpose is to make familiar data-analysis work possible at distributed scale.

  50. Simon

    So the episode’s big picture is a connected one: the lakehouse aims to combine flexible, scalable storage with reliable table management and performant queries. Delta Lake supplies key management features in the example Jules presents, while MLflow helps teams track experiments, reproduce work, package and deploy models, and manage their lifecycle.

  51. Maria

    And the technology works best as part of a team process. Reliable, fresh data; thoughtful governance; reproducible experiments; and clear collaboration among data engineers, analysts, data scientists, and machine-learning engineers all matter. That’s why Jules describes data as a center of gravity—and why the architectures and workflows around it need to evolve with the data.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent