#ifndef MEDIA_LEARNING_IMPL_VOTING_ENSEMBLE_H_
#define MEDIA_LEARNING_IMPL_VOTING_ENSEMBLE_H_
#include <memory>
#include <vector>
#include "base/component_export.h"
#include "media/learning/impl/model.h"
namespace media {
namespace learning {
class COMPONENT_EXPORT(LEARNING_IMPL) VotingEnsemble : public Model {
public:
VotingEnsemble(std::vector<std::unique_ptr<Model>> models);
VotingEnsemble(const VotingEnsemble&) = delete;
VotingEnsemble& operator=(const VotingEnsemble&) = delete;
~VotingEnsemble() override;
TargetHistogram PredictDistribution(const FeatureVector& instance) override;
private:
std::vector<std::unique_ptr<Model>> models_;
};
}
}
#endif