cMHN 1.0
C++ library for learning MHNs with pRC
externs_TT.hpp
Go to the documentation of this file.
1using T = pRC::Float<>;
2
3using TTN = pRC::TensorTrain::Tensor<T, decltype(cMHN::TT::getModeSizes<EVENTS>()),
4 decltype(cMHN::TT::getRanks<EVENTS, MAXRANKP, 2>())>;
5
6using S = TTN::Subscripts;
7
8extern template TTN cMHN::calculatePTheta<MAXRANKP>(
9 cMHN::TT::MHNOperator<T, EVENTS> const&, TTN const&, T const&);
10
11extern template T cMHN::calculateScore<MAXRANKP>(
12 cMHN::TT::MHNOperator<T, EVENTS> const&, std::map<S, T> const&,
14 T const&);
15
16extern template
17std::tuple<T, pRC::Tensor<T, EVENTS, EVENTS>>
18cMHN::calculateScoreAndGradient<MAXRANKP, MAXRANKQ>(
19 cMHN::TT::MHNOperator<T, EVENTS> const&, std::map<S, T> const&,
21 T const&, T const&);
22
23extern template
24std::tuple<pRC::Tensor<T, EVENTS, EVENTS>,
25 std::map<std::string, std::string>,
26 std::map<std::string, double>>
27cMHN::TT::learnTheta<MAXRANKP, MAXRANKQ>(pRC::Tensor<T, EVENTS, EVENTS> const&,
28 std::string const&, std::string const&, std::map<S, T> const&,
29 cMHN::Score<T> const&, cMHN::Regulator<T, EVENTS> const&, T const&,
30 T const&, T const&);
Class storing all relevant information for a regulator.
Definition: regulator.hpp:30
Class storing all relevant information for a score.
Definition: score.hpp:27
Class storing an MHN operator represented by a theta matrix (for TT calculations)
Definition: mhn_operator.hpp:23
pRC::TensorTrain::Tensor< T, decltype(cMHN::TT::getModeSizes< EVENTS >()), decltype(cMHN::TT::getRanks< EVENTS, MAXRANKP, 2 >())> TTN
Definition: externs_TT.hpp:4
TN::Subscripts S
Definition: externs_nonTT.hpp:9
pRC::Float<> T
Definition: externs_nonTT.hpp:1