-
Notifications
You must be signed in to change notification settings - Fork 3
/
loss.ml
29 lines (24 loc) · 840 Bytes
/
loss.ml
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
exception WrongTargetType
exception BadTargetDistribution
type metrics = {
(* string rendering of working-fold loss metrics *)
s_wrk : string;
(* string rendering of validation-fold loss metrics *)
s_val : string;
(* on the basis of validation-fold metrics, should we stop
learning? *)
has_converged : bool;
(* what is the validation loss? *)
val_loss : float
}
class type splitter = object
method clear : unit
method best_split : Dog_t.monotonicity -> Feat.afeature -> Proto_t.loss_split_opt
method boost : float array -> [ `NaN | `Ok ]
method update_with_subset : bool array -> unit
method first_tree : bool array -> Model_t.l_tree
method metrics : (int -> bool) -> metrics
method num_observations : int
method write_model : Model_t.c_trees -> Model_t.feature list -> Bi_outbuf.t ->
unit
end