Commit 442cf58a authored by Thomas Torsney-Weir's avatar Thomas Torsney-Weir

update examples

parent 3d8f6d62
...@@ -6,8 +6,9 @@ packages! ...@@ -6,8 +6,9 @@ packages!
## Part 1 - Python (30 points) ## Part 1 - Python (30 points)
The first part of this assignment is intended to get you up and running with The first part of this assignment is intended to get you up and running with
Python. We have provided a repository on [gitlab](). Please use the file Python. We have provided a repository on
`l1p1.py` in this file to write your code. [gitlab](https://gitlab.cs.univie.ac.at/torsnet6cs/fda-assignment-regression).
Please use the file `l1p1.py` in this file to write your code.
In the repository we have also provided some test cases which you can use In the repository we have also provided some test cases which you can use
to test your code. You'll need to install some packages first though. So set to test your code. You'll need to install some packages first though. So set
...@@ -80,7 +81,7 @@ Examples: ...@@ -80,7 +81,7 @@ Examples:
``` ```
>>> cubic(np.array([1,2,3,4]), np.array([[1,2,3,4],[5,6,7,8],[9,10,11,12],[13,14,15,16]])) >>> cubic(np.array([1,2,3,4]), np.array([[1,2,3,4],[5,6,7,8],[9,10,11,12],[13,14,15,16]]))
??? 742
``` ```
## Part 2 - Regression analysis (70 points) ## Part 2 - Regression analysis (70 points)
...@@ -136,7 +137,8 @@ validation results for each model. ...@@ -136,7 +137,8 @@ validation results for each model.
### Converting a Jupyter notebook to pdf ### Converting a Jupyter notebook to pdf
Jupyter comes with a function called [nbconvert]() that can convert Juyter Jupyter comes with a function called
[nbconvert](https://github.com/jupyter/nbconvert) that can convert Juyter
notebooks to a variety of formats. To convert your notebook to pdf you'll also notebooks to a variety of formats. To convert your notebook to pdf you'll also
need LaTeX and [pandoc](https://pandoc.org/) installed. Once you've done this need LaTeX and [pandoc](https://pandoc.org/) installed. Once you've done this
you can convert the notebook from the command line: you can convert the notebook from the command line:
...@@ -147,10 +149,11 @@ you can convert the notebook from the command line: ...@@ -147,10 +149,11 @@ you can convert the notebook from the command line:
### Procedure and Submission ### Procedure and Submission
Please submit a ZIP-document with your answers to [Moodle](). Use the following Please submit a ZIP-document with your answers to
naming scheme for your submission: “lastname_matrikelnumber_A1.zip”. The naming [Moodle](https://moodle.univie.ac.at/mod/assign/view.php?id=2862793). Use the
of the files is important. If you do not follow the submission instructions, following naming scheme for your submission: “lastname_matrikelnumber_A1.zip”.
then you will receive a grade of 0 for the lab. The naming of the files is important. If you do not follow the submission
instructions, then you will receive a grade of 0 for the lab.
### Late submission ### Late submission
......
...@@ -9,5 +9,5 @@ def test_case_1(): ...@@ -9,5 +9,5 @@ def test_case_1():
[5, 6, 7, 8], [5, 6, 7, 8],
[9, 10, 11, 12], [9, 10, 11, 12],
[13, 14, 15, 16]]) [13, 14, 15, 16]])
assert l1p1.cubic(x, A) == 45 assert l1p1.cubic(x, A) == 742
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment