The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.*/
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.*/
/// @file Trainer.hpp
/// @file Trainer.hpp
/// @author Franck Dary
/// @author Franck Dary
/// @version 1.0
/// @version 1.0
...
@@ -14,11 +15,10 @@
...
@@ -14,11 +15,10 @@
#define TRAINER__H
#define TRAINER__H
#include"TransitionMachine.hpp"
#include"TransitionMachine.hpp"
#include"BD.hpp"
#include"Config.hpp"
#include"Config.hpp"
#include"TrainInfos.hpp"
#include"TrainInfos.hpp"
/// @brief An object capable of training a TransitionMachine given a BD initialized with training examples.
/// @brief An object capable of training a TransitionMachine given a Config initialized with training examples.
classTrainer
classTrainer
{
{
private:
private:
...
@@ -48,16 +48,10 @@ class Trainer
...
@@ -48,16 +48,10 @@ class Trainer
/// @brief The TransitionMachine that will be trained.
/// @brief The TransitionMachine that will be trained.
TransitionMachine&tm;
TransitionMachine&tm;
/// @brief The BD initialized with training examples.
/// @brief The configuration of the TransitionMachine while processing train corpus.
BD&trainBD;
/// @brief The configuration of the TransitionMachine while processing trainBD.
Config&trainConfig;
Config&trainConfig;
/// @brief The BD initialized with dev examples.
/// @brief The configuration of the TransitionMachine while processing dev corpus.
///
/// Can be nullptr if dev is not used in this training.
BD*devBD;
/// @brief The configuration of the TransitionMachine while processing devBD.
///
///
/// Can be nullptr if dev is not used in this training.
/// Can be nullptr if dev is not used in this training.
Config*devConfig;
Config*devConfig;
...
@@ -100,23 +94,19 @@ class Trainer
...
@@ -100,23 +94,19 @@ class Trainer
/// @brief Construct a new Trainer without a dev set.
/// @brief Construct a new Trainer without a dev set.
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.*/
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.*/