Comments (5)
Hi @edeno you might consider using FFTW (https://github.com/pyFFTW/pyFFTW) if you're looking for faster performance. It makes a huge improvement. It's a drop-in replacement for Numpy and Scipy FFT implementations.
from spectral_connectivity.
Thanks @Who8MyLunch. I will definitely check that out.
You don't happen to have any suggestions for something that has to take the dot product many times do you? I'm considering moving that portion to using cython, but I don't have much experience with that.
from spectral_connectivity.
@edeno there's a number of options for accelerating your dot products, the simplest being Numpy and the next being Cython. Cython is good, but it's not trivial. Numpy is trivial to use. There are many examples around the internet of using both to speed up fundamental work tasks like dot products. Good luck!
from spectral_connectivity.
I had to delete any use of lru_cache
in my local copy to avoid the memory exploding to unreasonable values (above 64 GB). Even deletion of the objects and explicit garbage collection would not do the trick. So, bottom line, depending on where your use case falls with respect to the speed/memory usage tradeoff, caching might not always be a good idea. A possible improvement would be to make the caching optional and control it by an argument to the function using it (set by default to True for backward compatibility).
from spectral_connectivity.
@christian-oreilly That makes sense. I'll think about a better way to handle this. Thank you for that feedback.
from spectral_connectivity.
Related Issues (20)
- [JOSS] Add `.mailmap` file HOT 2
- [JOSS] Add badges to README HOT 1
- [JOSS] run CI also on PRs HOT 1
- [JOSS] Extend CONTRIBUTING.md and add CODE_OF_CONDUCT.md HOT 1
- [JOSS] Consider moving to conda-forge? HOT 2
- [JOSS] Docs API section does not show function signatures HOT 1
- [JOSS] remove unneeded CI steps? HOT 1
- [JOSS] reduce superflous files? HOT 1
- [JOSS] double check CITATION.cff and prepare transparent "author" requirements HOT 2
- [JOSS] make better use of the metadata options for PyPI HOT 1
- [JOSS] Axes for expectation`time_trials_tapers` HOT 1
- [JOSS] PLV returns complex values HOT 2
- [JOSS] Comparison with MNE HOT 5
- Docs error for multiple-line array shapes HOT 1
- [JOSS] ReadTheDocs pages HOT 2
- [JOSS] Usage examples and tutorials HOT 3
- [JOSS] code and docstrings HOT 2
- [JOSS] GPU computations HOT 2
- issues with cupy HOT 1
- Puzzled about trial averaging - isn't coherence symmetric HOT 2
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 spectral_connectivity.