Skip to content

Instantly share code, notes, and snippets.

View KuangHao95's full-sized avatar
👻
Life is wonderful

KuangHao95

👻
Life is wonderful
View GitHub Profile
@KuangHao95
KuangHao95 / pretrained_on_hpc.ipynb
Created January 24, 2022 09:02
Demo notebook of using pre-trained Language Models on NUS HPC
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@KuangHao95
KuangHao95 / Anomaly_Detction_experiment.ipynb
Last active May 18, 2020 01:44
Experiment on Anomaly Detection
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@KuangHao95
KuangHao95 / Sample_Code.py
Last active December 18, 2019 01:32
Sample Code for using "concurrent.futures"
# 2. Multi-core acceleration
# Adapted from: https://stackoverflow.com/questions/42941584/
import concurrent.futures
from collections import deque
# multi-thread for IO tasks
TPExecutor = concurrent.futures.ThreadPoolExecutor
# multi-process for CPU tasks
PPExecutor = concurrent.futures.ProcessPoolExecutor
@KuangHao95
KuangHao95 / DP_experiment.ipynb
Last active December 17, 2019 09:37
Experiment on acceleration of data pre-processing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.