Skip to content

Commit

Permalink
config break fix #13
Browse files Browse the repository at this point in the history
  • Loading branch information
Saran-nns committed Nov 17, 2020
1 parent 5b2b334 commit c07cd69
Show file tree
Hide file tree
Showing 13 changed files with 52 additions and 19 deletions.
2 changes: 1 addition & 1 deletion MANIFEST
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include README.md
include LICENSE
include requirements.txt
include sorn/*.ini
include sorn/*.ini
6 changes: 3 additions & 3 deletions build/lib/sorn/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from sorn.sorn import Simulator, Trainer
from .sorn import Simulator, Trainer
import logging
from sorn.utils import *
from .utils import *

__author__ = "Saranraj Nambusubramaniyan"
__version__ = "0.3.6"
__version__ = "0.3.19"

logging.basicConfig(level=logging.INFO)
38 changes: 38 additions & 0 deletions build/lib/sorn/configuration.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[Network_Config]

# Number of neurons in the reservoir
Ne = 200

# Number of input units in the reservoir
Nu = 10

# Connection/Network type: Sparse or Dense

network_type_ee = Sparse
network_type_ei = Sparse
network_type_ie = Dense

# Mean number of incoming and outgoing connections per neuron
lambda_ee = 20
lambda_ei = 40
lambda_ie = 100

# Hebbian Learning rate
eta_stdp = 0.004

# Anti-Hebbian learning rate
eta_inhib = 0.001

# Intrinsic plasticity constants
eta_ip = 0.01

# Threshold initialization values
te_max = 1.0
ti_max = 0.5
ti_min = 0.0
te_min = 0.0

# Mean and standard deviation of target firing rate , h_ip
mu_ip = 0.1
sigma_ip = 0.0

5 changes: 1 addition & 4 deletions build/lib/sorn/sorn.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@
import pickle

parser = ConfigParser()
cwd = os.path.dirname(os.path.abspath(__file__))

config_file = r'./configuration.ini'

config_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'configuration.ini')
parser.read(config_file)

class Sorn(object):
Expand Down
Binary file added dist/sorn-0.3.19-py3-none-any.whl
Binary file not shown.
Binary file added dist/sorn-0.3.19.tar.gz
Binary file not shown.
Binary file removed dist/sorn-0.3.6-py3-none-any.whl
Binary file not shown.
Binary file removed dist/sorn-0.3.6.tar.gz
Binary file not shown.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def read(fname):

setup(
name = "sorn",
version = "0.3.6",
version = "0.3.19",
author = "Saranraj Nambusubramaniyan",
author_email = "saran_nns@hotmail.com",
description ="Self-Organizing Recurrent Neural Networks",
Expand All @@ -19,7 +19,7 @@ def read(fname):
Spiking Cortical Networks, Neural Connectomics,Neuroscience, Artificial General Intelligence, Neural Information Processing""" ,
url = "https://github.com/Saran-nns/sorn",
packages=['sorn'],
data_files = ["LICENSE"],
data_files = ["LICENSE","sorn/configuration.ini"],
long_description=read('README.md'),
long_description_content_type = "text/markdown",
classifiers=[
Expand All @@ -31,7 +31,7 @@ def read(fname):
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],
include_package_data = True,
include_package_data = True,
install_requires = ['numpy','configparser','tqdm','scipy','seaborn'],
zip_safe = False )

2 changes: 1 addition & 1 deletion sorn.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: sorn
Version: 0.3.6
Version: 0.3.19
Summary: Self-Organizing Recurrent Neural Networks
Home-page: https://github.com/Saran-nns/sorn
Author: Saranraj Nambusubramaniyan
Expand Down
1 change: 1 addition & 0 deletions sorn.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ LICENSE
README.md
setup.py
sorn/__init__.py
sorn/configuration.ini
sorn/sorn.py
sorn/test_sorn.py
sorn/utils.py
Expand Down
6 changes: 3 additions & 3 deletions sorn/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from sorn.sorn import Simulator, Trainer
from .sorn import Simulator, Trainer
import logging
from sorn.utils import *
from .utils import *

__author__ = "Saranraj Nambusubramaniyan"
__version__ = "0.3.6"
__version__ = "0.3.19"

logging.basicConfig(level=logging.INFO)
5 changes: 1 addition & 4 deletions sorn/sorn.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@
import pickle

parser = ConfigParser()
cwd = os.path.dirname(os.path.abspath(__file__))

config_file = r'./configuration.ini'

config_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'configuration.ini')
parser.read(config_file)

class Sorn(object):
Expand Down

0 comments on commit c07cd69

Please sign in to comment.