Comments (11)
remotes::install_github("jefferis/RANN@master-L1")
works ok locally for me. The issues arise with packages like roxygen2/pak/pkgdepends which seem to expect the R package name and repo name to match (e.g. #31 (comment)). e.g.
devtools::install_github("r-lib/pkgdepends")
pd <- new_pkg_deps("MacoskoLab/liger")
pd$solve()
pd$draw()
Error: Cannot install packages:
x Cannot install `MacoskoLab/liger`.
- Cannot install dependency jefferis/RANN@master-L1
from rann.
tl;dr
Would be useful if the RANN.L1
package, currently stored in a branch of RANN, could be copied to its own separate repo at jefferislab/RANN.L1
to match the convention of account/packagename expected by various dev packages in R. Would help to avoid issues like the below (produced by r-lib/pkgdepends): -
x Cannot install `MacoskoLab/liger`.
- Cannot install dependency jefferis/RANN@master-L1
Thanks!
from rann.
@krlmlr you had a strategy for this I think?
from rann.
In #30, I suggested to re-unify the codebases so that L1 is available from {RANN}. Would that work?
from rann.
If the master branch of a new repo at jefferis/RANN.L1
could have the contents of the jefferis/RANN@master-L1
branch it would provide a quick fix.
from rann.
Can we give @krlmlr the option to try and get things working in one package. Having two repos would be a retrograde step when we are trying to rationalise two separate packages.
from rann.
Sounds like an optimal solution, thanks!
from rann.
@combiz: For me, remotes::install_github("jefferis/RANN@master-L1")
works, and so should the Remotes:
entry in the package you're referring to. Perhaps the installation failure has a different reason? Could you point me to the failing CI run?
from rann.
Hi friends... thank you for you RANN (and RANN.L1)! I'm curious about use of Lp for p = [ .... drum roll .... ] 1/2.
It looks possible to hotwire the RANN tarball library by commenting out / uncommenting in at that spot in ANN.h and running R CMD SHLIB ... but that would be a first for me, and I ran across this thread and thought I'd ask if "rationalising" (as @jefferis put it) RANN to run ANN with different p value options was in the cards. Thanks again for your contributions! Cheers!
from rann.
See the ANN manual for metrics that are supported out of the box. Not including 1/2 https://www.cs.umd.edu/~mount/ANN/Files/1.1.2/ANNmanual_1.1.pdf
from rann.
Right. Yes, I'd seen this ... there's no triangle inequality and hence no "metric" with 0 < p < 1 but the quantities from these "fractional" p distances can still be used to define neighborhoods around query points for ANN search. There's some literature on such fractional distances helping with the curse of dimensionality story in the 20-50 dimension range, hence my curiosity. Cheers!
from rann.
Related Issues (17)
- nn2 should check length query/data explicitly
- release RANN1 to CRAN HOT 6
- fix bug in checking query vs data dimensions HOT 1
- bd tree HOT 16
- nn2 docs say it returns a data.frame (not a matrix)
- return the number of point within a radius HOT 7
- weighted distance HOT 3
- Remove register keyword from ANN source for CRAN
- points to line distance
- Solaris compile error ERR HOT 1
- Don't use CPPFLAGS for compiler flags HOT 1
- Please ship declarations in inst/include so we can linkingTo your c++ functions HOT 2
- tic::use_tic() for automatic deployment of pkgdown and testing on AppVeyor HOT 6
- Consider provinding L1 metric in the RANN package
- Support other Minkowski metrics HOT 20
- Objects with zero distance HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rann.