dsr: DSR

Description Usage Arguments Examples

Description

Distracted Sequence Recall for lstm.

Usage

1
2
dsr(brain, targets, distractors, prompts, length, iterations = NULL,
  rate = NULL, ...)

Arguments

brain

An object of class brain as returned by brain.

targets

Target sequence, a list.

distractors

Distractors sequence, a list.

prompts

Prompts sequence, a list.

length

Length of input sequence, an int, i.e.:10L.

iterations

Number of iteations.

rate

Learning rate.

...

Any other parameter.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
brain() %>%
  lstm(c(6, 7, 2)) %>%
  train(cost_function("cross_entropy")) %>%
  dsr(
    targets = list(2, 4),
    distractors = list(3, 5),
    prompts = list(0, 1),
    length = 10
  )

## End(Not run)

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