This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |