Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

TemporalModelCommitments #3

Open
wants to merge 59 commits into
base: master
Choose a base branch
from
Open

TemporalModelCommitments #3

wants to merge 59 commits into from

Conversation

fksato
Copy link
Member

@fksato fksato commented Mar 29, 2019

No description provided.

@mschrimpf
Copy link
Member

please merge upstream again, travis/awscli were giving us a hard time

Copy link
Member

@mschrimpf mschrimpf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall, I left a few comments in the code.
Please also remove tests/__pycache__

.gitignore Outdated Show resolved Hide resolved
model_tools/brain_transformation/temporal_map.py Outdated Show resolved Hide resolved
model_tools/brain_transformation/temporal_map.py Outdated Show resolved Hide resolved
temporal_maps[region] = time_bin_regressor
return temporal_maps

def _set_region_coords(self, activations, layer_regions):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll work on a fix for this soon, so that you hopefully won't need this here anymore (brain-score/brainio_base#1)

model_tools/brain_transformation/temporal_map.py Outdated Show resolved Hide resolved
model_tools/brain_transformation/temporal_map.py Outdated Show resolved Hide resolved
tests/brain_transformation/test_temporal_map.py Outdated Show resolved Hide resolved
tests/brain_transformation/test_temporal_map.py Outdated Show resolved Hide resolved
tests/brain_transformation/test_temporal_map.py Outdated Show resolved Hide resolved
if type(variation) is not list:
variation = [variation]
assembly_dir = path.join(path.dirname(__file__), 'test_temporal_assemblies')
test_assembly_filename = 'temporal_test_{}_var{}.pkl'.format(region, ''.join(str(v) for v in variation))
Copy link
Member

@mschrimpf mschrimpf Apr 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can also do f'temporal_test_{region}_var{"".join(str(v) for v in variation)}.pkl'

expected_region_count = len(expected_region)
expected_time_bin_count = len(training_assembly.time_bin.values)

extractor = pytorch_custom()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use model_ctr

temporal_model = TemporalModelCommitment('', extractor, layers)
# commit region:
temporal_model.commit_region(region, commit_assembly)
temporal_model.do_commit_region(region)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

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