Crude implementation of ACO in D3js, based on the awesome work of Joel Wenzel et al.
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
// CAUTION / / / CAUTION / / / CAUTION / / / CAUTION / / / CAUTION / / / CAUTION / / / CAUTION / / / | |
// Notice the for loops have a hardcoded values for how far they can go (32) | |
// This is a result of WEBGL not allowing while loops. Change the value to what you find appropriate! | |
// CAUTION / / / CAUTION / / / CAUTION / / / CAUTION / / / CAUTION / / / CAUTION / / / CAUTION / / / | |
// | |
// Hopefully this gives you the format for making your own operators such as XOR, NAND, etc. | |
// | |
// Adapted from this thread: | |
// https://scratch.mit.edu/discuss/topic/97026/ |
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
{ | |
"name":"dark-style-from-vs-2015", | |
"version":"1.0", | |
"description":"Imported color scheme", | |
"originator":"Imported from /Users/rdavis/Library/XamarinStudio-5.0/HighlightingSchemes/dark-style-from-vs-2015.vssettings", | |
"colors":[ | |
{"name": "Background(Read Only)", "color":"#1E1E1E" }, | |
{"name": "Search result background", "color":"#005F60" }, | |
{"name": "Search result background (highlighted)", "color":"#007F80" }, | |
{"name": "Fold Square", "color":"#A5A5A5" }, |
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
def mean_reciprocal_rank(X, Y, indices, metric='hamming'): | |
''' Computes the mean reciprocal rank of the correct match | |
Assumes that X[n] should be closest to Y[n] | |
Default uses hamming distance | |
:parameters: | |
- X : np.ndarray, shape=(n_examples, n_features) | |
Data matrix in X modality | |
- Y : np.ndarray, shape=(n_examples, n_features) | |
Data matrix in Y modality | |
- indices : np.ndarray |
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 | |
sudo apt-get install build-essential automake checkinstall intltool git | |
sudo apt-get install mono-complete mono-addins-utils gtk-sharp2 gnome-sharp2 | |
git clone git://github.com/mono/monodevelop | |
cd monodevelop | |
git checkout monodevelop-4.0 | |
git submodule update --init --recursive | |
./configure |