My coursework for Machine Learning (2021 Spring) at National Taiwan University (NTU)

Overview

Machine Learning 2021

Machine Learning (NTU EE 5184, Spring 2021)

Instructor: Hung-yi Lee

Course Website : (https://speech.ee.ntu.edu.tw/~hylee/ml/2021-spring.html)


Homeworks

# Homework Public score Private Score Score Ranking*
1 Regression 0.87985 0.91099 9 Top 35% (709/2032)
2 Classification 0.76324 0.76319 10.5 Top 5% (59/1522)
3 CNN 0.83094 0.82546 10.5 Top 7% (87/1404)
4 Self-Attention 0.96857 0.96888 10.5 Top 7% (81/1170)
5 Transformer 33.53 32.27 10.5 Top 1% (11/1110)
6 GAN (0.688, 7722.47) NA 10.5 Top 41% (405/1118)
7 BERT 0.85926 0.85157 10.5 Top 4% (39/1263)
8 Anomaly Detection 0.90118 0.89286 10.5 Top 9% (104/1193)
9 Explainable AI NA NA 9.7 NA
10 Attack 0.010 0.010 10.5 Top 14% (154/1162)
11 Adaptation 0.78806 0.78744 10 Top 26% (268/1061)
12 RL 287 NA 10.5 Top 2% (10/766)
13 Compression 0.75686 0.75493 9.5 Top 19% (109/590)
14 Life-Long Learning NA NA 9.2 NA
15 Meta Learning NA NA 10 NA

*Ranking is based on private leaderboard


Viewing Jupyter notebook

Sometimes the error message "Sorry, something went wrong. Reload?" appears when viewing *.ipynb on a GitHub.

We recommend using nbviewer to view the *.ipynb files

Simply copy the URL of this repository to https://nbviewer.jupyter.org/

Download Google Drive files with WGET

Example of a Google Drive download link (HW3 data): https://drive.google.com/file/d/1awF7pZ9Dz7X1jn1_QAiKN-_v56veCEKy/view

The url has the following format https://drive.google.com/file/d/[ID]/view

Copy the ID and run the script wgetgdrive.sh as follows

chmod a+x ./wgetgdrive.sh
./wgetgdrive.sh [ID] [file_name]

For example, to download the data of HW3 and name it as food-11.zip, simply run the following

chmod a+x ./wgetgdrive.sh
./wgetgdrive.sh 1awF7pZ9Dz7X1jn1_QAiKN-_v56veCEKy food-11.zip

Achievement

I finish the 15 assignments with all scores above 9 pts and win a T-shirt as a prize. Only the top 2% (17/1280) students own such an achievement.

shirt

You might also like...
Introduction to AI assignment 1 HCM University of Technology, term 211

Sokoban Bot Introduction to AI assignment 1 HCM University of Technology, term 211 Abstract This is basically a solver for Sokoban game using Breadth-

It is the assignment for COMP 576 in Rice University

COMP-576 It is the assignment for COMP 576 in Rice University There are two programming assignments and one Final Project. Assignment 1: It is a MLP a

Final project code: Implementing MAE with downscaled encoders and datasets, for ESE546 FA21 at University of Pennsylvania

546 Final Project: Masked Autoencoder Haoran Tang, Qirui Wu 1. Training To train the network, please run mae_pretraining.py. Please modify folder path

Final project code: Implementing BicycleGAN, for CIS680 FA21 at University of Pennsylvania

680 Final Project: BicycleGAN Haoran Tang Instructions 1. Training To train the network, please run train.py. Change hyper-parameters and folder paths

Final Project for the CS238: Decision Making Under Uncertainty course at Stanford University in Autumn '21.

Final Project for the CS238: Decision Making Under Uncertainty course at Stanford University in Autumn '21. We optimized wind turbine placement in a wind farm, subject to wake effects, using Q-learning.

CS50x-AI - Artificial Intelligence with Python from Harvard University

CS50x-AI Artificial Intelligence with Python from Harvard University 📖 Table of

CS506-Spring2022 - Code and Slides for Boston University CS 506

CS 506 - Computational Tools for Data Science Code, slides, and notes for Boston

Aalto-cs-msc-theses - Listing of M.Sc. Theses of the Department of Computer Science at Aalto University

Aalto-CS-MSc-Theses Listing of M.Sc. Theses of the Department of Computer Scienc

An University Project of Quera Web Crawling.

WebCrawlerProject An University Project of Quera Web Crawling. خزشگر اینستاگرام در این پروژه شما باید با استفاده از کتابخانه های زیر یک خزشگر اینستاگر

Comments
  • HW7 Out of memory

    HW7 Out of memory

    When i run the HW7 TA example code, my cpu ram keep increasing until out of my 64G ram.I think this problem is coming from the training process. train_loss += output.loss # store the complete compution graph leading to out of memory train_loss += output.loss.detach() or .item() if i modify original code to this, problem solved.

    So, my question is, didnt you come across this problem? If not, why this happened to me, but TA and your code works well. Just assume TAs example code should not be wrong, so afraid of myself may ignore something important. Really hope you can help me, thanks in advance.

    opened by Ponytai1j 1
  • Runtime Error in the Training Cell of hw7/hw7_macbert4.ipynb

    Runtime Error in the Training Cell of hw7/hw7_macbert4.ipynb

    Hi, Thank you for the hw7/hw7_macbert4.ipynb code. When I run it it gives error pointing to this line in Training cell "dev_acc += evaluate(data, output, doc_stride, dev_paragraphs[dev_questions[i]['paragraph_id']], dev_paragraphs_tokenized[dev_questions[i]['paragraph_id']].tokens) == dev_questions[i]["answer_text"]"

    RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking arugment for argument mask in method wrapper_masked_select)

    Please give some suggestion on how it can be solved.

    opened by utkarsh0902311047 0
Owner
National Taiwan University. M.S. in Electrical Engineering, 2021
null
Useful materials and tutorials for 110-1 NTU DBME5028 (Application of Deep Learning in Medical Imaging)

Useful materials and tutorials for 110-1 NTU DBME5028 (Application of Deep Learning in Medical Imaging)

null 7 Jun 22, 2022
School of Artificial Intelligence at the Nanjing University (NJU)School of Artificial Intelligence at the Nanjing University (NJU)

F-Principle This is an exercise problem of the digital signal processing (DSP) course at School of Artificial Intelligence at the Nanjing University (

Thyrix 5 Nov 23, 2022
Info and sample codes for "NTU RGB+D Action Recognition Dataset"

"NTU RGB+D" Action Recognition Dataset "NTU RGB+D 120" Action Recognition Dataset "NTU RGB+D" is a large-scale dataset for human action recognition. I

Amir Shahroudy 578 Dec 30, 2022
[AI6101] Introduction to AI & AI Ethics is a core course of MSAI, SCSE, NTU, Singapore

[AI6101] Introduction to AI & AI Ethics is a core course of MSAI, SCSE, NTU, Singapore. The repository corresponds to the AI6101 of Semester 1, AY2021-2022, starting from 08/2021. The instructors of this course are Prof. Bo An, Prof. Yu Han, and Dr. Melvin Chen.

AccSrd 1 Sep 22, 2022
Code for the AI lab course 2021/2022 of the University of Verona

AI-Lab Code for the AI lab course 2021/2022 of the University of Verona Set-Up the environment for the curse Download Anaconda for your System. Instal

Davide Corsi 5 Oct 19, 2022
Repository of Jupyter notebook tutorials for teaching the Deep Learning Course at the University of Amsterdam (MSc AI), Fall 2020

Repository of Jupyter notebook tutorials for teaching the Deep Learning Course at the University of Amsterdam (MSc AI), Fall 2020

Phillip Lippe 1.1k Jan 7, 2023
Machine Learning From Scratch. Bare bones NumPy implementations of machine learning models and algorithms with a focus on accessibility. Aims to cover everything from linear regression to deep learning.

Machine Learning From Scratch About Python implementations of some of the fundamental Machine Learning models and algorithms from scratch. The purpose

Erik Linder-Norén 21.8k Jan 9, 2023
Vowpal Wabbit is a machine learning system which pushes the frontier of machine learning with techniques such as online, hashing, allreduce, reductions, learning2search, active, and interactive learning.

This is the Vowpal Wabbit fast online learning code. Why Vowpal Wabbit? Vowpal Wabbit is a machine learning system which pushes the frontier of machin

Vowpal Wabbit 8.1k Jan 6, 2023
A template repository for submitting a job to the Slurm Cluster installed at the DISI - University of Bologna

Cluster di HPC con GPU per esperimenti di calcolo (draft version 1.0) Per poter utilizzare il cluster il primo passo è abilitare l'account istituziona

null 20 Dec 16, 2022