Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bindsnet/encoding/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def bernoulli_loader(
:param float max_prob: Maximum probability of spike per Bernoulli trial.
"""
# Setting kwargs.
max_prob = kwargs.get("dt", 1.0)
max_prob = kwargs.get("max_prob", 1.0)

for i in range(len(data)):
# Encode datum as Bernoulli spike trains.
Expand Down
4 changes: 0 additions & 4 deletions bindsnet/network/monitors.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

import numpy as np
import torch
import numpy as np

from abc import ABC
from typing import Union, Optional, Iterable, Dict

from bindsnet.network.nodes import Nodes
from bindsnet.network.topology import (
Expand Down
2 changes: 1 addition & 1 deletion bindsnet/network/topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def __init__(
source: Nodes,
target: Nodes,
device: device,
pipeline: list = [],
pipeline: Optional[list] = None,
manual_update: bool = False,
traces: bool = False,
**kwargs,
Expand Down