07 2020 档案

摘要:声明部分 %matplotlib inline #在jupyter里显示绘图窗口 import matplotlib.pyplot as plt #plt.style.use(['science', 'no-latex']) #SCI绘图风格 plt.rcParams['font.sans-seri 阅读全文
posted @ 2020-07-24 14:41 不学无墅_NKer 阅读(352) 评论(0) 推荐(0)
摘要:前提:代理选“德国”,稳定一点 ~ 1. 将Colab与Good Drive关联起来 from google.colab import drive drive.mount('/content/drive') 2.定位到Drive的根目录,并查看根目录下的文件 import os os.chdir(" 阅读全文
posted @ 2020-07-23 20:05 不学无墅_NKer 阅读(5708) 评论(0) 推荐(1)
摘要:Pytorch使用CPU运行“Torch not compiled with CUDA enabled” https://blog.csdn.net/demo_jie/article/details/107358836 AttributeError: 'Tensor' object has no a 阅读全文
posted @ 2020-07-22 20:19 不学无墅_NKer 阅读(645) 评论(0) 推荐(0)
摘要:1. 均方误差MSE 归一化的均方误差(NMSE) 2. 平均绝对误差MAE # true: 真目标变量的数组 # pred: 预测值的数组 def mse(true, pred): return np.sum((true - pred)**2) def mae(true, pred): retur 阅读全文
posted @ 2020-07-15 19:26 不学无墅_NKer 阅读(1362) 评论(0) 推荐(0)
摘要:Example: 1 clc;clear;close all; 2 x=0:10; 3 y1 = x.^2 + 2 ; 4 y2 = x.^2 + x + 2; 5 plot(x,y1,'m-p',x,y2,'b-s','linewidth',2);% 原始大图 6 legend('y1','y2' 阅读全文
posted @ 2020-07-14 20:12 不学无墅_NKer 阅读(2823) 评论(0) 推荐(0)
摘要:1.准备数据 import torch from torch.autograd import Variable # 构造0-100之间的均匀数字作为时间变量x x = Variable(torch.linspace(0,100).type(torch.FloatTensor)) # 时间点上的历史房 阅读全文
posted @ 2020-07-06 15:49 不学无墅_NKer 阅读(1749) 评论(0) 推荐(0)
摘要:1. 打开Anaconda Prompt 2. 输入命令添加清华源 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/ 3.安装0.4.1的pytorch conda ins 阅读全文
posted @ 2020-07-06 13:50 不学无墅_NKer 阅读(1859) 评论(0) 推荐(0)