Lecture slides on the software engineering challenges unique to machine learning systems, for an undergraduate software engineering course. After contrasting traditional programming with machine learning, the deck examines why the usual tools for managing complexity—abstraction, reuse, and composition—are harder to apply to ML, given the lack of clear specifications and modularity. It covers concept drift, feedback loops (illustrated with crime-prediction and recommendation examples), and the accumulation of technical debt in ML systems, including the role and pitfalls of notebooks in moving from experimentation to production. Based on "Machine Learning in Production/AI Engineering" by Christian Kaestner and Eunsuk Kang (Carnegie Mellon University).
more »
« less
This content will become publicly available on November 26, 2026
Introduction to Machine Learning and Machine Learning Systems
Lecture slides introducing machine learning and machine learning systems for an undergraduate software engineering course. Topics include what machine learning is and how it differs from traditional programming, foundation models, the major types of learning (supervised, unsupervised, reinforcement, and others), and applications across domains. Using a food-delivery time-prediction case study, the deck walks through a typical ML pipeline—data collection and cleaning, feature engineering, model training, and evaluation—and covers evaluation methods (precision and recall, confusion matrices, error measures) along with underfitting versus overfitting and the realities of learning and evaluation in production. Based on "Machine Learning in Production/AI Engineering" by Christian Kaestner and Eunsuk Kang (Carnegie Mellon University).
more »
« less
- Award ID(s):
- 2343750
- PAR ID:
- 10686362
- Publisher / Repository:
- CUNY Academic Works.
- Date Published:
- Subject(s) / Keyword(s):
- machine learning machine learning systems ML pipeline supervised learning model evaluation software engineering
- Sponsoring Org:
- National Science Foundation
More Like this
-
-
Cannabinoids comprise a diverse class of bioactive natural products with important therapeutic potential, but efficient microbial production remains limited by pathway bottlenecks and challenges in engineering key biosynthetic enzymes. Here, we develop a machine learning-guided approach to engineer olivetolic acid cyclase (OAC), a critical control point in cannabinoid biosynthesis that governs both pathway flux and product selectivity. We first generated sequence-function data from 152 CsOAC variants spanning homolog screening, recombination, and mutagenesis libraries. Using these measurements, we trained multi-task models to predict pathway-level production of olivetolic acid (OA), divarinic acid (DVA), and competing byproducts, together with a variational autoencoder that captured evolutionary constraints across the broader enzyme family. Across three rounds of iterative design and testing, this approach identified CsOAC variants that substantially increased production and selectivity of both OA and DVA. When introduced into engineeredYarrowia lipolyticastrains, these variants enabled production of tetrahydrocannabinolic acid (THCA) and the minor cannabinoid tetrahydrocannabivarinic acid (THCVA) at titers exceeding previous yeast systems. Analysis of top-performing variants revealed mutations influencing substrate selectivity and catalytic performance, providing insight into the determinants of CsOAC function. More broadly, this work demonstrates how machine learning-guided enzyme engineering can improve pathway performance and expand access to major and minor cannabinoids through microbial biosynthesis.more » « less
-
Organizations rely on machine learning engineers (MLEs) to deploy models and maintain ML pipelines in production. Due to models' extensive reliance on fresh data, the operationalization of machine learning, or MLOps, requires MLEs to have proficiency in data science and engineering. When considered holistically, the job seems staggering---how do MLEs do MLOps, and what are their unaddressed challenges? To address these questions, we conducted semi-structured ethnographic interviews with 18 MLEs working on various applications, including chatbots, autonomous vehicles, and finance. We find that MLEs engage in a workflow of (i) data preparation, (ii) experimentation, (iii) evaluation throughout a multi-staged deployment, and (iv) continual monitoring and response. Throughout this workflow, MLEs collaborate extensively with data scientists, product stakeholders, and one another, supplementing routine verbal exchanges with communication tools ranging from Slack to organization-wide ticketing and reporting systems. We introduce the 3Vs of MLOps: velocity, visibility, and versioning --- three virtues of successful ML deployments that MLEs learn to balance and grow as they mature. Finally, we discuss design implications and opportunities for future work.more » « less
-
The recent surge in artificial intelligence (AI) developments has been met with an increase in attention towards incorporating ethical engagement in machine learning discourse and development. This attention is noticeable within engineering education, where comprehensive ethics curricula are typically absent in engineering programs that train future engineers to develop AI technologies [1]. Artificial intelligence technologies operate as black boxes, presenting both developers and users with a certain level of obscurity concerning their decision-making processes and a diminished potential for negotiating with its outputs [2]. The implementation of collaborative and reflective learning has the potential to engage students with facets of ethical awareness that go along with algorithmic decision making – such as bias, security, transparency and other ethical and moral dilemmas. However, there are few studies that examine how students learn AI ethics in electrical and computer engineering courses. This paper explores the integration of STEMtelling, a pedagogical storytelling method/sensibility, into an undergraduate machine learning course. STEMtelling is a novel approach that invites participants (STEMtellers) to center their own interests and experiences through writing and sharing engineering stories (STEMtells) that are connected to course objectives. Employing a case study approach grounded in activity theory, we explore how students learn ethical awareness that is intrinsic to being an engineer. During the STEMtelling process, STEMtellers blur the boundaries between social and technical knowledge to place themselves at the center of knowledge production. In this WIP, we discuss algorithmic awareness, as one of the themes identified as a practice in developing ethical awareness of AI through STEMtelling. Findings from this study will be incorporated into the development of STEMtelling and address challenges of integrating ethics and the social perception of AI and machine learning courses.more » « less
-
Catalytic processes are used in about 1/3 of US manufacturing, from the field of chemical engineering to renewable energy. Assessing the activity of single-molecules, or individual molecules, is necessary to the development of efficient catalysts. Their heterogeneity structure leads to particle-specific catalytic activity. Experimentation with single-molecules can be time consuming and difficult. We purpose a Machine learning (ML) model that allows chemical researchers to run shorter single-molecule experiments to obtain the same level of results. We use common and widely understood ML methods to reduce complexity and enable accessibility to the chemical engineering community. We reduce the experiment time by up to 83%. Our evaluation shows that a small data set is sufficient to train an acceptable model. 300 experiments are needed, including the validation set. We use a well understood multilayer perceptron (MLP) model. We show that more complex models are not necessary and simpler methods are not sufficient.more » « less
An official website of the United States government
