View data.json
"nodes": [
{"id": "Myriel", "group": 1},
{"id": "Napoleon", "group": 1},
{"id": "Mlle.Baptistine", "group": 1},
{"id": "Mme.Magloire", "group": 1},
{"id": "CountessdeLo", "group": 1},
{"id": "Geborand", "group": 1},
{"id": "Champtercier", "group": 1},
{"id": "Cravatte", "group": 1},
View bootstrapping.markdown

Implementing the k-means jump method: Part Four

This fourth and final part of our exploration into the jump method wraps things up by following a basic application of the technique through to a search for results we can be confident in.

We'll reuse functions from rest of the series (Part One, Part Two, Part Three). You'll also want the original paper handy to refer back to their charts.

First, we're going to return to several prior data sets:

View pydigits.jl
# The Computer Language Benchmarks Game
# created by Sébastien Arnaud <>
# inspired from Python version:
# modification suggested by ScottPJones &
# Performance on Macbook 12" Retina (1.3Ghz)
# Julia v0.4.3
# Alot of these configs have been taken from the various places
# on the web, most from here
# Set the colours you can use
View gist:15c68fb142ba01ab06a2
This is a batched LSTM forward and backward pass
import numpy as np
import code
class LSTM:
def init(input_size, hidden_size, fancy_forget_bias_init = 3):
View core.clj
(ns flambo-streaming-101.core
(:require [flambo.api :as f]
[flambo.streaming :as fs]
[flambo.conf :as fconf]
[flambo.function :refer [pair-function]]
[clj-time.format :as tf]
[clj-time.core :as tc]
[ :refer [trace]]
[ :refer [sh]]
[clojure.pprint :refer [pprint]]
View Clojure.sublime-settings
// installed Clojure packages:
// * BracketHighlighter
// * lispindent
// * SublimeREPL
// * sublime-paredit
"word_separators": "/\\()\"',;!@$%^&|+=[]{}`~?",
"paredit_enabled": true,
View profiles.clj
{:user {:dependencies [[org.clojure/tools.namespace "0.2.3"]
[spyscope "0.1.3"]
[criterium "0.4.1"]]
:injections [(require '( repl find))
; try/catch to workaround an issue where `lein repl` outside a project dir
; will not load reader literal definitions correctly:
(try (require 'spyscope.core)
(catch RuntimeException e))]
:plugins [[lein-pprint "1.1.1"]
[lein-beanstalk "0.2.6"]
rm -Rf ~/.m2
rm -Rf ~/.lein
rm -Rf ./target
lein self-install
lein clean
lein version
from starcluster.clustersetup import ClusterSetup
from starcluster.logger import log
class doRedis(ClusterSetup):
def __init__(self):
def run(self, nodes, master, user, user_shell, volumes):
redis_master_ip = master.private_ip_address
command = """su - arnaudsj -c "nohup R --slave -e 'require(multicore);require(doRedis);startLocalWorkers(n=multicore:::detectCores(),host=\\\"%s\\\",queue=\\\"jobs\\\", port=6379)' > /dev/null 2>&1 &" """ % redis_master_ip