Review of Caches and Memory Hierarchy - Understanding Single Processor Performance

Review of Caches and Memory Hierarchy - Understanding Single Processor Performance
Slide Note
Embed
Share

Most applications in a single processor run at only 10-20% of the processor peak, with performance loss mainly in the memory system. This review covers the typical memory hierarchy, idealized uniprocessor model, and real-world challenges in optimizing program performance.

  • Performance
  • Memory Hierarchy
  • Cache
  • Processor
  • Single Machine

Uploaded on Mar 17, 2025 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. ISEA Week 5 ISEA Week 5 Machine Learning Machine Learning Fundamentals Fundamentals Lovenoor (Lavi) Aulck Lovenoor (Lavi) Aulck

  2. Outline Outline > Level-setting > Model Selection > Warm Up Exercise > Machine Learning Overview > Basics > Programming Exercise

  3. Who Am I? Who Am I? PhD Student at UW Focus on how higher ed institutions can better use their data Whitaker International Research Fellowship in Amsterdam, NL BS in BioE BA in Comp. Religion 2011 2013 2014 2012 2014 - 19 2019 - Now MS in BioE from UW Research Engineer at UW Medical Center Data Scientist in UW Provost s Office

  4. You Will Need You Will Need > You will need to have the following python packages installed and working for the demos: pandas numpy seaborn (and/or matplotlib) sklearn statsmodels random

  5. A Data Scientist A Data Scientist Stephan Kolassa

  6. A Data Scientist A Data Scientist Domain expertise Stephan Kolassa

  7. A Data Scientist A Data Scientist Domain expertise Critical thinking, creativity, and experimental design? Stephan Kolassa

  8. A Data Scientist A Data Scientist Domain expertise Critical thinking, creativity, and experimental design? Stephan Kolassa

  9. A Data Scientist A Data Scientist Joe Blitzstein

  10. A Data Scientist A Data Scientist Ask an interesting question Explore the data Communicate and visualize Get the data Model the data

  11. A Data Scientist A Data Scientist Ask an interesting question Clean/Curate the data Communicate and visualize Explore the data Get the data Model the data

  12. A Data Scientist A Data Scientist Data ethics Ask an interesting question Clean/Curate the data Communicate and visualize Explore the data Get the data Model the data

  13. A Data Scientist A Data Scientist Data ethics Ask an interesting question Clean/Curate the data Communicate and visualize Explore the data Get the data Model the data

  14. How To Build A Model (A Game) How To Build A Model (A Game) Examine outputs from regression model Build a regression model using explanatory variables of interest Expand and iterate on model Clean/curate the data Explore the data and calculate descriptive statistics of the variables in the dataset Examine outputs from expanded regression model We specify a question and ensure we have the data to answer the question

  15. How To Build A Model (A Game) How To Build A Model (A Game) We specify a question and ensure we have the data to answer the question Clean/curate the data Explore the data and calculate descriptive statistics of the variables in the dataset Build a regression model using explanatory variables of interest Examine outputs from regression model Expand and iterate on model Examine outputs from expanded regression model

  16. Multiple Paradigms of Regression Multiple Paradigms of Regression > Statistics/economics: explain a relationship Ties in with the idea of inference

  17. Multiple Paradigms of Regression Multiple Paradigms of Regression > Statistics/economics: explain a relationship Ties in with the idea of inference > Machine learning: predict the future Ties in with the idea of prediction

  18. Example: Earnings Example: Earnings > Inference What are the determinants of income? Do people with children earn more? On average, how much more will a person earn for each additional year of schooling?

  19. Example: Earnings Example: Earnings > Inference What are the determinants of income? Do people with children earn more? On average, how much more will a person earn for each additional year of schooling? > Prediction What is the predicted income for person X? What are the descriptors of a person with income Y?

  20. Example: Earnings Example: Earnings

  21. Example: Earnings Example: Earnings > Linear regression offers a concise summary of the mean of one variable as a function of the other variable(s) through two parameters: the slope and intercept of the line

  22. Example: Earnings Example: Earnings > Linear regression offers a concise summary of the mean of one variable as a function of the other variable(s) through two parameters: the slope and intercept of the line > Model:

  23. Example: Earnings Example: Earnings > Linear regression offers a concise summary of the mean of one variable as a function of the other variable(s) through two parameters: the slope and intercept of the line > Model: > Have we measured the causal effect of an additional year of education on wages?

  24. Example: Earnings Example: Earnings > Linear regression offers a concise summary of the mean of one variable as a function of the other variable(s) through two parameters: the slope and intercept of the line > Model: > Have we measured the causal effect of an additional year of education on wages? With another year of education, will I definitely earn $2,518 more?

  25. The Model Is Right? The Model Is Right ? All models are wrong but some are useful > - George Box all models are limited by the validity of the assumptions on which they ride > - Collier, Sekhon, and Stark Assumptions behind models are rarely articulated, let alone defended. > - David Freedman

  26. Models for Predictions Models for Predictions > All models are, in small or large part, wrong Miss features, omit dependencies, make assumptions, etc

  27. Models for Predictions Models for Predictions > All models are, in small or large part, wrong Miss features, omit dependencies, make assumptions, etc > Models provide a simplification Require assumptions Require some understanding/intuition

  28. Models for Predictions Models for Predictions > All models are, in small or large part, wrong Miss features, omit dependencies, make assumptions, etc > Models provide a simplification Require assumptions Require some understanding/intuition > But what do we need for prediction?

  29. Models for Predictions Models for Predictions > But what do we need for prediction? If all we care about is predicting some target variable, maybe we can just ignore some of the messy assumptions and focus on specific metrics?

  30. Models for Predictions Models for Predictions > But what do we need for prediction? If all we care about is predicting some target variable, maybe we can just ignore some of the messy assumptions and focus on specific metrics? > A critical concern of machine learning is the ability to build models that accurately generalize while a critical concern of econometrics is the ability to build models that capture relationships

  31. What is Machine Learning? What is Machine Learning? > Machine learning is the science of getting computers to act without being explicitly programmed > Machine learning is a scientific discipline that explores the construction and study of algorithms that learn from data > Machine learning is a natural outgrowth at the intersection of computer science and statistics

  32. What is Machine Learning? What is Machine Learning? Artificial Intelligence Machine Learning Deep Learning ?? Borrowed from Nvidia 1950s 2010s

  33. What is Machine Learning? What is Machine Learning? Traditional Programming Data Computer Output Program Machine Learning ?

  34. What is Machine Learning? What is Machine Learning? Traditional Programming Data Output Computer Program Machine Learning Data Program Computer Output

  35. What is Machine Learning? What is Machine Learning? Learning is (like) farming, which lets nature do most of the work. Farmers combine seeds and nutrients to grow crops. Learners combine knowledge with data to grow programs. - Pedro Domingos

  36. Flavors of Machine Learning Flavors of Machine Learning > Supervised learning > Unsupervised learning > Semi-supervised learning > Reinforcement learning

  37. Supervised Learning Supervised Learning > We know the correct answer for values We re trying to model the input (independent) variables as they relate to the output (dependent) variables > Examples Predicting whether a student will graduate from a university Predicting salary upon graduation Other examples?

  38. Unsupervised Learning Unsupervised Learning > We don t know the correct answer for values We re trying to discover underlying structure > Examples Extracting topics/themes from textual surveys of students Understanding the relationships between different departments/programs Finding bottlenecks in student course offerings

  39. Pop Quiz Pop Quiz Would you address each of the below with a supervised or unsupervised learning algorithm? > Given email labelled spam or not, build a spam detector > Given news articles on the web, group them into sets based on topic > Given a database of customer data, find market segments/customer groups > Given patients with a disease, determine if new patients have the disease > Given phone records of individuals, determine which are the wealthiest > Given phone records of individuals and survey data about their income, predict the incomes of new subscribers

  40. Semi Semi- -supervised Learning supervised Learning > We know the correct answer for some values The input data contains both labelled and unlabeled instances > Examples?

  41. Reinforcement Learning Reinforcement Learning > We develop agents that seek to maximize reward We re trying to build models that will seek to maximize some gain > Examples Creating personalized curricula for students Creating educational content for students

  42. ML Basics ML Basics > Thousands of ML algorithms No one knows them all Often tweaks or small improvements to existing approaches

  43. ML Basics ML Basics > Thousands of ML algorithms No one knows them all Often tweaks or small improvements to existing approaches > Every ML algorithm has three components The representation (the model) The evaluation (the cost/objective function) The optimization (the search)

  44. Designing for Prediction: Key Ideas Designing for Prediction: Key Ideas > Generalization and overfitting > Training, validation, and test data > Evaluation metrics > Baselines > Error analysis

  45. Modeling Education and Income Modeling Education and Income

  46. Modeling Education and Income Modeling Education and Income

  47. Modeling Education and Income Modeling Education and Income

  48. Modeling Education and Income Modeling Education and Income One Variable Kitchen Sink Plotting

  49. Modeling Education and Income Modeling Education and Income One Variable Kitchen Sink Plotting Which of these would you trust for predictions when education is 8 years?

  50. Modeling Education and Income Modeling Education and Income One Variable Kitchen Sink Plotting Which of these would you trust for predictions when education is 8 years? What about 16 years? What about 0 years?

More Related Content