Skip to content

Instantly share code, notes, and snippets.

View smorad's full-sized avatar

Steven Morad smorad

  • University of Cambridge
  • Cambridge, United Kingdom
  • 22:34 (UTC)
View GitHub Profile
import jax.numpy as jnp
import numpy as np
import jax
jax.config.update("jax_enable_x64", True)
import equinox as eqx
import equinox.nn as nn
import optax
import tqdm
from tensorflow_probability.substrates import jax as tfp
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 23 columns, instead of 13 in line 6.
Country,Continent,Year,Status,Life_expectancy ,Adult_Mortality,infant_deaths,Alcohol,percentage_expenditure,Hepatitis_B,Measles , BMI ,under_five_deaths ,Polio,Total_expenditure,Diphtheria , HIV/AIDS,GDP,Population, thinness 1-19 years, thinness 5-9 years,Income_composition_of_resources,Schooling
Afghanistan,Asia,2015,Developing,65,263,62,0.01,71.27962362,65,1154,19.1,83,6,8.16,65,0.1,584.25921,33736494,17.2,17.3,0.479,10.1
Afghanistan,Asia,2014,Developing,59.9,271,64,0.01,73.52358168,62,492,18.6,86,58,8.18,62,0.1,612.696514,327582,17.5,17.5,0.476,10
Afghanistan,Asia,2013,Developing,59.9,268,66,0.01,73.21924272,64,430,18.1,89,62,8.13,64,0.1,631.744976,31731688,17.7,17.7,0.47,9.9
Afghanistan,Asia,2012,Developing,59.5,272,69,0.01,78.1842153,67,2787,17.6,93,67,8.52,67,0.1,669.959,3696958,17.9,18,0.463,9.8
Afghanistan,Asia,2011,Developing,59.2,275,71,0.01,7.097108703,68,3013,17.2,97,68,7.87,68,0.1,63.537231,2978599,18.2,18.2,0.454,9.5
Afghanistan,Asia,2010,Developing,58.8,279,74,0.01,79.67936736,66,1989,16.7,102
set -e
set -x
zipfile=$1
wdir='latex_arxiv'
unzip $zipfile -d $wdir
pushd $wdir
svgs=$(find . -name *.svg | sed 's/.svg//')
epses=$(find . -name *.eps | sed 's/.eps//')
# Convert images
@smorad
smorad / setup.sh
Last active April 28, 2024 14:34
Cambridge eduroam on Ubuntu Server 20.04 (on a raspberry pi)
# First setup Ubuntu 20.04 on your SD card if you haven't already
# I assume by this point you have the Ubuntu SD card still in your laptop/pc
# We need to copy the cat tool to the SD card
# Download the installer here: https://cat.eduroam.org/
# Add the cat installer to the pi SD card; run these commands on your laptop
mkdir /mnt/rpi
# Find the block device for your SD card. Be careful here -- you can mess up your OS if you choose the wrong device!
lsblk # You should see something like
# mmcblk0 259:0 0 15.4G 0 disk