Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TTFS #143

Closed
matthiashoefflin opened this issue Jan 17, 2024 · 1 comment
Closed

TTFS #143

matthiashoefflin opened this issue Jan 17, 2024 · 1 comment
Assignees

Comments

@matthiashoefflin
Copy link

When filing a bug, please provide:

  • A description of what you are trying to do
  • Are you using the development or pypi version of the toolbox?
  • The console output including the full stack trace
  • Your config file
@matthiashoefflin matthiashoefflin changed the title Dear Mr. Rueckauer TTFS Jan 17, 2024
@matthiashoefflin
Copy link
Author

matthiashoefflin commented Jan 17, 2024

Dear Mr. Rueckauer

In your publication over TTFS https://www.zora.uzh.ch/id/eprint/168616/9/168616.pdf it is visible that the SNN with TTFS performs better or comparable to the rate based. However, if i change on the MNIST dataset the spikecode to ttfs then i have a drop of the accuracy of 10% (in the case of the fashionMNIST even 20%). Do you know why this happen? Following the config:
config = configparser.ConfigParser()
config['paths'] = {
'path_wd': WORKING_DIR,
'dataset_path': DATASET_DIR,
'filename_ann': MODEL_NAME,
'runlabel': MODEL_NAME+'_'+str(NUM_STEPS_PER_SAMPLE)
}
config['tools'] = {
'evaluate_ann': True,
'parse': True,
'normalize': True,
'simulate': True,
'convert' : True
}
config['conversion'] = {
'softmax_to_relu': True,
'spike_code': 'ttfs',
}
config['simulation'] = {
'simulator': 'INI',
'duration': NUM_STEPS_PER_SAMPLE,
'num_to_test': NUM_TEST_SAMPLES,
'batch_size': BATCH_SIZE,
'keras_backend': 'tensorflow'
}
config['output'] = {
'verbose': 2,
'plot_vars': {
'input_image',
'spiketrains',
'spikerates',
'spikecounts',
'operations',
'normalization_activations',
'activations',
'correlation',
'v_mem',
'error_t'
},
'overwrite': True
}

Write the configuration file

config_filepath = os.path.join(WORKING_DIR, 'config')
with open(config_filepath, 'w') as configfile:
config.write(configfile)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants