Skip to content

Instantly share code, notes, and snippets.

View victor-shepardson's full-sized avatar

Victor Shepardson victor-shepardson

View GitHub Profile
@mmattamala
mmattamala / conda_m1_rosetta.md
Created July 1, 2022 13:30
Setup rosetta environment on M1 conda installation

From conda-forge/miniforge#165 (comment)

CONDA_SUBDIR=osx-64 conda create -n rosetta python   # create a new environment called rosetta with intel packages.
conda activate rosetta
python -c "import platform;print(platform.machine())"
conda config --env --set subdir osx-64  # make sure that conda commands in this environment use intel packages
@jarmitage
jarmitage / .bashrc (bela)
Last active November 15, 2022 14:44
Using the `distcc` distributed compiler with Bela
#!/bin/bash
alias watchdistcc="watch -n 0.4 rm -rf \"~/.distcc/lock/*\""
@carltesta
carltesta / FourteenBitCC.sc
Last active January 23, 2023 17:15
14-bit MIDI Handler for SuperCollider
FourteenBitCC {
/*
//Use Case:
MIDIIn.connectAll;
~x = FourteenBitCC.new("x", 72, 104);
~x.func = {|val| ("x: "++val).postln};
//MPE Example with Sensel Morph
MIDIIn.connectAll
@kylemcdonald
kylemcdonald / t-SNE Implementation Comparison.ipynb
Last active December 20, 2017 01:47
Comparison of different t-SNE implementations for speed and results.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@simonkamronn
simonkamronn / hyperband.py
Created November 11, 2016 16:06
Hyperband for hyperparameter optimization
# https://people.eecs.berkeley.edu/~kjamieson/hyperband.html
# you need to write the following hooks for your custom problem
from problem import get_random_hyperparameter_configuration,run_then_return_val_loss
max_iter = 81 # maximum iterations/epochs per configuration
eta = 3 # defines downsampling rate (default=3)
logeta = lambda x: log(x)/log(eta)
s_max = int(logeta(max_iter)) # number of unique executions of Successive Halving (minus one)
B = (s_max+1)*max_iter # total number of iterations (without reuse) per execution of Succesive Halving (n,r)