Hi all,
Apologies, but I just noticed that the supplementary exam is on Friday morning for most students. Please follow the instructions in the email sent by the School.
The exam in the afternoon is reserved for students with clashed in the timetable.
Regards,
Gustavo.
Dear students,
The supplementary exam has been scheduled for Friday, 12 September, from 1:45 pm to 5:00 pm in J17, Room 307 (Kora). Only students who have received a communication from the School are permitted to take the supplementary exam.
The conditions will be the same as the final exam:
Additional instructions from the School:
Regards,
Gustavo
Dear Students,
We have released the marks for the exam and quizzes.
You can access your results on GIVE at the following link: https://cgi.cse.unsw.edu.au/~give/Student/sturec.php
Please note the following details:
These are the histograms for marks before and after scaling.
21.40 |1 |
24.80 |1 |
28.20 |2 |
31.60 |5 | *
35.00 |3 |
38.40 |10 | **
41.80 |18 | ***
45.20 |12 | **
48.60 |9 | *
52.00 |14 | ***
55.40 |19 | ****
58.80 |8 | *
62.20 |9 | *
65.60 |6 | *
69.00 |6 | *
72.40 |7 | *
75.80 |3 |
79.20 |2 |
82.60 |1 |
86.00 |3 |
-------- |------- | -------
N= |139
24.85 |1 |
28.81 |1 |
32.77 |2 |
36.72 |5 | *
40.67 |3 |
44.63 |10 | **
48.58 |18 | ***
52.54 |12 | **
56.49 |9 | *
60.45 |14 | ***
64.41 |19 | ****
68.36 |8 | *
72.31 |9 | *
76.27 |5 | *
80.22 |8 | *
84.18 |4 |
88.13 |5 | *
92.09 |2 |
96.04 |1 |
100.00 |3 |
-------- |------- | -------
N= |139
Regards,
Gustavo.
Dear students,
We released the marks for Assignment 2. You can see them by accessing: https://cgi.cse.unsw.edu.au/~give/Student/sturec.php
Let me know if you have any issues accessing the marks.
The exams are still being marked, and we hope the marks will be released in the next couple of days.
Regards,
Gustavo.
Dear students,
CSE has advised against the use of USB drives in the exam, as the virtual environment is minimal, and it may cause issues with the isolation mechanism implemented for the exam.
To reduce the impact of not having access to USB drives, I have packed the exam files with folders containing PDFs of the course slides and theory tutorial solutions, together with tutorial library files and notebooks of previous exams.
All other consultation material will need to be printed or handwritten.
Regards,
Gustavo.
Dear students,
See below the results for the final leaderboard. The final rank may change in case of a late submission or removal of duplicate submissions. We are still marking assignment 2, and it will take a few days to release the marks.
Regards,
Gustavo.
Rank zID Average time per day (s) Average cost per day Warnings and comments 0 0000000 0.00 45920.4 Optimal classifier 1 5592970 0.62 64000.2 2 5509189 0.24 64130.8 3 5463674 2.35 64174.6 4 5236444 1.90 64285.4 5 5476880 36.91 64603.3 6 5447431 2.74 65075.3 7 5534783 1.82 65089.7 8 5354333 22.01 65165.2 9 5490499 3.35 65353.6 10 5548130 10.57 65486.6 11 5324155 6.00 65549.7 12 5516689 1.53 65633.2 13 5474746 2.14 65684.7 14 5513691 70.88 65791.3 15 5303790 3.73 65796.8 16 5416118 0.15 65828.3 17 5394835 2.98 65844.2 18 5556062 0.58 65848.6 19 5500474 5.98 65912.6 20 5495303 0.81 66105.4 21 5553011 4.47 66198.0 22 5447603 0.62 66260.9 23 5613314 1.67 66671.0 24 5456014 0.93 67078.7 25 5472432 1.04 67301.3 26 5509692 4.33 67350.1 27 5530380 0.72 67377.2 28 5317086 5.85 67402.3 29 5314283 0.37 67454.2 30 5610033 130.91 67456.2 31 5489858 2.00 67482.2 32 5417557 0.38 67504.2 33 5417592 4.09 67523.6 34 5359068 0.90 67550.5 35 5497578 1.60 67566.0 36 5589818 3.63 67613.8 37 5335051 6.61 67622.7 38 5513638 0.48 67735.0 39 5489595 2.77 67770.8 40 5527738 3.12 67784.0 41 5042599 0.25 68349.6 42 5482080 5.37 68415.1 43 5500877 9.51 68524.3 44 5509092 0.59 68648.6 45 5526508 0.21 68714.9 46 5538733 3.03 68730.1 47 5533101 1.66 68777.2 48 5488966 2.58 68808.1 49 5440687 0.26 68878.1 50 5510609 0.08 68930.8 51 5591439 5.37 69004.5 52 5479795 15.31 69053.9 53 5502828 1.96 69150.6 54 5384104 8.67 69255.0 55 5420397 0.80 69268.8 56 3536046 6.14 69338.5 57 5502385 9.58 69362.0 58 5473688 0.26 69551.0 59 5418222 10.95 69775.6 60 5498562 17.19 69807.3 61 5540523 3.38 69837.8 62 5616950 4.35 69872.3 63 5546853 2.66 70039.9 64 5418724 4.43 70250.2 65 5491736 48.27 70254.5 66 5531150 0.07 70305.5 67 5507277 2.06 70374.9 68 5270589 0.67 70409.5 69 5503696 1.19 70419.3 70 5536945 0.91 70502.0 71 5570355 2.97 70542.3 72 5538140 5.37 70662.7 73 5472859 13.27 70669.8 74 5619865 0.58 70939.1 75 5512554 0.41 70945.4 76 5514415 0.16 71008.4 77 5493317 21.59 71012.0 78 5567643 29.07 71277.4 79 5534816 1.00 71474.9 80 5483184 0.16 71690.9 81 5522942 8.77 71700.4 82 5337650 0.34 71853.1 83 5536047 0.85 71919.8 84 5522461 16.92 72426.3 85 5527388 1.24 72772.7 86 5600945 0.32 72800.0 87 5504248 0.18 72899.0 88 5494507 1.80 73133.0 89 5419385 0.13 73535.1 90 5619776 0.23 73678.6 91 5442313 82.28 73974.6 92 5476376 0.85 74753.6 93 5526032 1.41 74760.6 94 5473381 0.50 75043.6 95 5410405 1.77 75325.2 96 5518763 0.20 75409.4 97 5591496 2.54 75503.7 98 5613007 9.54 75969.6 99 5549533 1.78 76194.7 100 5538454 2.86 76235.6 101 5117354 0.59 76251.5 102 5502668 0.08 76311.2 103 5512924 1.58 77356.1 104 5358438 1.84 78324.6 105 5507847 5.95 78931.0 106 5376912 58.11 79741.8 107 5544290 4.99 80910.5 108 5616367 0.00 81600.0 109 5499119 3.25 88491.6 110 5421232 0.34 128813.1 111 5346037 6.73 377564.0 112 5450574 1.82 385177.5 113 5360539 4.74 398213.5 5532112, Solution raises several exceptions 3527242, Missing solution.py 5477755, 'BSRoomHMM' object has no attribute 'max_occupancy' 5516119, No such file or directory: 'HMM_Model_params.json' 5469338, No such file or directory: './trained_bn.pkl'
Dear students,
These are the results for the second leaderboard.
The submissions with execution errors are listed below. Please ensure you have found the issues before the final submission. I will be unavailable to make any additional executions of solutions with runtime errors.
Good luck.
Gustavo.
Rank zID Average time per day (s) Average cost per day Warnings and comments
0 0000000 0.00 45937.6 Optimal classifier
1 5592970 0.69 63955.9
2 5587598 0.90 64172.1
3 5463674 1.14 64206.4
4 5527849 3.20 64215.0
5 5509189 0.24 64330.8
6 5476880 35.58 64899.5
7 5534783 1.85 64907.1
8 5447431 2.61 64974.2
9 5364829 0.25 65234.5
10 5416118 0.22 65237.8
11 5527738 3.11 65461.3
12 5303790 4.62 65670.8
13 5440601 64.76 65790.2
14 5324155 3.33 66033.7
15 5447603 0.68 66521.3
16 5456014 0.82 66873.4
17 5513638 0.46 67318.6
18 5610033 102.39 67396.8
19 5530380 0.74 67450.8
20 5317086 6.39 67536.6
21 5314283 0.46 67694.7
22 5497578 1.50 67767.8
23 5472432 1.93 67780.2
24 5042599 0.31 68212.3
25 5488966 4.63 68484.2
26 5591439 5.87 68549.3
27 5500877 9.78 68553.9
28 5168418 2.03 68637.5
29 5533101 1.54 68721.2
30 5479795 13.72 68932.4
31 5479798 27.98 68953.1
32 5509092 0.53 68957.4
33 5510609 0.18 68998.1
34 5516689 0.21 69130.5
35 5418222 20.37 69303.7
36 5556062 2.53 69527.5
37 5538140 4.53 70195.7
38 5616367 2.59 70404.0
39 5503696 1.51 70525.7
40 5531150 0.11 70693.5
41 5337650 0.56 70798.6
42 5493317 26.74 70845.7
43 5522942 8.54 71155.3
44 5376912 33.07 71287.9
45 5619865 0.83 71916.2
46 5423103 40.96 72187.5
47 5354333 14.51 72527.3
48 5346037 9.24 72648.7
49 5419385 0.29 72678.9
50 5504248 0.19 72858.8
51 5581147 0.67 73480.8
52 5553011 30.74 73767.5
53 5518763 0.26 74705.3
54 5549533 2.35 76197.6
55 5613007 9.76 76400.8
56 5514415 0.09 77143.2
57 5512924 1.76 77359.4
58 5473381 0.75 78388.7
59 5507847 5.96 79377.0
60 5544290 6.43 80579.6
0000000 0.00 81600.0 Greedy classifier
61 5613314 0.00 81600.0
62 5394835 0.00 81600.0
63 5538733 0.33 81600.0
64 5500474 0.54 81600.0
65 5499119 3.12 83230.5
66 5567643 21.60 83269.9
67 5546853 37.69 89519.7
68 5418724 3.33 89820.7
69 5421232 0.73 129182.1
70 5117354 105.81 148434.7
5537877 Failed to load solution.py: [Errno 2] No such file or directory: 'bayes_models.pkl'
5489595 invalid character '’' (U+2019) (fg.py, line 29)
5526508 Failed to load solution.py: No module named 'BayesNet'
5619776 list index out of range
5548130 Missing solution.py
5359068 [Errno 2] No such file or directory: 'params.pkl'
5522461 Failed to load solution.py: No module named 'lib'
5491736 Failed to load solution.py: [Errno 2] No such file or directory: 'xgboost_model.pkl'
5502385 Missing solution.py
5591496 15 is not in range
5490499 'NoneType' object has no attribute 'evidence'
5482080 dictionary update sequence element #0 has length 0; 2 is required
5384104 'Factor' object has no attribute 'inst_table'
Dear students,
UNSW has informed us that the COMP9418 final exam will be held on Monday, 18 August 2025, in the CSE labs. The exam will be in-person and invigilated, with a total duration of 3 hours and 15 minutes.
We will begin at 1:45 p.m. with:
- 5 minutes allocated for seating
- 10 minutes of reading time (no writing allowed)
The exam working time is from 2:00 p.m. to 5:00 p.m. AEST.
The exam will be delivered as a Jupyter notebook, and you must write all your answers directly in the notebook. It will consist of three parts:
- Multiple-choice questions
- Short-answer questions
- Python programming tasks
This is an open-book exam. You are allowed to bring:
- A USB flash drive containing materials such as lecture slides, tutorials, and past exams
- Printed materials, including hard copies of slides, notes, or textbooks
- A UNSW-approved calculator
Internet access will not be available during the exam. This includes WebCMS and all other online resources. Please ensure that you download any required material in advance and do not rely on accessing anything from the internet during the exam.
Your room and seat allocation are available at the following link:
https://cgi.cse.unsw.edu.au/~exam/25T2/seating/register.cgi/allocations/
Regards,
Gustavo.
Dear students,
Due to requests, we will have a second leaderboard on Friday evening. To participate, ensure you have submitted your latest assignment 2 solution by Friday, 6 p.m.
Regards,
Gustavo.
Dear students,
I have updated the Assignment 2 description in WebCMS to include some details about the marking criteria, including the procedure to compute performance marks.
Regards,
Gustavo.
Dear students,
The correct dates of the consultation sessions with Martin are: Tuesday and Wednesday, from 3 to 4 p.m.
These sessions will be online via Zoom: https://unsw.zoom.us/j/82623126075
Regards,
Gustavo.
Dear Students,
As I am travelling this week, Martin has kindly agreed to run the consultation sessions and assist you with any questions regarding Assignment 2.
The sessions will be held online on Tuesday and Thursday, from 3 to 4 p.m.
Please use the Zoom link below to join. Note that you must be logged into your UNSW Zoom account to access the meeting.
https://unsw.zoom.us/j/82623126075
Regards,
Gustavo.
Dear students,
I am travelling this and next week, and Martin has kindly agreed to replace me in the lectures. The lectures will occur at their usual time and location.
Reminders:
- Assignment 2 is due this Sunday at 6 pm.
- Quiz 8 is due this Sunday at 6 pm.
- myExperience survey is open. Your feedback is important to us.
The results for the assignment 2 leaderboard are the following:
Rank zID Average cost per day Average time per day (s) Warnings and comments
0 z0000000 45937.6 0.00 Optimal classifier
1 z5509189 63803.7 0.11
2 z5447431 64582.9 1.41
3 z5527849 65108.5 1.95
4 z5463674 65298.0 1.08
5 z5527738 65305.5 1.83
6 z5534783 65413.1 1.37
7 z5303790 65441.3 2.81
8 z5440601 65511.8 13.44
9 z5456014 66411.3 0.44
10 z5421232 66575.3 0.17
11 z5497578 67420.4 0.97
12 z5510609 69133.6 0.08
13 z5168418 69157.3 0.94
14 z5531150 69594.9 0.12
15 z5591439 69851.7 4.37
16 z5493317 70621.3 12.16
17 z5042599 70978.8 0.12
18 z5522942 71224.3 4.40
19 z5384104 72372.5 6.45
20 z5556062 73618.6 3.83
21 z5619776 73428.4 0.20
22 z5512924 77337.2 0.81
23 z5533101 77661.1 1.72
24 z5514415 78157.9 0.05
25 z5376912 78797.3 29.84
z0000000 81600.0 0.00 Greedy classifier
26 z5394835 81600.0 0.02
27 z5546853 87003.1 38.03
28 z5117354 104649.5 47.84 DiscreteFactors.py:160: RuntimeWarning: invalid value encountered in divide self.table = self.table/np.sum(self.table)
29 z5423103 189649.7 194.09
30 z5423103 200914.6 104.89
31 z5503696 361178.4 0.01
These solutions aborted during execution:
z5346037 Code aborted after a runtime exception z5359068 Code aborted after a runtime exception z5591496 AttributeError: Can't get attribute 'HiddenMarkovModel' z5567643 FileNotFoundError: [Errno 2] No such file or directory: 'data1.csv' z5587598 FileNotFoundError: [Errno 2] No such file or directory: 'hmm_params_all.pkl' z5538140 ModuleNotFoundError: No module named 'DiscreteFactors' z5522461 ModuleNotFoundError: No module named 'lib' z5513638 Code aborted after a runtime exception z5490499 FileNotFoundError: [Errno 2] No such file or directory: 'data1.csv' z5479795 NameError: name 'area_params' is not defined z5491736 ModuleNotFoundError: No module named 'HMM_V1' z5447603 Code aborted after a runtime exception z5416118 ModuleNotFoundError: No module named 'DiscreteFactors' z5419385 FileNotFoundError: [Errno 2] No such file or directory: 'room_adjacency.json' z5476880 ModuleNotFoundError: No module named 'solution' z5500877 FileNotFoundError: [Errno 2] No such file or directory: 'data2.csv' z5613314 ModuleNotFoundError: No module named 'maps'
I will allow the students whose code execution aborted to resubmit their solutions in 24 hours. Please email cs9418@cse.unsw.edu.au if you resubmit your solution and I will email you the cost and time.
Regards,
Gustavo.
Dear students,
Door_sensor1 is marked as broken due to an error in the simulation code, which incorrectly placed it on a door between two non-adjacent rooms. You should treat this sensor as non-functional in your solution. It will be broken in all data files, including the hidden test cases, and will likely record zero values across all readings.
Regards.
Dear students,
Due to other commitments, I have to move this Thursday's (31st) consultation hour from 3-4 pm to Friday (1st), 3-4 pm.
Regards,
Gustavo.
Dear students,
The course material for this week can be found on WebCMS.
The myExperience survey is open. Please take a moment to complete the survey form by August 14. The feedback from previous students helped us significantly improve COMP9418, and we greatly appreciate your feedback. You can access the survey form using this link:
The myExperience survey.
I hope you are enjoying Assignment 2. I have corrected the declaration of door sensor #1, as it was incorrectly linked to r2 instead of c2. Please refer to the changelog on the Assignment 2 page on WebCMS.
By the end of this week, we will run a leaderboard. Please, ensure you have submitted your solution before Sunday (3/8) at 6 pm. You can submit a simple code, just to test the submission system. These submissions will not be graded.
Finally, remember to submit your answers for Quiz 7 before Sunday at 6 pm.
Regards,
Gustavo.
Dear students,
The description for Assignment 2 is now available. We will run a leaderboard on Sunday, August 3rd. To participate, please submit your solution by 6 p.m. on that day. The leaderboard will allow you to test your code against hidden test cases. The final submission deadline for Assignment 2 is Sunday, August 10th.
We have also released the marks for Assignment 1. You can view your results at:
https://cgi.cse.unsw.edu.au/~give/Student/sturec.php
Please review the test cases provided on WebCMS (available on the Assignment 1 page). If you have any concerns about your marking, contact us via cs9418@cse.unsw.edu.au. For general questions about the assignment, feel free to post on the WebCMS forum.
Finally, don’t forget to submit your answers for Quiz 6 by Sunday at 6 p.m.
Best regards,
Gustavo
Dear students,
The course materials for this week are available on WebCMS. Please remember to submit your answers for Quiz 5 by Sunday at 6 p.m.
We are currently marking Assignment 1 and aim to release the marks and solutions next week.
Regards,
Gustavo.
Dear students,
Happy flexibility week!
This week, we do not have lectures, tutorials, quizzes or consultation hours. You can use this time to catch up with the course content.
Regards,
Gustavo.
Dear students,
This is a reminder that we will not have any in-person activities on campus today due to the severe weather warning. As a result, there will be no lecture and consultation hours today , and the Tuesday tutorials will be held online via Zoom at the following link: https://unsw.zoom.us/j/86895693982
On Friday, I will provide a summary of the MAP lecture and then move on to the jointrees content. For more details on the MAP topic, please refer to the pre-recorded lectures available here: https://webcms3.cse.unsw.edu.au/COMP9418/25T2/resources/112967
Regards,
Gustavo.
Dear students,
UNSW has issued a severe weather warning for tomorrow, and the School of CSE has requested that we cancel all in-person activities on campus.
As a result, there will be no in-person lectures tomorrow.
Tuesday’s tutorials will be held online instead. Please use the following Zoom link to join:
https://unsw.zoom.us/j/86895693982
I hope you all stay safe and dry.
Regards,
Gustavo.
Dear students,
I’ve updated the course page on WebCMS.
A reminder that Assignment 1 is due this Sunday at 6 p.m. If you’re working in a group, please ensure that you register your group on WebCMS (under the Groups tab).
Quiz 4 is also due this Sunday at 6 p.m.
If you have any questions, please don't hesitate to reach out to us on the WebCMS forum.
Regards,
Gustavo.
Dear students,
Due to other commitments, I have to move this Thursday's (26th) consultation hour from 3-4 pm to Friday (27th), 3-4 pm.
Regards,
Gustavo.
Dear students,
This week’s course content is now available on WebCMS. Please remember to submit your answers to this week’s quiz by Sunday at 6:00 pm .
A few reminders:
Please don't hesitate to contact us on the forum if you have any questions.
Regards,
Gustavo.
Dear students,
WebCMS has been updated with the following:
Assignment 1 is now available and due on Sunday, July 6th, at 6:00 pm . You can work on it individually or with a partner (max. two students per group).
Good luck, and let me know if you have any questions!
Regards,
Gustavo
Dear students,
The course materials for this week are now available on WebCMS. You will find the following items:
Starting this week, we will have a weekly multiple-choice quiz . Please submit your answers by Sunday at 6 PM . Multiple submissions are allowed, but late submissions will not be accepted .
You can access the quizzes via the Activities menu on WebCMS.
Additionally, I have uploaded the recording of Martin’s Thursday tutorial in the Tutorials section. There you will find both the Zoom link and the access password.
Regards,
Gustavo.
Dear students,
Welcome to COMP9418!
Each Monday, I will send you an email with important updates about the course, including due dates and other notifications.
Course Outline:
The course outline is now available on ECOS. You can access it via WebCMS:
https://webcms3.cse.unsw.edu.au/COMP9418/25T2/outline
This Week:
In Week 1, I will introduce the course, explain its structure, and outline its logistics. We will also begin our first topic: Bayesian Networks, which will be covered across both lectures this week.
Course Website:
WebCMS is our main platform for the course:
https://webcms3.cse.unsw.edu.au/COMP9418/25T2/
There, you’ll find:
- Lecture videos: Pre-recorded during lockdown, helpful for reference or revision.
- Lecture slides: The same slides used in lectures.
- Tutorial materials: Theory and practical questions for each week, plus solutions to past tutorials.
- Sample exams: Questions and solutions from previous exams to help with your preparation.
The practical component of each tutorial is provided as a Jupyter Notebook, which you can run locally or on Google Colab.
Starting Week 2:
- Weekly quizzes begin and are due each Sunday at 6:00 p.m.
- Tutorial solutions from the previous week will be published every Monday morning.
We hope you enjoy the course and find it both engaging and rewarding!
Best regards,
Gustavo
(On behalf of the COMP9418 teaching team)
Dear students,
Welcome to COMP9418!
I look forward to seeing you at our inaugural lecture on Tuesday, where I’ll explain the course structure, expectations, and logistics.
In the meantime, I’d like to highlight some optional preparatory materials available on our course website: https://webcms3.cse.unsw.edu.au/COMP9418/25T2/
These materials review foundational topics in:
Since most students have encountered this content before, it’s not required. However, if you’d like a refresher, you may find the following resources helpful (under the Week 0 section):
In Week 1, we’ll begin with Bayesian Networks —a simple yet powerful and interpretable model. Tutorials will introduce key ideas in probability and start building a Python library that you’ll use throughout the course assignments.
We hope you enjoy the course and look forward to working with you!
Best regards,
Gustavo
(on behalf of the COMP9418 teaching team)