Source code for linear_operator_learning.kernel.structs

"""Structs used by the `kernel` algorithms."""

from typing import TypedDict

import numpy as np
from numpy import ndarray


[docs] class FitResult(TypedDict): """Return type for kernel regressors.""" U: ndarray V: ndarray svals: ndarray | None
[docs] class EigResult(TypedDict): """Return type for eigenvalue decompositions of kernel regressors.""" values: ndarray left: ndarray | None right: ndarray