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.*/
/// @file Trainer.hpp
/// @author Franck Dary
/// @version 1.0
...
...
@@ -14,11 +15,10 @@
#define TRAINER__H
#include"TransitionMachine.hpp"
#include"BD.hpp"
#include"Config.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
{
private:
...
...
@@ -48,16 +48,10 @@ class Trainer
/// @brief The TransitionMachine that will be trained.
TransitionMachine&tm;
/// @brief The BD initialized with training examples.
BD&trainBD;
/// @brief The configuration of the TransitionMachine while processing trainBD.
/// @brief The configuration of the TransitionMachine while processing train corpus.
Config&trainConfig;
/// @brief The BD initialized with dev examples.
///
/// Can be nullptr if dev is not used in this training.
BD*devBD;
/// @brief The configuration of the TransitionMachine while processing devBD.
/// @brief The configuration of the TransitionMachine while processing dev corpus.
///
/// Can be nullptr if dev is not used in this training.
Config*devConfig;
...
...
@@ -100,23 +94,19 @@ class Trainer
/// @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 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.*/