摘要: 综述 根据SICP,一门语言有以下模式: primitive expressions, which represent the simplest entities the language is concerned with, means of combination, by which compo 阅读全文
posted @ 2020-11-23 12:00 千心 阅读(483) 评论(0) 推荐(0)
摘要: A B Out 0 0 0 0 1 1 1 0 1 1 1 0 排他性分离本质上意味着"要么仅存在一个,要么两者都或者都不存在"。换句话说,如果陈述为 true,并且仅在一个为 true 且另一个为 false 时,该陈述才为 true。 例如,如果两匹马在赛跑,那么两匹马中一匹马将赢得比赛,但不是 阅读全文
posted @ 2020-11-02 11:42 千心 阅读(108) 评论(0) 推荐(0)
摘要: 本文总结了知识图谱的核心论文之一《Knowledge Graphs》 定义 知识图谱的定义是有争议的,在本文中使用包容的定义,即我们将知识图谱看作一个关注累积和转化现实世界知识的数据图谱,它的节点展现了兴趣实体,而边展现了实体关系。 至于知识,我们定义为已知的事物。这种知识可以从外部源累积,或者从知 阅读全文
posted @ 2020-10-29 21:52 千心 阅读(276) 评论(0) 推荐(0)
摘要: (来自BERT论文) config文件定义了模型的超参数。 但是,由于此模型在64GB内存上训练,所以如果个人使用的话,需要调整超参数。 内存大小影响因子包括: max_seq_length,发布模型长度不超过512,你可以使用更短的。 train_batch_size(成正比) Model typ 阅读全文
posted @ 2020-10-25 19:57 千心 阅读(864) 评论(0) 推荐(0)
摘要: npm config set registry https://mirrors.huaweicloud.com/repository/npm/ && yarn config set registry https://mirrors.huaweicloud.com/yarn yarn config s 阅读全文
posted @ 2020-10-23 16:52 千心 阅读(260) 评论(0) 推荐(0)
摘要: At first, “programming” has nothing to do with writing code. It simply means filling up a table, like in making a TV/radio schedule. A deliberately mi 阅读全文
posted @ 2020-10-11 14:56 千心 阅读(265) 评论(0) 推荐(0)
摘要: class _BaseRidge(LinearModel, metaclass=ABCMeta): @abstractmethod @_deprecate_positional_args def __init__(self, alpha=1.0, *, fit_intercept=True, nor 阅读全文
posted @ 2020-10-11 10:34 千心 阅读(332) 评论(0) 推荐(0)
摘要: 注意:本目录中的所有模型均使用BertTokenizer以及BertModel加载,请勿使用RobertaTokenizer/RobertaModel! https://github.com/ymcui/Chinese-BERT-wwm#faq 需要注意的是,该模型并非原版RoBERTa模型,只是按 阅读全文
posted @ 2020-10-03 18:11 千心 阅读(278) 评论(0) 推荐(0)
摘要: import numpy as np #将数据降维的函数,输出值一定在-1~1之间,可以定性(男/女) def sigmoid(x): return 1 / (1 + np.exp(-x)) def deriv_sigmoid(x): fx = sigmoid(x) return fx * (1 - 阅读全文
posted @ 2020-09-18 17:40 千心 阅读(225) 评论(0) 推荐(0)
摘要: Meet your new best friend, Pareto - The Pareto principle states that for most things, 80% of the results come from 20% of the causes. Before you even 阅读全文
posted @ 2020-09-15 17:11 千心 阅读(426) 评论(0) 推荐(0)