I am using the classification example “Encoding Image Recognition”:
and would like to save the model after training and then use it for inference on a single test image at a time.
In the model definition:
with nengo.Network(seed=3) as model:
a = nengo.Ensemble(n_hid, n_vis, **ens_params)
v = nengo.Node(size_in=n_out)
conn = nengo.Connection(
a, v, synapse=None,
eval_points=X_train, function=T_train, solver=solver)
I can save the weights (conn), but not sure how to save the model, because the ens_params contain the training data (X_train). Any help will be very much appreciated!