Skip to content
This repository was archived by the owner on Jul 15, 2021. It is now read-only.

add new csv lookup and packaging methods; add script to repackage data - #32

Merged
mschrimpf merged 15 commits into
masterfrom
csv_lookup
Jul 29, 2020
Merged

mschrimpf merged 15 commits into
masterfrom
csv_lookup

Conversation

@mschrimpf

@mschrimpf mschrimpf commented Jul 27, 2020 •

Copy link
Copy Markdown
Member
  • design decisions
    1. keep naming assembly assy_{identifier}.nc like it is now to disambiguate
    2. call it identifier instead of name to better indicate the uniqueness and importance of it
    3. pass a StimulusSet with .get_image (but not Assembly) to the packaging already to avoid magic column names
    4. continue supporting arcname for the zip file
    5. continue passing the assembly class as a string because passed DataArrays do not have to be complete
    6. keep link from assembly to its corresponding stimulus_set in lookup
    7. Instead of going by convention and automatically retrieving .zip and .csv I think it might be better to just have two rows for the same identifier (one zip, one csv). This way we can still store the sha1 hashes for both. We can infer the csv row as the one with an object class / by the file extension
    8. we will not enforce a convention for BehavioralAssembly
  • new packaging script
  • re-write fetching methods
  • re-write list methods
  • re-package all existing data into temporary buckets
  • unit test that conversion worked in temporary buckets
  • re-package all data into proper buckets
  • unit test that conversion worked in proper buckets

I will wait with merging brainio_contrib into this repository since there are ongoing pull requests.

Notes on deletions:

  1. KnownFile -- no constraints on image uniqueness anymore

@mschrimpf
mschrimpf requested a review from jjpr-mit July 28, 2020 12:32
@mschrimpf
mschrimpf marked this pull request as draft July 28, 2020 12:59
@mschrimpf

Copy link
Copy Markdown
Member Author

all unit tests pass now except this expected one:

E       AssertionError: assert 'https://brai...015_public.nc' == 'https://brai...015_public.nc'
E         - https://brainio-dicarlo.s3.amazonaws.com/assy_dicarlo_Majaj2015_public.nc
E         ?                 ^^^^^^^
E         + https://brainio-temp.s3.amazonaws.com/assy_dicarlo_Majaj2015_public.nc
E         ?                 ^^^^

@mschrimpf

Copy link
Copy Markdown
Member Author

jenkins error is jenkins-internal

@mschrimpf
mschrimpf marked this pull request as ready for review July 29, 2020 12:14
@mschrimpf
mschrimpf merged commit 5047b8b into master Jul 29, 2020
@mschrimpf
mschrimpf deleted the csv_lookup branch July 29, 2020 12:14
mschrimpf added a commit to mschrimpf/brainio_contrib that referenced this pull request Jul 29, 2020
mschrimpf added a commit to brain-score/brainio_contrib that referenced this pull request Jul 29, 2020
* move packaging script to brainio_collection as part of brain-score/brainio_collection#32

* move unit tests to brainio_collection

* add import unit test
mschrimpf added a commit to brain-score/brainio_base that referenced this pull request Jul 29, 2020
mschrimpf added a commit to brain-score/brainio_base that referenced this pull request Jul 29, 2020
mschrimpf added a commit to brain-score/vision that referenced this pull request Jul 29, 2020
mschrimpf added a commit to brain-score/model-tools that referenced this pull request Jul 29, 2020
mschrimpf added a commit to brain-score/model-tools that referenced this pull request Jul 29, 2020
mschrimpf added a commit to brain-score/vision that referenced this pull request Jul 30, 2020
…ajHong2015 (#226)

* update for brain-score/brainio_collection#32; rename Majaj2015 to MajajHong2015

brain-score/brainio_collection#32

* update remaining pieces for MajajHong2015

* update public assembly probing

* update unit tests for `stimulus_set_identifier`

* update unit tests for `stimulus_set_identifier`, round 2
mschrimpf added a commit to brain-score/vision that referenced this pull request Aug 30, 2020
* Add file check, finish secret manager usage

* Add proper error message for submissions

* Add layer mapping

* Change score_model function call

* keep model object

* Adjust database access

* Fix database and reloading problems

* Add layer commitment option

* Move secret fetching

* Remove layer commitment flag

* Remove useless code

* First draft of new submission process

* Add reference loading

* add bibtexparser as dependency

* update for brain-score/brainio_collection#32; rename Majaj2015 to MajajHong2015

brain-score/brainio_collection#32

* update remaining pieces for MajajHong2015

* update public assembly probing

* Add test cases for submission system

* add bibtex strings for benchmarks

* add database tests

* Add peewee dependency

* Add submission system description

* Remove comment

* Add contents

* Add postgres driver library

* change postgres library to binary

* Fix tests

* Fix long failing tests due to missing files

* Remove paper link attribute, make submission tests private

* Remove dead code

* Add parent again

* Add model-tools for tests

* Add pytorch

* Fix tests

* Upgrade uninstallation

* PR comments rework

* Fix errors

* Little renaming mistake

* Try to fix(or work around) failing test on nfs file system

* Revert and remove failing test

* change database

* React to comments

* Remove paper link attribute

* Change config dir name

* Change reference method a bit

* Return none for reference method

* Change test case to test db

* Add reference unique key flag

* Adjust evaluation

* Add imagenet again

* Make model user combination unique

* Add try finally clause around evaluation to write the result file for sure

* Add id to log message

* Rerun scores when failure

* Change state, add log message

Co-authored-by: Martin Schrimpf <[email protected]>
mschrimpf added a commit to brain-score/vision that referenced this pull request Aug 31, 2020
* Add file check, finish secret manager usage

* Add proper error message for submissions

* Add layer mapping

* Change score_model function call

* keep model object

* Adjust database access

* Fix database and reloading problems

* Add layer commitment option

* Move secret fetching

* Remove layer commitment flag

* Remove useless code

* First draft of new submission process

* Add reference loading

* add bibtexparser as dependency

* update for brain-score/brainio_collection#32; rename Majaj2015 to MajajHong2015

brain-score/brainio_collection#32

* update remaining pieces for MajajHong2015

* update public assembly probing

* Add test cases for submission system

* add bibtex strings for benchmarks

* add database tests

* Add peewee dependency

* Add submission system description

* Remove comment

* Add contents

* Add postgres driver library

* change postgres library to binary

* Fix tests

* Fix long failing tests due to missing files

* Remove paper link attribute, make submission tests private

* Remove dead code

* Add parent again

* Add model-tools for tests

* Add pytorch

* Fix tests

* Upgrade uninstallation

* PR comments rework

* Fix errors

* Little renaming mistake

* Try to fix(or work around) failing test on nfs file system

* Revert and remove failing test

* change database

* React to comments

* Remove paper link attribute

* Change config dir name

* Change reference method a bit

* Return none for reference method

* Change test case to test db

* Add reference unique key flag

* Adjust evaluation

* Add imagenet again

* Make model user combination unique

* Add try finally clause around evaluation to write the result file for sure

* Add id to log message

* Rerun scores when failure

* Change state, add log message

* Change existing score behavior

* Temporary change number of trials

* Temporary change samples

* Fixes for submission system

* Reset trials

* Disable test

* Stupid bug

* last name only

* last name fix

Co-authored-by: Martin Schrimpf <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants