This file contains hidden or 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
package RandomizedOptimization; | |
import org.apache.commons.math3.stat.descriptive.DescriptiveStatistics; | |
import shared.Trainer; | |
/** | |
* A momentum convergence trainer trains a network | |
* until convergence based on a sliding window of statistical variance on the error, using another trainer | |
* @author Marcus King | |
* @version 1.0 |
This file contains hidden or 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
from __future__ import print_function | |
import csv | |
import re | |
from time import time | |
from sklearn.feature_extraction import DictVectorizer | |
from sklearn.cluster import KMeans, MiniBatchKMeans | |
from numpy import random | |
This file contains hidden or 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
#!/usr/bin/ruby | |
require 'json' | |
require 'emr/common' | |
require 'digest' | |
require 'socket' | |
def run(cmd) | |
if ! system(cmd) then | |
raise "Command failed: #{cmd}" |