Skip to content

Instantly share code, notes, and snippets.

View freekai's full-sized avatar

Arzhan "kai" Kinzhalin freekai

View GitHub Profile
### Keybase proof
I hereby claim:
* I am freekai on github.
* I am freekai (https://keybase.io/freekai) on keybase.
* I have a public key whose fingerprint is 42EE 4AEE E3AA 6BA7 4215 C289 C9D5 0845 DE55 19CB
To claim this, I am signing this object:
@freekai
freekai / cvs2list.sh
Created January 18, 2016 03:32
bash script to convert CVS to comma-separated list of feature values (for plotting).
x=""; y=""; cat ex2data1.txt | egrep '0$' | { while read i; do x="$x, $(echo $i | awk -F, '{ print $1}')"; y="$y, $(echo $i | awk -F, '{ print $2}')"; done; echo $x; echo $y; }