摘要: from pandas import DataFrame, read_csv import matplotlib.pyplot as plt import pandas as pd import sys import matplotlib from numpy import random #为后面导 阅读全文
posted @ 2020-05-18 23:25 啊啊啊啊啊123456 阅读(160) 评论(0) 推荐(0)
摘要: #导入课程所需要的库 #导入一个库中制定函数的一般做法: ##from (library) import(specific library function) #导入一个库的一般做法: ##import (library) as (give the library a nickname/alias) 阅读全文
posted @ 2020-05-18 00:08 啊啊啊啊啊123456 阅读(268) 评论(0) 推荐(0)
摘要: # coding: utf-8import numpy as np def identity_function(x): return x def step_function(x): return np.array(x > 0, dtype=np.int) def sigmoid(x): return 阅读全文
posted @ 2020-05-05 13:50 啊啊啊啊啊123456 阅读(269) 评论(0) 推荐(0)
摘要: # coding: utf-8import numpy as np def _numerical_gradient_1d(f, x): h = 1e-4 # 0.0001 grad = np.zeros_like(x) for idx in range(x.size): tmp_val = x[id 阅读全文
posted @ 2020-05-05 13:49 啊啊啊啊啊123456 阅读(1182) 评论(0) 推荐(0)