Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
""" | |
Abstract Base class with automatic Pytree registration | |
Inspired by from https://github.com/google/jax/issues/2916 | |
""" | |
import json | |
from abc import abstractmethod | |
from typing import Any, Dict, List, Tuple | |
import jax.numpy as np | |
from jax import jit, vmap, random |
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
from iplotter import GCPlotter | |
plotter = GCPlotter() | |
data = [ | |
['From', 'To', 'Weight'], | |
['Brazil', 'Portugal', 5], | |
['Brazil', 'France', 1], | |
['Brazil', 'Spain', 1], | |
['Brazil', 'England', 1], |