Introduction to Programming and Machine Learning

asharjavidaj 10 views 21 slides Feb 25, 2025
Slide 1
Slide 1 of 21
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21

About This Presentation

Programming and intro to the ML


Slide Content

Completing Week 1 Comments (#) Nested Statements

Completing Week 1 For, While

Completing Week 1 Break—Exits loop if condition satisfied Continue—Skips next line if condition satisfied Pass– A Null (Placeholder) Operator

Enumerate Accessing List Elements with track of their indices

Lambda Function A single-lined function that returns only one value and has no name

Map and Filter Map: Performs a function on each member element of a list Filter: Removes all elements not fulfilling a condition

File Handling

File Handling https://www.askpython.com/python/python-file-handling

Exception Handling

Raising an Error

Defining Classes and Objects Class: A new type of function Object: Multiple instances of a class

Defining Classes and Objects Types: Instance Class Methods All the functions within a class Attributes All the variables within a class

Constructors and Destructors

Getters and Setters

Public & Private

Inheritance

Single Inheritance

Polymorphism

Abstraction
Tags