NotFittedError
Module: strata.utils • Kind: struct • Traits: Copyable, Movable, Writable
Source: strata/exceptions/errors.mojo
struct NotFittedError(Copyable, Movable, Writable)from strata.utils import NotFittedErrorException raised when an estimator is used before calling fit.
Methods Overview
Section titled “Methods Overview”| Method | Description |
|---|---|
NotFittedError.error() |
Create a formatted NotFittedError message. |
NotFittedError.write_to() |
Format a human-readable string representation to a writer. |
Method Details
Section titled “Method Details”NotFittedError.error()
Section titled “NotFittedError.error()”def error(estimator_name: String, msg: String = "") -> ErrorCreate a formatted NotFittedError message.
| Parameter | Type | Description |
|---|---|---|
estimator_name |
String |
— |
msg |
String |
— |
Returns: Error
NotFittedError.write_to()
Section titled “NotFittedError.write_to()”def write_to(self, mut writer: Some[Writer])Format a human-readable string representation to a writer.