inspired by karpathy/micrograd: A tiny scalar-valued autograd engine and a neural net library on top of it with PyTorch-like API (github.com)and Taking PyTorch for Granted | wh (nrehiew.github.io).
这属于karpathy的karpathy/nn-zero-to-hero: Neural Networks…
智慧金融-数据可视化
导入所需的库
import numpy as np
import numpy_financial as npf
import matplotlib.pyplot as plt
from pylab import mpl
mpl.rcParams[font.sans-serif][FangSong]
mpl.rcParams[axes.unicode_minus]False单图曲线图
r 0.05 # 贷款的年利率
n 30…