You should produce a report about your results. You will not only be assessed on the correctness/quality of your answers but also on clarity of presentation. Additionally make sure that your code is well commented. Please submit on moodle i) your report as well as a ii) zip file with your source code. Regarding the use of libraries, you should implement regression using matrix algebra directly. Likewise any basic machine learning routines such as cross-validation should be implemented directly. Otherwise libraries are okay.