In [3]:
#/###################/#
# Global config
#
#ImportModules
import ShareYourSystem as SYS
import os
print(SYS.__file__)
"""
#style
from IPython import utils
from IPython.core.display import HTML,display
base = utils.path.get_ipython_dir()
styles = "<style>\n%s\n</style>" % (open('/Users/ledoux/Documents/Predinetwork/custom.css','r').read())
display(HTML(styles))
#SYS config
SYS.DebugPrintBool=False
#Backend plot config
%pylab inline
"""
Out[3]:
SYS proposes an API that builds architectures of objects like a JSON interface.
In [1]:
#/###################/#
# Import modules
#
#ImportModules
import ShareYourSystem as SYS
#/###################/#
# Build a neural network model
#
#Define
MyLeaker=SYS.LeakerClass(
).mapSet(
{
'-Populations':{
'|E':{
'LeakingUnitsInt':10,
'LeakingSymbolPrefixStr':'V',
'-Inputs':{
'|Rest':{
'LeakingWeigthVariable':'#scalar:-60*mV'
},
'|External':{
'LeakingWeigthVariable':'#scalar:11*mV'
}
},
'LeakingNoiseStdVariable':0.1,
'LeakingThresholdVariable':'#scalar:V>-50*mV',
'LeakingResetVariable':-70.,
'-Interactions':{
'|/':{
'BrianingDebugVariable':100,
'LeakingWeigthVariable':"#array",
'LeakingInteractionStr':"Spike"
}
},
'RecordingLabelVariable':[0,1]
#'BrianingDebugVariable':100
}
}
}
).leak(
)
In [ ]: