28 #ifndef GUM_LEARNING_SCORE_AIC_H 29 #define GUM_LEARNING_SCORE_AIC_H 33 #include <agrum/agrum.h> 34 #include <agrum/tools/core/math/math_utils.h> 35 #include <agrum/BN/learning/scores_and_tests/score.h> 36 #include <agrum/BN/learning/aprioris/aprioriNoApriori.h> 50 template <
template <
typename >
class ALLOC = std::allocator >
82 ScoreAIC(
const DBRowGeneratorParser< ALLOC >& parser,
83 const Apriori< ALLOC >& apriori,
84 const std::vector< std::pair< std::size_t, std::size_t >,
85 ALLOC< std::pair< std::size_t, std::size_t > > >& ranges,
106 ScoreAIC(
const DBRowGeneratorParser< ALLOC >& parser,
107 const Apriori< ALLOC >& apriori,
113 ScoreAIC(
const ScoreAIC< ALLOC >& from);
116 ScoreAIC(
const ScoreAIC< ALLOC >& from,
const allocator_type& alloc);
122 ScoreAIC(ScoreAIC< ALLOC >&& from,
const allocator_type& alloc);
187 static std::string
isAprioriCompatible(
const std::string& apriori_type,
double weight = 1.0f);
199 virtual double score_(
const IdCondSet< ALLOC >& idset)
final;
202 #ifndef DOXYGEN_SHOULD_SKIP_THIS 206 AprioriNoApriori< ALLOC > _internal_apriori_;
216 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 217 extern template class gum::learning::ScoreAIC<>;
222 #include <agrum/BN/learning/scores_and_tests/scoreAIC_tpl.h> virtual ~ScoreAIC()
destructor
INLINE void emplace(Args &&... args)
ScoreAIC< ALLOC > & operator=(const ScoreAIC< ALLOC > &from)
copy operator
virtual double score_(const IdCondSet< ALLOC > &idset) final
returns the score for a given IdCondSet
static std::string isAprioriCompatible(const Apriori< ALLOC > &apriori)
indicates whether the apriori is compatible (meaningful) with the score
ScoreAIC(ScoreAIC< ALLOC > &&from, const allocator_type &alloc)
move constructor with a given allocator
virtual ScoreAIC< ALLOC > * clone(const allocator_type &alloc) const
virtual copy constructor with a given allocator
ScoreAIC< ALLOC > & operator=(ScoreAIC< ALLOC > &&from)
move operator
virtual ScoreAIC< ALLOC > * clone() const
virtual copy constructor
virtual const Apriori< ALLOC > & internalApriori() const final
returns the internal apriori of the score
ScoreAIC(const ScoreAIC< ALLOC > &from)
copy constructor
ScoreAIC(const DBRowGeneratorParser< ALLOC > &parser, const Apriori< ALLOC > &apriori, const std::vector< std::pair< std::size_t, std::size_t >, ALLOC< std::pair< std::size_t, std::size_t > > > &ranges, const Bijection< NodeId, std::size_t, ALLOC< std::size_t > > &nodeId2columns=Bijection< NodeId, std::size_t, ALLOC< std::size_t > >(), const allocator_type &alloc=allocator_type())
default constructor
the class for computing AIC scores
ScoreAIC(const DBRowGeneratorParser< ALLOC > &parser, const Apriori< ALLOC > &apriori, const Bijection< NodeId, std::size_t, ALLOC< std::size_t > > &nodeId2columns=Bijection< NodeId, std::size_t, ALLOC< std::size_t > >(), const allocator_type &alloc=allocator_type())
default constructor
ScoreAIC(ScoreAIC< ALLOC > &&from)
move constructor
static std::string isAprioriCompatible(const std::string &apriori_type, double weight=1.0f)
indicates whether the apriori is compatible (meaningful) with the score
Database(const std::string &filename, const BayesNet< GUM_SCALAR > &bn, const std::vector< std::string > &missing_symbols)
virtual std::string isAprioriCompatible() const final
indicates whether the apriori is compatible (meaningful) with the score
ScoreAIC(const ScoreAIC< ALLOC > &from, const allocator_type &alloc)
copy constructor with a given allocator