上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 19 下一页
摘要: # Define LSTM class Lstm(nn.Module): def __init__(self, input_size, hidden_size=2, output_size=1, num_layers=1): super().__init__() self.layer1 = nn.L 阅读全文
posted @ 2022-04-07 20:18 华小电 阅读(25) 评论(0) 推荐(0) 编辑
摘要: x=np.arange(1,100) y = np.sin(0.1*x) def D_1(x,y): n = len(x) d = np.zeros(n) d[0] = (y[1]-y[0])/(x[1]-x[0]) d[n-1] = (y[n-1]-y[n-2])/(x[n-1]-x[n-2]) 阅读全文
posted @ 2022-03-29 16:10 华小电 阅读(347) 评论(0) 推荐(0) 编辑
摘要: x = [1,2,3] y1 = np.array([4,5,6]) y2 = np.array([5,6,7]) y3 = np.array([7,6,5]) width = 0.2 Sum = y1+y2+y3 per = 100*y2/Sum #添加在中间,旋转90度 def add_mid( 阅读全文
posted @ 2022-03-29 09:13 华小电 阅读(412) 评论(0) 推荐(0) 编辑
摘要: ```python def firstorder(T,K,t,In): # T 时间常数 # K 增益 Out = np.zeros(len(In)) for i in range(1,len(t)): dt = t[i]-t[i-1] s = T/dt Out[i] = K*In[i]/(s+1) 阅读全文
posted @ 2022-03-24 13:52 华小电 阅读(699) 评论(0) 推荐(0) 编辑
摘要: x = np.arange(0,101) wn = np.random.rand(101) y1 = -1+0.02*x+0.1*wn y2 = np.sin(0.5*x) y3 = 0.0001*x**2-0.03*x+1 y4 = 0.8*np.cos(x) fig,ax1 = plt.subp 阅读全文
posted @ 2022-03-24 11:17 华小电 阅读(218) 评论(0) 推荐(0) 编辑
摘要: import numpy as np import statsmodels.api as sm from gekko import GEKKO # Data x0 = np.array([4,5,2,3,-1,1,6,7]) x1 = np.array([3,2,3,4, 3,5,2,6]) y = 阅读全文
posted @ 2022-03-17 14:16 华小电 阅读(724) 评论(0) 推荐(0) 编辑
摘要: import numpy as np from scipy.stats import linregress import statsmodels.api as sm import matplotlib.pyplot as plt from gekko import GEKKO # Data x = 阅读全文
posted @ 2022-03-17 14:15 华小电 阅读(707) 评论(0) 推荐(0) 编辑
摘要: nmcli 网卡显示未托管 解决办法: 修改/etc/NetworkManager/NetworkManager.conf 将文件中的 managed = false 改为 true 重启就可以了 这样就可以通过nmcli命令来断开/连接 网卡 nmcli device disconnect eth 阅读全文
posted @ 2022-01-07 17:05 华小电 阅读(1741) 评论(0) 推荐(0) 编辑
摘要: 举例: $$\begin{matrix} 0&1&1\\ 1&1&0\\ 1&0&1\\ \end{matrix}$$ 呈现为: \[ \begin{matrix} 0&1&1\\ 1&1&0\\ 1&0&1\\ \end{matrix} \] . 矩阵边框 在起始、结束标记用下列词替换 matri 阅读全文
posted @ 2021-12-18 11:31 华小电 阅读(182) 评论(0) 推荐(0) 编辑
摘要: x = np.random.random(10) y = np.random.random(10) note = np.arange(1,11) plt.scatter(x,y,marker = 'o', c = 'r') plt.title('在数据上添加标注',fontproperties='M 阅读全文
posted @ 2021-12-11 21:57 华小电 阅读(288) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 19 下一页