aidenhuen / capsule-text-classification Goto Github PK
View Code? Open in Web Editor NEW利用keras搭建的胶囊网络(capsule network文本分类模型,包含RNN、CNN、HAN等,其中keras_utils包含了capsule层和attention层的keras实现
利用keras搭建的胶囊网络(capsule network文本分类模型,包含RNN、CNN、HAN等,其中keras_utils包含了capsule层和attention层的keras实现
conv_caps = Capsule( num_capsule=10, dim_capsule=16, routings=3, share_weights=True)(conv)
你好,,num_capsule=10 是和要预测的类别的相对应的嘛?就是说我要是二分类的话,num_capsule是要设置成2嘛?
Hello, I have read you code, but i didn't find primary caps. It seems that after feeding the emdding into the Convolution layer, it then be fed into the convcaps directly. Right?
Hello,
I want to ask if this model performs well in large scale text classification datasets. Just like YELP_REVIEWS_FULL or AMAZON_REVIEWS_FULL. Because as far as I know, most experiments were
conducted on small scale datasets.
where can I download the datasets
Hi:
When I change the parameter of Capsule 'share_weights' from True to False , it can not work with the mistake:
TypeError: unsupported operand type(s) for *: 'int' and 'NoneType'.
Can you give me some suggestions. It seems that the program encounter a problem when initialize the weights parameters of self.W.
您好,我把数据集换成了10分类的问题,为啥出现这样
ValueError: Error when checking target: expected dense_1 to have shape (10,) but got array with shape (500,)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.