Skip to content

Instantly share code, notes, and snippets.

View serialhex's full-sized avatar
😸
Pondering language design...

serialhex

😸
Pondering language design...
View GitHub Profile
#!/bin/bash
# Usage: sudo apt-get install -yqq curl; curl -L -s https://raw.github.com/gist/5015316/ubuntu-install-media.sh | sudo bash
# originally by [AJ ONeal](http://blog.coolaj86.com/articles/the-ubuntu-you-deserve.html)
# edited by serialhex to make ubuntu computers look more like win-7... only because I have to...
#alias sagi="apt-get install --yes --quiet" # normall sudo apt-get, but this is already root
#alias sagid="apt-get install --yes --quiet --download-only" # same as above
#STDOUT=/dev/stdout
require 'narray'
require 'modshogun'
# changed these
traindat = LoadMatrix('../data/fm_train_real.dat')
testdat = LoadMatrix('../data/fm_test_real.dat')
parameter_list=[[traindat,testdat, 1.3],[traindat,testdat, 1.4]]
def kernel_gaussian_modular(fm_train_real=traindat,fm_test_real=testdat, width=1.3)
require 'narray'
def LoadMatrix(filename, type = :numbers)
case type
when :numbers
LoadMatrix.load_numbers(filename)
when :dna
LoadMatrix.load_dna(filename)
when :cubes
LoadMatrix.load_cubes(filename)