Skip to content
Snippets Groups Projects
Classifier.hpp 667 B
Newer Older
  • Learn to ignore specific revisions
  • #ifndef CLASSIFIER__H
    #define CLASSIFIER__H
    
    #include <string>
    #include "TransitionSet.hpp"
    
    #include "NeuralNetwork.hpp"
    
    
    class Classifier
    {
      private :
    
      std::string name;
      std::unique_ptr<TransitionSet> transitionSet;
    
      std::shared_ptr<NeuralNetworkImpl> nn;
    
      private :
    
    
      void initNeuralNetwork(const std::vector<std::string> & definition);
      void initLSTM(const std::vector<std::string> & definition, std::size_t & curIndex);
    
      Classifier(const std::string & name, std::filesystem::path path, std::vector<std::string> definition);
    
      TransitionSet & getTransitionSet();
    
      NeuralNetwork & getNN();
    
    Franck Dary's avatar
    Franck Dary committed
      const std::string & getName() const;