Co Computational Structures in Data Science
UC Berkeley EECS Lecturer Michael Ball
UC Berkeley | Computer Science 88 | Michael Ball
Ab Abstra raction Lecturer Michael Ball UC Berkeley | Computer - - PowerPoint PPT Presentation
Co Computational Structures in Data Science UC Berkeley EECS Ab Abstra raction Lecturer Michael Ball UC Berkeley | Computer Science 88 | Michael Ball Ab Abstra raction Detail removal The act of leaving out of consideration one or
UC Berkeley EECS Lecturer Michael Ball
UC Berkeley | Computer Science 88 | Michael Ball
UC Berkeley | Computer Science 88 | Michael Ball
“The act of leaving out of consideration
“The process of formulating general concepts by abstracting common properties of instances”
Henri Matisse “Naked Blue IV”
2
UC Berkeley | Computer Science 88 | Michael Ball
3
UC Berkeley | Computer Science 88 | Michael Ball
4
UC Berkeley | Computer Science 88 | Michael Ball
5
UC Berkeley | Computer Science 88 | Michael Ball
The London Underground 1928 Map & the 1933 map by Harry Beck.
6
01/28/19 UCB CS88 Sp19 L1
UC Berkeley | Computer Science 88 | Michael Ball
– Functions (e.g., sin x) – Hiring contractors – Application Programming Interfaces
– Technology (e.g., cars)
– And the abstraction layers are
(the interface, or specification, or contract)
This is where / how / when / by whom it is actually built, which is done according to the interface, specification, or contract. We only need to worry about the interface, or specification, or contract NOT how (or by whom) it’s built
01/19/18 UCB CS88 Sp18 L1
7
UC Berkeley | Computer Science 88 | Michael Ball
01/19/18 UCB CS88 Sp18 L1
8
UC Berkeley | Computer Science 88 | Michael Ball
9
UC Berkeley | Computer Science 88 | Michael Ball
10
UC Berkeley | Computer Science 88 | Michael Ball
11
UC Berkeley | Computer Science 88 | Michael Ball
12
7 8 + 5 1
least significant digit of result carry (MSD)
UC Berkeley | Computer Science 88 | Michael Ball
13
+
LSB result carry (MSD) 1 1 1 1 1 1 1 1 1 1 12 14 26 +
UC Berkeley | Computer Science 88 | Michael Ball
14
UC Berkeley | Computer Science 88 | Michael Ball
15
UC Berkeley | Computer Science 88 | Michael Ball
16
UC Berkeley | Computer Science 88 | Michael Ball
17
UC Berkeley | Computer Science 88 | Michael Ball
18
UC Berkeley | Computer Science 88 | Michael Ball
– The GUI look and feel is built out of files, directories, system code, etc.
19
UC Berkeley | Computer Science 88 | Michael Ball
20
UC Berkeley | Computer Science 88 | Michael Ball
21
UC Berkeley EECS Lecturer Michael Ball
UC Berkeley | Computer Science 88 | Michael Ball
UC Berkeley | Computer Science 88 | Michael Ball
23
UC Berkeley | Computer Science 88 | Michael Ball
24
def <function name> (<argument list>) :
UC Berkeley EECS Lecturer Michael Ball
UC Berkeley | Computer Science 88 | Michael Ball
UC Berkeley | Computer Science 88 | Michael Ball
26
UC Berkeley | Computer Science 88 | Michael Ball
27
UC Berkeley | Computer Science 88 | Michael Ball
28
def <function name> (<argument list>) : return
UC Berkeley | Computer Science 88 | Michael Ball
29
UC Berkeley | Computer Science 88 | Michael Ball
30
Python Style Guide: https://www.python.org/dev/peps/pep-0008
UC Berkeley EECS Lecturer Michael Ball
UC Berkeley | Computer Science 88 | Michael Ball
UC Berkeley | Computer Science 88 | Michael Ball
32
UC Berkeley EECS Lecturer Michael Ball
UC Berkeley | Computer Science 88 | Michael Ball
UC Berkeley | Computer Science 88 | Michael Ball
34
UC Berkeley | Computer Science 88 | Michael Ball
35