上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 26 下一页
摘要: 1 import torch 2 import matplotlib.pyplot as plt 3 4 # torch.manual_seed(1) # reproducible 5 6 # fake data 7 x = torch.unsqueeze(torch.linspace(-1, 1, 100), dim=1) # x data (tensor), sha... 阅读全文
posted @ 2019-10-26 13:57 _Meditation 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 1 import torch 2 import torch.nn.functional as F 3 4 5 # replace following class code with an easy sequential network 6 class Net(torch.nn.Module): 7 def __init__(self, n_feature, n_hidd... 阅读全文
posted @ 2019-10-26 13:56 _Meditation 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 1 import torch 2 import torch.nn.functional as F 3 import matplotlib.pyplot as plt 4 5 # torch.manual_seed(1) # reproducible 6 7 # make fake data 8 n_data = torch.ones(100, 2) 9 x0 = to... 阅读全文
posted @ 2019-10-26 13:48 _Meditation 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 1 import torch 2 import torch.nn.functional as F 3 import matplotlib.pyplot as plt 4 5 # torch.manual_seed(1) # reproducible 6 7 x = torch.unsqueeze(torch.linspace(-1, 1, 100), dim=1) # x data (tensor 阅读全文
posted @ 2019-10-26 13:33 _Meditation 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 1 import torch 2 import torch.nn.functional as F 3 from torch.autograd import Variable 4 import matplotlib.pyplot as plt 5 6 # fake data 7 x = torch.linspace(-5, 5, 200) # x data (tensor), shape=(100, 阅读全文
posted @ 2019-10-26 13:24 _Meditation 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 1 import torch 2 from torch.autograd import Variable 3 4 # Variable in torch is to build a computational graph, 5 # but this graph is dynamic compared with a static graph in Tensorflow or Theano. 6 # 阅读全文
posted @ 2019-10-26 13:13 _Meditation 阅读(764) 评论(0) 推荐(0) 编辑
摘要: 1 import torch 2 import numpy as np 3 4 # details about math operation in torch can be found in: http://pytorch.org/docs/torch.html#math-operations 5 阅读全文
posted @ 2019-10-26 13:12 _Meditation 阅读(278) 评论(0) 推荐(0) 编辑
摘要: (一)远程监督的思想 这篇论文首先回顾了关系抽取的监督学习、无监督学习和Bootstrapping算法的优缺点,进而结合监督学习和Bootstrapping的优点,提出了用远程监督做关系抽取的算法。 远程监督算法有一个非常重要的假设:对于一个已有的知识图谱(论文用的Freebase)中的一个三元组( 阅读全文
posted @ 2019-10-23 18:14 _Meditation 阅读(733) 评论(0) 推荐(0) 编辑
摘要: 大致描述 这一篇工作是在Zeng 2014基础上的扩展,从Fully Supervised 到Distant Supervised. 动机 Distant supervised 会产生有大量噪音或者被错误标注的数据,直接使用supervised的方法进行关系分类,效果很差。 原始方法大都是基于词法、 阅读全文
posted @ 2019-10-23 18:10 _Meditation 阅读(420) 评论(0) 推荐(0) 编辑
摘要: 1. 为什么要并发 a) 并发是一种解耦策略。他帮助我们吧做什么(目的)和何时做(时机)分解开。 b) 在web应用的servlet模式下,当有web请求时,servlet就会异步执行。2. 挑战 a) 当两个线程相互影响时就会出现不可预期的情况。这是因为线程在执行那行java代码时有许多可能路径可 阅读全文
posted @ 2019-09-26 16:38 _Meditation 阅读(240) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 26 下一页