Bases: Exception
Raised when an error occurred while training a model.
Parameters:
Name |
Type |
Description |
Default |
reason |
str
|
The reason for the error.
|
required
|
Source code in src/safeds/exceptions/_ml.py
| class LearningError(Exception):
"""
Raised when an error occurred while training a model.
Parameters
----------
reason:
The reason for the error.
"""
def __init__(self, reason: str):
super().__init__(f"Error occurred while learning: {reason}")
|