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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
"""関数の中でグローバル変数を使えなくするデコレータ""" | |
from typing import List | |
from typing import Dict | |
from typing import Optional | |
from typing import Callable | |
from typing import Any |
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 numpy as np | |
import tensorflow as tf | |
from tensorflow import keras | |
from tensorflow.keras import layers | |
import matplotlib.pyplot as plt | |
from matplotlib import animation, rc | |
rc('animation', html='html5') | |
plt.style.use('seaborn-whitegrid') |