This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
from typing import Any, Literal, Union | |
import numpy as np | |
import jax | |
import jax.numpy as jnp | |
from jax._src.distributed import initialize | |
from jaxtyping import PRNGKeyArray | |
import equinox as eqx | |
from equinox._misc import default_floating_dtype |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import lineax as lx | |
import jax.numpy as jnp | |
import jax | |
from jaxtyping import Float, Array | |
class CubicSpline: | |
x_grid: Float[Array, str("batch")] # input x data | |
y_grid: Float[Array, str("n")] # input y data |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.