03d6538281ec2abf7a37166f8df783c93480c774,bindsnet/encoding/__init__.py,,bernoulli_loader,#Any#Any#,44

Before Change


	
		| (:code:`torch.Tensor`): Tensors of shape :code:`[time, n_1, ..., n_k]` of Bernoulli-distributed spikes.
	"""
	if "max_prob" in kwargs:
		max_prob = kwargs["max_prob"]
	else:
		max_prob = 1.0
	
	for i in range(len(data)):
		yield bernoulli(data[i], time, max_prob=max_prob)  // Encode datum as Bernoulli spike trains.

def poisson(datum, time, **kwargs):

After Change


	"""
	
	// Setting kwargs.
	max_prob = kwargs.get("max_prob", 1.0)
	
	for i in range(len(data)):
		yield bernoulli(data[i], time, max_prob=max_prob)  // Encode datum as Bernoulli spike trains.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: BindsNET/bindsnet
Commit Name: 03d6538281ec2abf7a37166f8df783c93480c774
Time: 2018-05-22
Author: hqkhan@umass.edu
File Name: bindsnet/encoding/__init__.py
Class Name:
Method Name: bernoulli_loader


Project Name: BindsNET/bindsnet
Commit Name: e7dce9b2cfb0d34c646f4f032a0c03625796246d
Time: 2018-05-11
Author: djsaunde@umass.edu
File Name: bindsnet/learning/__init__.py
Class Name:
Method Name: m_stdp_et


Project Name: BindsNET/bindsnet
Commit Name: 03d6538281ec2abf7a37166f8df783c93480c774
Time: 2018-05-22
Author: hqkhan@umass.edu
File Name: bindsnet/encoding/__init__.py
Class Name:
Method Name: bernoulli