Comments (5)
Rank refers to the number of dimensions in the array. So, e.g., an array with shape (5,)
is rank 1, (5, 3)
would be rank 2, etc. So that error is telling you that you have an extra dimension in your input data. In that line print(x_train.shape...
, I'd guess that that is printing out a shape with 4 elements (likely because the two-dimensional images have not been flattened).
from nengo-dl.
Ah, yes. Attached are some tests I ran after loading both datasets (prior to adding the time dimension). They seem so similar (screenshot), so was not sure why the mnist fashion would throw an extra dimension error when running sim. After poring through data very thoroughly, was able to sort it out- issue was with each row in mnist fashion image being stored as an array, rather than one large array.
After restructuring data, got spiking working with fashion-mnist! I appreciate the help!
from nengo-dl.
That is what I had assumed, but when I print("x_train shape:", x_train.shape, "y_train shape:", y_train.shape)
, it returns x_train shape: (60000, 28, 28) y_train shape: (60000,)
So it appears that the x_train is 3 dim. I appreciate your help, excited to start working with nengo-dl more.
from nengo-dl.
Oh also keep in mind that if you're following the spiking-mnist example then later on you're adding an extra dimension (for time), so your shape would become (60000, 1, 28, 28)
.
from nengo-dl.
Hi @joh10891!
I am also facing the same issue, so can you please share the code of how you restructured the data that helped you resolving the issue ?
from nengo-dl.
Related Issues (20)
- AssertionError running custom neuron with TensorFlow 2.3.0 HOT 3
- Empty probes are Python lists instead of ndarrays
- Creating a simulator while keeping pretrained weights HOT 3
- Uninformative error message when using `sim.compile` on a network with no probed outputs
- Support/examples for converting or embedding Keras RNNs HOT 1
- Support scale_firing_rates with Regular/Poisson/Stochastic spiking wrappers
- Warn if converter's scale_firing_rates would skew the nonlinearities
- Support opting in to spikes on the forward pass
- Nengo version of ModelCheckpoint callback
- Use no-input nodes by default in converter
- load_params misbehaves with scale_firing_rates for some architectures HOT 1
- Converter `synapse` not applied to `neurons`-to-`TensorNode` connections HOT 1
- Converter fails with `tf.keras.applications.EfficientNet`
- Mistake in documentation
- Trainable parameters in Nengo LIF neurons HOT 2
- Which neuromorphic hardware does NengoDL simulate ?
- sim.predict make GPU full memory HOT 7
- BatchNormalization layer produces LOW accuracy
- Importing Nengo_DL in Google Colab HOT 1
- `nengo_dl` cannot import `keras.engine` 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 nengo-dl.