上一页 1 2 3 4 5 6 ··· 21 下一页
摘要: References : https://towardsdatascience.com/dealing-with-class-imbalanced-datasets-for-classification-2cc6fad99fd9 https://www.cnblogs.com/massquantit 阅读全文
posted @ 2019-02-27 21:26 simple_wxl 阅读(723) 评论(0) 推荐(0) 编辑
摘要: 直接把自己的工作文档导入的,由于是在外企工作,所以都是英文写的 chinese and english tokens result input: "我爱中国",tokens:["我","爱","中","国"] input: "I love china habih", tokens:["I","lov 阅读全文
posted @ 2019-02-25 20:26 simple_wxl 阅读(6234) 评论(0) 推荐(0) 编辑
摘要: 直接把自己的工作文档导入的,由于是在外企工作,所以都是英文写的 Steps: modify code in run_classifier.py add a new processor add the processor in main function Train and predict train 阅读全文
posted @ 2019-02-25 17:32 simple_wxl 阅读(4250) 评论(6) 推荐(0) 编辑
摘要: Transformer: https://jalammar.github.io/illustrated-transformer/ BERT: https://arxiv.org/pdf/1810.04805.pdf 进化史:https://zhuanlan.zhihu.com/p/49271699 阅读全文
posted @ 2019-02-20 20:54 simple_wxl 阅读(1289) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-02-15 20:27 simple_wxl 阅读(0) 评论(0) 推荐(0) 编辑
摘要: When training on GPU, the error "Model diverged with loss = NaN" is often caused by a sotmax that's getting a symbol larger than vocab_size 阅读全文
posted @ 2019-01-31 22:01 simple_wxl 阅读(864) 评论(0) 推荐(0) 编辑
摘要: >>> from collections import Counter>>> Counter(['apple','red','apple','red','red','pear'])Counter({'red': 3, 'apple': 2, 'pear': 1}) 阅读全文
posted @ 2019-01-31 19:06 simple_wxl 阅读(421) 评论(0) 推荐(0) 编辑
摘要: python中string自带的split不支持多个分隔符同时切分,用正则 import re line='hello,world' lineLists = re.split('[,,.。??]',line.strip()) 阅读全文
posted @ 2019-01-29 11:11 simple_wxl 阅读(13938) 评论(0) 推荐(0) 编辑
摘要: 原因是使用Adam优化函数时,Adam函数会创建一个Adam变量,目的是保存你使用tensorflow创建的graph中的每个可训练参数的动量, words/_word_embeddings:0 bi-lstm/bidirectional_rnn/fw/lstm_cell/kernel:0 bi-l 阅读全文
posted @ 2019-01-28 17:00 simple_wxl 阅读(1408) 评论(0) 推荐(0) 编辑
摘要: vars = tf.global_variables() net_var = [var for var in vars if 'bi-lstm_secondLayer' not in var.name and 'word_embedding1s' not in var.name and 'proj_ 阅读全文
posted @ 2019-01-28 16:56 simple_wxl 阅读(2277) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 ··· 21 下一页