module Types: sig .. end
Types and Methods that are used in several different other modules
type 'a coord = {
}
A simple 2-D coordinate type
type attribute =
| |
Bool of bool |
| |
Other of string |
a general type to describe attributes
type data
a data element
type 'a example = {
|
ex_category : 'a; |
|
ex_data : data; |
}
example data to present to a learning algorithm
val sort : ('a -> 'b) -> 'a list -> 'a list list
split a list according to a function
val sort_by_cat : 'a example list -> ('a * data list) list
split examples according to their categories
val count : data list -> (attribute * int) list array
count the occurence of each attribut in the data
val print_attribute : attribute -> unit
val create : attribute array -> data
val copy : data -> data
val set : data -> int -> attribute -> unit
val get_data : data -> int -> attribute