| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| | """ Machine Learning Exception """
|
| |
|
| | from qiskit.exceptions import QiskitError
|
| |
|
| |
|
| | class QiskitMachineLearningError(QiskitError):
|
| | """Class for errors returned by Qiskit Machine Learning module."""
|
| |
|
| | pass
|
| |
|
| |
|
| | class QiskitMachineLearningWarning(UserWarning):
|
| | """Class for warning returned by Qiskit Machine Learning module."""
|
| |
|
| | def __init__(self, *message):
|
| | """Set the error message."""
|
| | super().__init__(" ".join(message))
|
| | self.message = " ".join(message)
|
| |
|
| | def __str__(self):
|
| | """Return the message."""
|
| | return repr(self.message)
|
| |
|