This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" NeuronLogistic class to logistic neurons with logit input """ | |
# Field input receives a dictionaire where key = number of the input unit, | |
# element = length 2 list with signal and synaptic weights respectively | |
import numpy as np | |
class NeuronLogistic: | |
def __init__(self,presynaptics): | |
if type(presynaptics) != dict: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" NeuralNetwork class to arrange neurons in a topology and do dynamics """ | |
# MinimumBrain is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# MinimumBrain is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
@Forked by Uiuran (c) 2013 | |
@date Feb 21, 2011 | |
@original author: mjbommar (c) 2011 | |
@license Simplified BSD, (C) 2011. | |
Free to use for non-commerical purposes. Attribution appreciated :) | |
''' | |
import igraph |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
@Fork by Uiuran 2013 | |
@created on Jan 17, 2010 | |
@author: mjbommar | |
''' | |
from GraphMovie import GraphMovie | |
import igraph | |
import numpy as np | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Image | |
import numpy as np | |
import scipy | |
# To test the codes put a number between [1,2] in the variable do_code | |
do_code = 2; | |
if do_code == 1: | |
import kuramotoGrid as kg | |
K = 20.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import scipy | |
from scipy.integrate import * | |
import matplotlib.pyplot as plot | |
sin = np.sin | |
def kuramotoGrid(x,t0, K, w): | |
l = [len(w[1,:]),len(w[:,1])]; | |
x = x.reshape((l[1],l[0])); | |
# l[0] is horizontal, columns, l[1] is vertical, rows, dimension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#agent002, agent simulation in a General Topology with 1 float field for each agent (node) and random sampling of interactions (egdes) between time step, the process evaluation is a adition of the mean interaction to the fields { fieldA[time] =( fieldA[ time-1] + fieldB[time-1])/2 , the same is true for fieldB}, ie homophilic interaction, the agents start with random float number sampled from uniform [0,1). This process prints the visualization of the network. | |
#import paintGraph as pg | |
import numpy as np | |
import networkx as nx | |
import GraphMovie as gm | |
import igraph | |
class AgentModel(object): | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
@author: Uiuran 2013 | |
''' | |
from GraphMovie import GraphMovie | |
import igraph | |
import numpy as np | |
import agents0020 as am | |
if __name__ == "__main__": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from types import * | |
sin = np.sin | |
# Deterministic Kuramoto model like functions | |
# Copyright (C) 2013 \0/\o/\0/\o/\0/ | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU Affero General Public License as | |
# published by the Free Software Foundation, either version 3 of the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mnet_pack import * | |
# Multi topologies network and cyclic Kinouchi-Copelli like automatas | |
# Copyleft (AA) 2014 ooOOOoooOOOoo8OOOooooOOOOooo8ooOO69 | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU Affero General Public License as | |
# published by the Free Software Foundation, either version 3 of the | |
# License, or (at your option) any later version. | |
OlderNewer