lyndond / analyzing_neural_time_series Goto Github PK
View Code? Open in Web Editor NEWpython implementations of Analyzing Neural Time Series Textbook
License: MIT License
python implementations of Analyzing Neural Time Series Textbook
License: MIT License
Numpy uses row order bytes by default. when a reshape operation is done on an array, byte reordering ( changing into column major; order='F') can be costly in terms of memory ( a new contagious array is filled with the reordered elements) and execution speed.
Numpy's Fourier functions take an axis parameter. By default, the last axis(-1) is Fourier transformed with parameter (N; signal length) being cropped or padded along that axis. This might help when dealing with large number of trials.
Hi. Thanks for your code!
I would like to ask. In Ch.11, when I run this:
ax = fig.add_subplot(222, projection='3d')
ax.plot(frequencies,np.angle(fourier[:N/2+1]),zs=np.absolute(fourier[:N/2+1])**2)
ax.view_init(20, 20)
ax.set_xlabel('Frequency (Hz)')
ax.set_ylabel('Phase')
ax.set_zlabel('Power')
plt.title("3D representation of the Fourier transform")
I get the following error:
slice indices must be integers or None or have an index method
Perhaps there is come changes in Python 3?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.