Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ines Filipa Fernandes Ramos
inception_loop_asari_lab
Commits
13328ec9
Commit
13328ec9
authored
Apr 07, 2021
by
Ines Filipa Fernandes Ramos
Browse files
added simple CNN notebook
parent
9fe32e10
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
RGC_simulations/LNModel.ipynb
View file @
13328ec9
This diff is collapsed.
Click to expand it.
RGC_simulations/MEI.py
View file @
13328ec9
...
...
@@ -431,7 +431,7 @@ def MEI_multi_seed(dataset_name, dat, dataloaders, models, n_seeds, MEIParameter
return
MEI
def
multi_MEI_class
()
:
class
multi_MEI_class
:
"""
dataset_name : string # string with dataset_name of dataset used for training
dat : object # fileTreeDataset object with data schema of data
...
...
@@ -468,17 +468,16 @@ def multi_MEI_class():
self
.
dataset_name
=
dataset_name
self
.
dat
=
dat
self
.
dataloaders
=
dataloaders
sel
.
models
=
models
self
.
models_name
=
nameof
(
models
)
self
.
models
=
models
self
.
n_seeds
=
n_seeds
self
.
MEIParameter
=
MEIParameter
self
.
MEIProperties
=
[]
self
.
MEIProperties
=
{}
def
generate
(
self
,
neuron_id
,
track
=
False
):
print
(
'Working on neuron_id={}'
.
format
(
neuron_id
))
# get input statistics
dataset
,
img_shape
,
bias
,
mu_beh
,
mu_eye
,
scale
=
prepare_data
(
dataloaders
=
self
.
dataloaders
,
dataset_name
=
self
.
dataset_name
,
dat
=
self
.
dat
)
dataset
,
img_shape
,
bias
,
mu_beh
,
mu_eye
,
scale
=
prepare_data
(
dataloaders
=
self
.
dataloaders
,
dataset_name
=
self
.
dataset_name
,
dat
=
self
.
dat
)
print
(
'Working with images with mu={}, sigma={}'
.
format
(
bias
,
scale
))
# get n instances of model for target unit
...
...
@@ -525,9 +524,7 @@ def multi_MEI_class():
cont
,
vals
,
lim_contrast
=
contrast_tuning
(
adj_model
,
mei
,
bias
,
scale
)
MEI
=
{
'neuron_id'
:
neuron_id
,
'n_seeds'
:
self
.
n_seeds
,
MEI
=
{
'n_seeds'
:
self
.
n_seeds
,
'mei'
:
mei
,
'activation'
:
activation
,
'monotonic'
:
bool
(
np
.
all
(
np
.
diff
(
vals
)
>=
0
)),
...
...
@@ -538,6 +535,6 @@ def multi_MEI_class():
'lim_contrast'
:
lim_contrast
,
}
self
.
MEIProperties
.
append
(
MEI
)
self
.
MEIProperties
[
'neuron_id : '
+
str
(
neuron_id
)]
=
MEI
return
MEI
[
'mei'
]
\ No newline at end of file
RGC_simulations/MEI_param_tuning.ipynb
View file @
13328ec9
...
...
@@ -6848,7 +6848,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.
5
"
"version": "3.8.
8
"
}
},
"nbformat": 4,
...
...
RGC_simulations/Model_param_tuning.ipynb
View file @
13328ec9
...
...
@@ -58666,7 +58666,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.
5
"
"version": "3.8.
8
"
}
},
"nbformat": 4,
RGC_simulations/RGC_sim.ipynb
View file @
13328ec9
This diff is collapsed.
Click to expand it.
RGC_simulations/example_notebook_RGC_sim.ipynb
View file @
13328ec9
This diff is collapsed.
Click to expand it.
RGC_simulations/example_notebook_RGC_sim_checkerboard.ipynb
View file @
13328ec9
...
...
@@ -2769,7 +2769,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.
5
"
"version": "3.8.
8
"
}
},
"nbformat": 4,
...
...
RGC_simulations/notebook_simple_CNN_RGC_sim.ipynb
0 → 100644
View file @
13328ec9
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment