
笔记
只爱写代码
这个作者很懒,什么都没留下…
展开
-
自然语言处理实践Task6
基于Bert的文本分类 Bert Pretrain class WhitespaceTokenizer(object): """WhitespaceTokenizer with vocab.""" def __init__(self, vocab_file): self.vocab = load_vocab(vocab_file) self.inv_vocab = {v: k for k, v in self.vocab.items()} def t原创 2020-08-05 17:57:21 · 251 阅读 · 0 评论 -
Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow (2)
Take a Quick Look at the Data Structure housing =load_housing_data() # show the total number of rows, each attribute’s type, and the number of nonnull values housing.info() # how many districts belong to each category housing["ocean_proximity"].value_coun原创 2020-06-20 11:43:50 · 807 阅读 · 1 评论