Coder Social home page Coder Social logo

aidenhuen / capsule-text-classification Goto Github PK

View Code? Open in Web Editor NEW
77.0 4.0 24.0 10 KB

利用keras搭建的胶囊网络(capsule network文本分类模型,包含RNN、CNN、HAN等,其中keras_utils包含了capsule层和attention层的keras实现

Python 100.00%
capsule

capsule-text-classification's People

Contributors

aidenhuen avatar dilicelsten avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

capsule-text-classification's Issues

Capsule

conv_caps = Capsule( num_capsule=10, dim_capsule=16, routings=3, share_weights=True)(conv)
你好,,num_capsule=10 是和要预测的类别的相对应的嘛?就是说我要是二分类的话,num_capsule是要设置成2嘛?

Do there exiest primary caps

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?

Does this model peform well in large scale datasets?

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.

TypeError: unsupported operand type(s) for *: 'int' and 'NoneType'

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.

您好,Dens层形状错误

您好,我把数据集换成了10分类的问题,为啥出现这样

ValueError: Error when checking target: expected dense_1 to have shape (10,) but got array with shape (500,)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.