Writes an bayes net in a text file with UAI format.
More...
#include <agrum/BN/io/UAI/UAIBNWriter.h>
|
| void | _doWrite (std::ostream &output, const IBayesNet< GUM_SCALAR > &bn) final |
| | Writes an bayes net in the given ouput stream.
|
| void | _doWrite (const std::string &filePath, const IBayesNet< GUM_SCALAR > &bn) final |
| | Writes an bayes net in the file referenced by filePath.
|
template<typename GUM_SCALAR>
class gum::UAIBNWriter< GUM_SCALAR >
Writes an bayes net in a text file with UAI format.
This class export a bayes net into an text file, using UAI format cf. http://www.cs.huji.ac.il/project/PASCAL/fileFormat.php
Definition at line 74 of file UAIBNWriter.h.
◆ UAIBNWriter() [1/3]
template<typename GUM_SCALAR>
◆ ~UAIBNWriter()
template<typename GUM_SCALAR>
◆ UAIBNWriter() [2/3]
template<typename GUM_SCALAR>
| gum::UAIBNWriter< GUM_SCALAR >::UAIBNWriter |
( |
const UAIBNWriter< GUM_SCALAR > & | | ) |
|
|
default |
◆ UAIBNWriter() [3/3]
template<typename GUM_SCALAR>
◆ _buildNameWithOnlyValidChars()
template<typename GUM_SCALAR>
| std::string gum::BNWriter< GUM_SCALAR >::_buildNameWithOnlyValidChars |
( |
const std::string & | name | ) |
|
|
protectedinherited |
◆ _cptBloc_()
template<typename GUM_SCALAR>
◆ _doWrite() [1/2]
template<typename GUM_SCALAR>
Writes an bayes net in the file referenced by filePath.
If the file doesn't exists, it is created. If the file exists, it's content will be erased.
- Parameters
-
| filePath | The path to the file used to write the bayes net. |
| bn | The bayes net writen in the file. |
- Exceptions
-
| IOError | Raised if an I/O error occurs. |
Implements gum::BNWriter< GUM_SCALAR >.
References _doWrite().
◆ _doWrite() [2/2]
template<typename GUM_SCALAR>
◆ _onlyValidCharsInName()
template<typename GUM_SCALAR>
| std::string gum::BNWriter< GUM_SCALAR >::_onlyValidCharsInName |
( |
const std::string & | name | ) |
|
|
protectedinherited |
◆ _preambule_()
template<typename GUM_SCALAR>
◆ _syntacticalCheck()
template<typename GUM_SCALAR>
|
|
protectedvirtualinherited |
◆ _validCharInNamesCheck()
template<typename GUM_SCALAR>
◆ isModificationAllowed()
template<typename GUM_SCALAR>
◆ operator=() [1/2]
template<typename GUM_SCALAR>
◆ operator=() [2/2]
template<typename GUM_SCALAR>
◆ setAllowModification()
template<typename GUM_SCALAR>
◆ write() [1/2]
template<typename GUM_SCALAR>
Writes a Bayesian network in the file referenced by filePath.
- If the file doesn't exists, it is created.
- If the file exists, it's content will be erased.
- If the bn can not be written for syntactical reasons, throw an error or try to correct it (conditioned by the value of allowModification
- Parameters
-
| filePath | The path to the file used to write the Bayesian network. |
| bn | The Bayesian network writen in the file. |
- Exceptions
-
| IOError | Raised if an I/O error occurs. |
References write().
◆ write() [2/2]
template<typename GUM_SCALAR>
Writes a Bayesian network in the output stream.
- If the bn can not be written for syntactical reasons, throw an error or try to correct it (conditioned by the value of allowModification
- Parameters
-
| output | The output stream. |
| bn | The Bayesian network written in output. |
- Exceptions
-
References write().
Referenced by gum::credal::CredalNet< GUM_SCALAR >::saveBNsMinMax(), write(), and write().
◆ _allowModification_
template<typename GUM_SCALAR>
The documentation for this class was generated from the following file: