ANNarchy 5.0.0
  • ANNarchy
  • Installation
  • Tutorial
  • Manual
  • Notebooks
  • Reference

  • ANNarchy
  • Core components
    • Network
    • Population
    • Projection
    • Monitor
    • PopulationView
    • Dendrite
  • Neuron and Synapse models
    • Neuron
    • Synapse
    • Parameter
    • Variable
    • Creating
    • Pruning
    • Constant
  • Neuron models
    • LeakyIntegrator
    • Izhikevich
    • IF_curr_exp
    • IF_cond_exp
    • IF_curr_alpha
    • IF_cond_alpha
    • HH_cond_exp
    • EIF_cond_alpha_isfa_ista
    • EIF_cond_exp_isfa_ista
  • Synapse models
    • Hebb
    • Oja
    • IBCM
    • STP
    • STDP
  • Inputs
    • InputArray
    • TimedArray
    • PoissonPopulation
    • TimedPoissonPopulation
    • SpikeSourceArray
    • HomogeneousCorrelatedSpikeTrains
    • CurrentInjection
    • DecodingProjection
    • ImagePopulation
    • VideoPopulation
  • Random Distributions
    • Uniform
    • DiscreteUniform
    • Normal
    • LogNormal
    • Exponential
    • Gamma
    • Binomial
  • Functions
    • add_function
    • functions
  • Callbacks
    • every
  • Utilities
    • report
    • timeit
    • sparse_random_matrix
    • sparse_delays_from_weights
    • magic_network
  • Convolution
    • Convolution
    • Pooling
    • Transpose
    • Copy
  • BOLD monitoring
    • BoldMonitor
    • BoldModel
    • balloon_RN
    • balloon_RL
    • balloon_CN
    • balloon_CL
    • balloon_maith2021
    • balloon_two_inputs
  • Tensorboard logging
    • Logger
  • ANN-to-SNN conversion
    • ANNtoSNNConverter
  • DEPRECATED Top-level API
    • setup
    • compile
    • clear
    • reset
    • set_seed
    • get_population
    • get_projection
    • populations
    • projections
    • monitors
    • simulate
    • simulate_until
    • step
    • enable_learning
    • disable_learning
    • get_time
    • set_time
    • get_current_step
    • set_current_step
    • dt
    • save
    • load
    • save_parameters
    • load_parameters
    • callbacks_enabled
    • disable_callbacks
    • enable_callbacks
    • clear_all_callbacks

On this page

  • Copy
    • Parameters
    • Methods
      • copy
      • save_connectivity
      • save
      • load
      • receptive_fields
      • connectivity_matrix

Copy

Copy(
    self,
    pre,
    post,
    target,
    psp='pre.r * w',
    operation='sum',
    name=None,
    copied=False,
    net_id=0,
)

Creates a virtual projection reusing the weights and delays of an already-defined projection.

Although the original projection can be learnable, this one can not. Changes in the original weights will be reflected in this projection. The only possible modifications are psp and operation.

The pre- and post-synaptic populations of both projections must have the same geometry.

Example:

import ANNarchy as ann
from ANNarchy.extensions.convolution import Copy

net = ann.Network()

pop1 = net.create(1000, ann.Izhikevich)
pop2 = net.create(1000, ann.Izhikevich)
pop3 = net.create(1000, ann.Izhikevich)

proj = ann.Projection(pop1, pop2, "exc")
proj.fixed_probability(0.1, 0.5)

copy_proj = Copy(pop1, pop3, "exc")
copy_proj.copy(proj)

Parameters

Name Type Description Default
pre pre-synaptic population (either its name or a Population object). required
post post-synaptic population (either its name or a Population object). required
target type of the connection required
psp continuous influence of a single synapse on the post-synaptic neuron (default for rate-coded: w*pre.r). 'pre.r * w'
operation operation (sum, max, min, mean) performed by the kernel (default: sum). 'sum'

Methods

Name Description
copy Instantiates the projection.
save_connectivity Not available.
save Not available.
load Not available.
receptive_fields Not available.
connectivity_matrix Not available.

copy

copy(projection)

Instantiates the projection.

Parameters

Name Type Description Default
projection Existing projection to copy. required

save_connectivity

save_connectivity(filename)

Not available.

save

save(filename)

Not available.

load

load(filename)

Not available.

receptive_fields

receptive_fields(variable='w', in_post_geometry=True)

Not available.

connectivity_matrix

connectivity_matrix(fill=0.0)

Not available.

Transpose
BoldMonitor
 

Copyright Julien Vitay, Helge Ülo Dinkelbach, Fred Hamker