51 |
existing file. |
existing file. |
52 |
*) |
*) |
53 |
exception FileExists |
exception FileExists |
54 |
|
|
55 |
|
(** |
56 |
|
Raised if an error occurs during the XML parsing. |
57 |
|
*) |
58 |
|
exception ParseError |
59 |
|
|
60 |
(** |
(** |
61 |
The abstract XML export visitor. |
The abstract XML export visitor. |
86 |
val mutable _fileName : string |
val mutable _fileName : string |
87 |
|
|
88 |
(** |
(** |
89 |
|
A get*. |
90 |
|
@return the name of the .xml file which is to be generated. |
91 |
|
*) |
92 |
|
method getFileName : string |
93 |
|
|
94 |
|
(** |
95 |
|
Sets the name of the .xml file which is to be generated. |
96 |
|
*) |
97 |
|
method setFileName : string -> unit |
98 |
|
|
99 |
|
(** |
100 |
If true, then if _fileName already exists on the disk, it is overwritten |
If true, then if _fileName already exists on the disk, it is overwritten |
101 |
during the dump. Otherwise the `FileExists' exception is thrown during |
during the dump. Otherwise the `FileExists' exception is thrown during |
102 |
the dump. |
the dump. |
104 |
val mutable _overwriteFile : bool |
val mutable _overwriteFile : bool |
105 |
|
|
106 |
(** |
(** |
107 |
|
A get*. |
108 |
|
@return True if the `overwrite' mode is set. Otherwise, false. |
109 |
|
*) |
110 |
|
method getOverwriteFile : bool |
111 |
|
|
112 |
|
(** |
113 |
|
Enables to choose whether LibNN is supposed to overwrite files during |
114 |
|
XML dumps or not. |
115 |
|
*) |
116 |
|
method setOverwriteFile : bool -> unit |
117 |
|
|
118 |
|
(** |
119 |
The out_channel used to dump the neural network. stdout is actually |
The out_channel used to dump the neural network. stdout is actually |
120 |
never used (since there is a default value for _fileName), but OCaml |
never used (since there is a default value for _fileName), but OCaml |
121 |
needs an initial value... |
needs an initial value... |
171 |
(** |
(** |
172 |
Parses an XML file and creates a nn object out of it. |
Parses an XML file and creates a nn object out of it. |
173 |
*) |
*) |
174 |
method private xmlParse : nn |
method xml2Nn : nn |
175 |
|
|
176 |
(** |
(** |
177 |
The generic visit method. |
The generic visit method. |