Skip to content

Instantly share code, notes, and snippets.

View eonu's full-sized avatar

Edwin (Ed) Onuonga eonu

View GitHub Profile
@eonu
eonu / deepgru.md
Last active June 25, 2022 14:37
Torch implementation of DeepGRU

DeepGRU

A modular PyTorch implementation of the DeepGRU (Deep Gesture Recognition Utility) recurrent neural network architecture designed by Maghoumi & LaViola Jr.[1], originally for gesture recognition but applicable to general sequences.

Dependencies

This implementation of DeepGRU requires a working installation of torch.

Usage

@eonu
eonu / gps.md
Last active April 25, 2024 07:26
Resources on Gaussian Processes

Resources on Gaussian Processes

Gaussian processes (GPs) are a challenging area of Bayesian machine learning to get started with – from wrapping your head around dealing with infinite dimensional Gaussian distributions, to understanding kernel functions and how to choose the right one for the right task, all on top of having solid knowledge of Bayesian inference.

While primarily used as a powerful regression model with the ability to estimate uncertainty in predictions, GPs can also be used for classification, and have a very wide range of applications.

These are some of the resources I have used, or are planning to use in my on-going process of learning about GPs.

Lectures

@eonu
eonu / viewr.R
Created November 1, 2020 20:43
viewr: Better R object inspection using the FireFox JSON viewer.
# ================================================================================= #
# viewr: Better R object inspection using the FireFox JSON viewer. #
# --------------------------------------------------------------------------------- #
# Usage: #
# Rscript viewr.R [FILE] # Where [FILE] has extension .Rdata or .rds #
# #
# This script will only work on macOS, and assumes that you have FireFox installed! #
# --------------------------------------------------------------------------------- #
# Edwin Onuonga (eonu) 2020 #
# ================================================================================= #
@eonu
eonu / nbx
Last active January 29, 2020 11:30
NBX
#!/usr/bin/env ruby
class NBX
# Execute long-running Jupyter notebooks from the command-line
def initialize
@allow_errors = true
@inplace = false
end
@eonu
eonu / ml.sh
Last active June 9, 2020 23:21
Basic conda environment for machine learning.
conda create -n ml python=3.7.4 \
tensorflow tensorflow-datasets \
pytorch torchvision cudatoolkit=10.2 \
librosa torchaudio \
numpy scikit-learn scipy pandas \
matplotlib seaborn \
nltk \
pomegranate \
jupyter \
requests \
@eonu
eonu / active_record.rb
Last active July 30, 2019 09:20
ActiveRecord local test database
require 'active_record'
ENV['DATABASE_URL'] ||= "sqlite3:///path/to/db.sqlite3"
ActiveRecord::Base.establish_connection ENV['DATABASE_URL']
ActiveRecord::Schema.define do
self.verbose = true
create_table(:users, force: true) do |t|
t.string :username, null: false, unique: true