-
Notifications
You must be signed in to change notification settings - Fork 754
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from searchivarius/master
Adding benchmarks for some of the Non-Metric Space Library Methods
- Loading branch information
Showing
5 changed files
with
92 additions
and
5 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
sudo apt-get install -y python-numpy python-scipy | ||
cd install | ||
for fn in annoy.sh panns.sh nearpy.sh sklearn.sh flann.sh kgraph.sh glove.sh sift.sh | ||
for fn in annoy.sh panns.sh nearpy.sh sklearn.sh flann.sh kgraph.sh nmslib.sh glove.sh sift.sh | ||
do | ||
source $fn | ||
done |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
wget "http://www-nlp.stanford.edu/data/glove.twitter.27B.100d.txt.gz" | ||
gzip -d glove.twitter.27B.100d.txt.gz | ||
rm glove.twitter.27B.100d.txt.gz | ||
gunzip -d glove.twitter.27B.100d.txt.gz | ||
cut -d " " -f 2- glove.twitter.27B.100d.txt > glove.txt # strip first column | ||
rm glove.twitter.27B.100d.txt |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
echo "Installing Python interface for the Non-Metric Space Library" | ||
# Remove the previous version if existed | ||
rm -rf NonMetricSpaceLib | ||
# Note that we use the develop branch here: | ||
git clone https://github.com/searchivarius/NonMetricSpaceLib.git | ||
cd NonMetricSpaceLib/similarity_search | ||
git checkout ann-benchmark | ||
sudo apt-get install -y cmake libeigen3-dev libgsl0-dev libboost-all-dev g++-4.8 | ||
# Actually let's make g++ an alias | ||
alias g++=g++-4.8 | ||
cmake . | ||
make -j 4 | ||
cd ../python_binding | ||
make | ||
sudo make install | ||
cd .. |