Skip to content

Instantly share code, notes, and snippets.

View Kaixhin's full-sized avatar
⚗️

Kai Arulkumaran Kaixhin

⚗️
View GitHub Profile
@Kaixhin
Kaixhin / maintenance.md
Last active July 30, 2016 07:51
Maintenance Schedule: Weekly and monthly checklists, as well as automatic maintenance

Weekly Maintenance

Windows 8.1

  • CCleaner
  • Check Disk
  • System Image Backup

OS X 10.9 Mavericks

@Kaixhin
Kaixhin / matlab.sh
Last active September 5, 2015 15:19
MATLAB Job
# Run MATLAB file and output to file
matlab -nodisplay -r <function> [<params>...] > <file>
# Email output file once done
mutt -s "Results" <email> < <file>
@Kaixhin
Kaixhin / library.md
Last active March 24, 2019 20:44
Manga Vol. 1 Library

Description

I collect the first volumes (and first volumes only) of various manga series (in English) in new condition.

Wishlist

I have an Amazon wishlist, but volumes from other series that I do not have are also welcome. New books only please.

Library

@Kaixhin
Kaixhin / guidelines.md
Last active May 12, 2022 05:29
Student Projects

I supervise undergraduate/postgraduate/UROP projects as part of BICV. The PI, Dr Anil Bharath, has a nice set of FAQs for prospective research students, which should give you an idea of what our group specialises in. My topic of research is deep reinforcement learning, which is less focused on computer vision and more on general machine learning or even artificial intelligence. Note that I only supervise students at Imperial College London, so please do not contact me about supervision otherwise.

I expect students to be a) highly motivated and b) technically proficient.

a) Projects that I supervise revolve around cutting-edge research, and specifically deep learning. Projects can, and have in the past, relied on research released during the course of the project. Some parts of machine learning can be found in optional modules in bioengineering courses, but (modern) deep learning is currently not taught at Imperial (as far as I am aware). I usually give crash

@Kaixhin
Kaixhin / cudnn.lua
Created June 6, 2016 13:14
Basic Torch cuDNN example
require 'cunn'
local cudnn = require 'cudnn'
local X = torch.rand(32, 3, 24, 24):cuda()
local Y = torch.ones(32):cuda()
local net = nn.Sequential()
net:add(cudnn.SpatialConvolution(3, 8, 5, 5))
net:add(nn.View(8*20*20))
net:add(nn.Linear(8*20*20, 10))
@Kaixhin
Kaixhin / timeseries.lua
Created July 24, 2016 18:42
Predicting a time series with Element-Research Torch RNN
--[[
-- Element-Research Torch RNN Tutorial for recurrent neural nets : let's predict time series with a laptop GPU
-- https://christopher5106.github.io/deep/learning/2016/07/14/element-research-torch-rnn-tutorial.html
--]]
--[[
-- Part 1
--]]
require 'rnn'
@Kaixhin
Kaixhin / gp.lua
Last active August 26, 2016 23:14
Gaussian Processes for Dummies
--[[
-- Gaussian Processes for Dummies
-- https://katbailey.github.io/post/gaussian-processes-for-dummies/
-- Note 1: The Cholesky decomposition requires positive-definite matrices, hence the addition of a small value to the diagonal (prevents zeros along the diagonal)
-- Note 2: This can also be thought of as adding a little noise to the observations
--]]
local gnuplot = require 'gnuplot'
-- Test data
@Kaixhin
Kaixhin / prob-notation.md
Last active November 15, 2018 11:25
Probability notation

Probability notation

Note: Great refresher/glossary on probability/statistics and related topics here

Notation Definition
X Random variable
P(X) Probability distribution over random variable X
X ~ P(X) Random variable X follows (~) the probability distribution P(X) *
@Kaixhin
Kaixhin / stochasticprocesses.lua
Created November 29, 2016 16:39
Random walks down Wall Street, Stochastic Processes in Python
--[[
-- Random walks down Wall Street, Stochastic Processes in Python
-- http://www.turingfinance.com/random-walks-down-wall-street-stochastic-processes-in-python/
--]]
local gnuplot = require 'gnuplot'
local model_parameters = {
all_s0 = 1000, -- Starting asset value
all_time = 800, -- Amount of time to simulate for
@Kaixhin
Kaixhin / perlin.lua
Last active January 2, 2017 17:01
Using Perlin Noise to Generate 2D Terrain and Water
--[[
-- Using Perlin Noise to Generate 2D Terrain and Water
-- http://gpfault.net/posts/perlin-noise.txt.html
--]]
local image = require 'image'
-- Fade function
local fade = function(t)
-- Provides continuous higher order derivatives for smoothness (this specifically is in the class of sigmoid functions)