Comments (4)
Hello Timo @grssnbchr,
kknn constructs internally 2 distance matrices which have dimension q * k (* 4 / 8 byte)
which will be the bottle neck.
You should be able to subsets of dialects_test to kknn and just combine the results in the end, you can even compute these on different machines.
Also kernel="rectangular" may gives very similar results for a smaller choice of k, as the contribution from far away (distance wise) speakers to the estimate will be low.
If you can send me some sample data I may can find some more parts to improve.
Have a nice weekend
Regards,
Klaus
from kknn.
Thanks a lot for your fast reply. I quickly thought about splitting the raster but then I thought the results wouldn't match and rejected the idea. Buut - of course - if always the same training data set is taken, the tiles fit nicely together (i.e. ==> not split the training data set, too). Doing it that way, the memory problems vanish. Also, somehow, the whole computation if faster by about 10-20%. And what's even better: I can now use the foreach
package to do parallel processing and gain another 30-40% of computation time. So thanks a lot. Once I have this all together, I will write a blog post and gladly point out your package and your help!
Timo
from kknn.
And here's that post - finally: https://timogrossenbacher.ch/2018/03/categorical-spatial-interpolation-with-r/
Thanks again!
from kknn.
@grssnbchr Looks amazing! Glad I could help
from kknn.
Related Issues (20)
- add type parameter in predict.kknn HOT 1
- [Bug] `kknn` returns a vector instead of a matrix for D and C when k = 1 HOT 1
- contr.ordinal
- cv.kknn error when response is a factor
- cv.kknn fold sizes are different HOT 3
- running when imported HOT 1
- error in predicting with predict.train.kknn
- Outdated examples and dangerous design choices HOT 1
- train.kknn() fails on this data set HOT 6
- Citation link does not work anymore. HOT 1
- ks too large
- predict.train.kknn() does not respect all parameters from train.kknn() HOT 1
- Error When Character Level In Train But Not Test
- New CRAN release?
- Confidence/prediction intervals for predictions
- specClust error HOT 3
- na.action ? HOT 1
- ARPACK error in specClust
- [Bug] `kknn` computes incorrect neighbours for k >= train_size - 1 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 kknn.