-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtd.mli
38 lines (27 loc) · 763 Bytes
/
td.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
open Core
type t
val create
: ?epsilon_init:float
-> hidden_layer_sizes:int list
-> activation:[ `Sigmoid | `Relu ]
-> representation:[ `Original | `Modified | `Expanded ]
-> unit
-> t
val representation : t -> [ `Original | `Modified | `Expanded ]
val eval : t -> Equity.Setup.t array -> float array
module Setup : sig
type t [@@deriving sexp]
val create : Equity.Setup.t -> [ `Original | `Modified | `Expanded ] -> t
module And_valuation : sig
type nonrec t = t * float [@@deriving sexp]
end
end
val train
: t
-> (Setup.t * float) Replay_memory.t
-> minibatch_size:int
-> minibatches_number:int
-> unit
val save : t -> filename:string -> unit
val load : t -> filename:string -> unit
val sexp_of_vars : t -> Sexp.t