This is the project of COMP4134 Advanced Topics in Machine Learning (2024-2025).
The final code file called AADS.java is a single Java source code file containing the whole code for this coursework. The file doesn't require any other files outside of the standard Java packages, which are always available. The file must compile and execute without warnings or errors using the command.
- Compile:
javac -encoding UTF-8 -sourcepath . AADS.java - Execute:
java -Dfile.encoding=UTF-8 -XX:+UseSerialGC -Xss64m -Xms1920m -Xmx1920m AADS < [Input.json] > [Output.txt]
Tips:
- Contents enclosed by square brackets (including square brackets) should be specified according to your input files and output files.
- In the command of execution, the
Input.jsonrepresents the input JSON file and theOutput.txtrepresents the output file. - The input JSON file should be located in the same directory as the
AADS.javafile. - The program sends its output to standard output (by executing the above command, it will produce Output.txt in the same directory as
AADS.javaandInput.json, so no FileWriter is required).