Versions in this module Expand all Collapse all v0 v0.5.0 Aug 21, 2025 v0.4.0 Aug 7, 2025 v0.3.0 Aug 7, 2025 v0.2.0 Aug 6, 2025 Changes in this version + var ErrEmptyData = New("empty data") + var ErrNotImplemented = New("not implemented") + var ErrSingularMatrix = New("singular matrix") + func As(err error, target interface{}) bool + func CheckMatrix(operation string, matrix interface{ ... }, rows, cols, iteration int) error + func CheckNumericalStability(operation string, values []float64, iteration int) error + func CheckScalar(operation string, value float64, iteration int) error + func ClipGradient(gradient []float64, maxNorm float64) []float64 + func ClipValue(value, min, max float64) float64 + func Is(err, target error) bool + func LogSumExp(values []float64) float64 + func New(message string) error + func NewDimensionError(op string, expected, got, axis int) error + func NewInputShapeError(phase string, expected, got []int) error + func NewModelError(op, kind string, err error) error + func NewNotFittedError(modelName, method string) error + func NewNumericalInstabilityError(operation string, values []float64, iteration int) error + func NewValidationError(param, reason string, value interface{}) error + func NewValueError(op, message string) error + func Newf(format string, args ...interface{}) error + func Recover(err *error, operation string) + func SafeDivide(numerator, denominator float64) float64 + func SafeExecute(operation string, fn func() error) (err error) + func SetWarningHandler(handler func(w error)) + func SetZerologWarnFunc(warnFunc func(warning error)) + func StabilizeExp(value float64) float64 + func StabilizeLog(value float64) float64 + func Warn(w error) + func WithStack(err error) error + func Wrap(err error, message string) error + func Wrapf(err error, format string, args ...interface{}) error + type CatastrophicForgettingWarning struct + DropRate float64 + Metric string + NewPerformance float64 + OldPerformance float64 + func NewCatastrophicForgettingWarning(metric string, oldPerf, newPerf float64) *CatastrophicForgettingWarning + func (w *CatastrophicForgettingWarning) Error() string + type ConvergenceWarning struct + Algorithm string + Iterations int + Message string + func NewConvergenceWarning(algorithm string, iterations int, message string) *ConvergenceWarning + func (w *ConvergenceWarning) Error() string + func (w *ConvergenceWarning) MarshalZerologObject(e *zerolog.Event) + type DataConversionWarning struct + FromType string + Reason string + ToType string + func NewDataConversionWarning(from, to, reason string) *DataConversionWarning + func (w *DataConversionWarning) Error() string + func (w *DataConversionWarning) MarshalZerologObject(e *zerolog.Event) + type DimensionError struct + Axis int + Expected int + Got int + Op string + func (e *DimensionError) Error() string + func (e *DimensionError) MarshalZerologObject(event *zerolog.Event) + type InputShapeError struct + Expected []int + Feature string + Got []int + Phase string + func (e *InputShapeError) Error() string + type ModelDriftWarning struct + Action string + Detector string + DriftScore float64 + Threshold float64 + Timestamp int64 + func NewModelDriftWarning(detector string, score, threshold float64, action string) *ModelDriftWarning + func (w *ModelDriftWarning) Error() string + type ModelError struct + Err error + Kind string + Op string + func (e *ModelError) Error() string + func (e *ModelError) Unwrap() error + type NotFittedError struct + Method string + ModelName string + func (e *NotFittedError) Error() string + func (e *NotFittedError) MarshalZerologObject(event *zerolog.Event) + type NumericalInstabilityError struct + Context map[string]interface{} + Iteration int + Operation string + Values []float64 + func (e *NumericalInstabilityError) Error() string + type PanicError struct + Operation string + PanicValue interface{} + StackTrace string + func NewPanicError(operation string, panicValue interface{}) *PanicError + func (e *PanicError) Error() string + func (e *PanicError) String() string + func (e *PanicError) Unwrap() error + type UndefinedMetricWarning struct + Condition string + Metric string + Result float64 + func NewUndefinedMetricWarning(metric, condition string, result float64) *UndefinedMetricWarning + func (w *UndefinedMetricWarning) Error() string + type ValidationError struct + ParamName string + Reason string + Value interface{} + func (e *ValidationError) Error() string + func (e *ValidationError) MarshalZerologObject(event *zerolog.Event) + type ValueError struct + Message string + Op string + func (e *ValueError) Error() string