neuron: Neurons

Description Usage Arguments See Also Examples

Description

Create neurons.

Usage

1

Arguments

brain

An object of class brain as returned by brain.

name

Name of the neuron.

squash

A object of class squash as returned by squash_function.

bias

A bias, numerical.

See Also

squash_function

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# gate
brain() %>%
  neuron("A", squash_function("tanh"), .3) %>%
  neuron("B") %>%
  project("A", "B", "connection") %>%
  neuron("C") %>%
  gate(
    "C",
    "connection"
  )

brain-r/brain documentation built on May 21, 2019, 4:05 a.m.