Hi;
I am working on exoplanet detection from kepler data using Spiking Neural Network. I have refactored a notebook from Kaggle which does this using keras CNN.
The code is getting an error:
---------------------------------------------------------------------------
ValidationError Traceback (most recent call last)
<ipython-input-163-71005d854e2d> in <module>
17 {converter.outputs[converter.model.output]: y_test},
18 ),
---> 19 epochs=1,
20 )
21
/opt/conda/lib/python3.7/site-packages/nengo/utils/magic.py in __call__(self, *args, **kwargs)
179 return self.wrapper(wrapped, instance, args, kwargs)
180 else:
--> 181 return self.wrapper(self.__wrapped__, self.instance, args, kwargs)
182 else:
183 instance = getattr(self.__wrapped__, "__self__", None)
/opt/conda/lib/python3.7/site-packages/nengo_dl/simulator.py in require_open(wrapped, instance, args, kwargs)
65 )
66
---> 67 return wrapped(*args, **kwargs)
68
69
/opt/conda/lib/python3.7/site-packages/nengo_dl/simulator.py in fit(self, x, y, n_steps, stateful, **kwargs)
858 y_val = validation_data[1]
859 y_val = self._standardize_data(y_val, self.model.probes)
--> 860 self._check_data(y_val, n_steps=None, nodes=False)
861
862 if len(validation_data) == 2:
/opt/conda/lib/python3.7/site-packages/nengo_dl/simulator.py in _check_data(self, data, batch_size, n_steps, nodes)
1959 f"should have rank 3 (batch_size, n_steps, dimensions), found rank "
1960 f"{len(x.shape)}",
-> 1961 f"{name} data",
1962 )
1963 if x.shape[0] < self.minibatch_size:
ValidationError: probe data: should have rank 3 (batch_size, n_steps, dimensions), found rank 2
I am enclosing the full code here.
dear members can anyone help me fix this problem.
Thanks