Closed Iron-Stark closed 7 years ago
Can one of the admins verify this patch?
We'll have to also include a script to install nearpy; could you add that please? Just like you did for annoy.
@rcurtin
I have added installation files. Please Review.
Before merging this, I need to set up the automatic installs for libraries on Jenkins, so that nearpy can be automatically installed, but today I have to finish making a poster for a conference. I'll hopefully be able to address that this week.
@rcurtin
Thanks for the reply. :-)
Looks good to me other than @zoq's comments---if you can handle those I think this is ready to merge. The testing infrastructure is set up right on Jenkins now so it is much easier to add new libraries like this one. :)
@zoq @rcurtin I have made the suggested changes. Please Review.
@mlpack-jenkins test this
The jenkins plugin is really picky about the trigger message and the format, meaning you have to write the message in a single line.
@zoq Okay will remember that from now on. Thanks for the info. :-)
@mlpack-jenkins test this
@zoq @rcurtin
javac: invalid flag: benchmark/libraries/share//weka.jar This is the error popping up during build. Not able to figure out a concrete reason. Seems to me that the '//' caused the error. Please suggest how to fix it.
There was an issue where a directory with spaces wasn't handled correctly, it's fixed in: 28cdb6910fddf8fa29d1a277176573cd5bb3563b
@mlpack-jenkins test this
Also, if I didn't missed something, the Jenkins job should only rebuild all libraries if something in the libraries folder changed, so it should run much faster if we only change something in methods, tests, etc. But I guess, we will see if that works if we open another PR that doesn't introduce a new library.
@mlpack-jenkins test this
Looks like chmod 755 milk_install.sh
would solve the remaining issue.
@zoq @rcurtin
Looks like there was some error installing nearpy. Any suggestions on how to avoid that?
I guess its because the filename is NearPy and not nearpy. Should I change it to that and try again?
chmod 755 nearpy.sh
should solve the problem.
@zoq
In which file should I add the chmod 755. In the install_all.sh file or nearpy_install.sh file? and where? A bit confused regarding this.
Let me clarify what I mean with chmod 755 nearpy.sh
, if you take a look at the permissions of nearpy_intall.sh
e.g. ls -l nearpy_install.sh
you should get something like: -rw-r--r-- ...
which tells you that:
rw-
User can read (r)
User can write (w)
User cannot execute (x)
r--
Group can read (r)
Group cannot write (w)
Group cannot execute (x)
r--
Other can read (r)
Other cannot write (w)
Other cannot execute (x)
but what we like is that jenkins the user can execute the script:
-rwx... e.g. 755
- I/Jenkins can read/write and run it, everyone else can run it.
rwx
User can read (r)
User can write (w)
User can execute (x)
So, basically all you have to do is to change the permissions of the nearpy install script and push the changes:
chmod 755 nearpy_install.sh
git add nearpy_install.sh
git commit -m "Make Nearpy install script executable."
git push
Let me know if that is helpful.
@zoq Thanks for clearing that out.
Thanks for the great contribution.
@zoq @rcurtin
Implemented the Approximate Nearest Neighbors algorithm using the Nearpy Library. Also wrote the benchmark test file for the same. Please Review.