Code to get students started with STK-INF4000 homework. The repository contains
- Boilerplate code
- Tests
The idea is that you complete the code to make the tests pass, and thus completing your homework assignment (or parts of it).
The homework assignments consist of two parts. The Javascript bit can be found in the homework.js file. The tests can be run by simply opening page.html in a browser.
The python part can be found as usual in homework.py and tests.py. The tests can be run using the two commands
FLASK_APP=homework.py flask run --reload
python -m unittest tests
We use NLTK
and plain python. Hence you can
run this week's tests using plain python:
python tests.py
For week 7 we use Apache Spark for the first time. This means in particular that the tests need to be executed using Spark. To do so, you issue the following commands from the week07 directory.
/path/to/spark-2.1.0-bin-hadoop2.7/bin/spark-submit tests.py
The templates are located in the folder week06 and the instructions to execute the tests are identical to last week's.
There were no programming assignments for week 5.
The assignments and tests for week 4 are located in the same folder and the tests can be run by calling from the week04 directory
python tests.py
You'll find the boilerplate code in the file homework.py, together with some descriptions.
The tests can be found in the file week03/tests/test_hw.py and can be run from the directory week03 using the command
python -m unittest tests.test_hw