CourseWare Wiki
Switch Term
Winter 2024 / 2025
Winter 2023 / 2024
Winter 2022 / 2023
Winter 2021 / 2022
Winter 2020 / 2021
Winter 2019 / 2020
Winter 2018 / 2019
Older
Search
Log In
old
courses
be5b33prg
homeworks
spam
step4
Warning
This page is located in archive. Go to the latest version of this
course pages
.
Differences
This shows you the differences between two versions of the page.
View differences:
Side by Side
Inline
Go
Link to this comparison view
Both sides previous revision
Previous revision
2015/11/25 15:56 xposik [Preparation]
2015/10/15 15:18 xposik [Preparation]
2015/10/15 15:18 xposik [Preparation]
2015/10/15 15:16 xposik [Preparation]
2015/10/15 15:15 xposik [Simple filters]
2015/10/15 15:14 xposik [Preparation]
2015/10/15 15:13 xposik [Preparation]
2015/10/15 14:01 xposik created
Go
2015/11/25 15:56 xposik [Preparation]
2015/10/15 15:18 xposik [Preparation]
2015/10/15 15:18 xposik [Preparation]
2015/10/15 15:16 xposik [Preparation]
2015/10/15 15:15 xposik [Simple filters]
2015/10/15 15:14 xposik [Preparation]
2015/10/15 15:13 xposik [Preparation]
2015/10/15 14:01 xposik created
Go
courses:be5b33prg:homeworks:spam:step4 [2015/10/15 15:18]
xposik
[Preparation]
courses:be5b33prg:homeworks:spam:step4 [2015/11/25 15:56]
xposik
[Preparation]
Line 11:
Line 11:
=====Preparation=====
=====Preparation=====
+
+
Required features of Python:
+
+
* You should already know how to work with text files.
+
* How to get a directory listing using function [[http://docs.python.org/py3k/library/os.html?highlight=listdir#os.listdir|os.listdir()]]
You should think about and write down on a piece of paper:
You should think about and write down on a piece of paper:
Line 16:
Line 21:
* What is the difference (from the implementation standpoint) between a learning filter and a non-learning filter?
* What is the difference (from the implementation standpoint) between a learning filter and a non-learning filter?
* Is there any part which all of the spam filters have in common?
* Is there any part which all of the spam filters have in common?
-
* Is it better to create a spam filter as a function or as a class with methods and properties?
-
* What are the minimal requirements for such an implementation? What does it have to be able to do, and what inputs and what outputs does it have to have?
-
+
**Optional (for more advanced programmers):** Read how the //inheritance
of OOP
// works in Python. You can find more information here:
-
**Optional (for more advanced programmers):** Read how the //inheritance//
in OOP
works
and how it is used
in Python. You can find more information here:
+
* in the official [[https://docs.python.org/3/tutorial/classes.html#inheritance|Python tutorial]], or
* in the official [[https://docs.python.org/3/tutorial/classes.html#inheritance|Python tutorial]], or
* in {[a4b99rph:Wentworth2012]}, [[http://openbookproject.net/thinkcs/python/english3e/inheritance.html|chapter 23]].
* in {[a4b99rph:Wentworth2012]}, [[http://openbookproject.net/thinkcs/python/english3e/inheritance.html|chapter 23]].
-
-
-
/*
-
**Also read [[http://docs.python.org/library/sys.html#sys.argv|how you can detect script parameters]] from command line.**
-
*/
courses/be5b33prg/homeworks/spam/step4.txt
· Last modified: 2015/11/25 15:56 by
xposik