Giter VIP home page Giter VIP logo

gate's People

Contributors

allenjack 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

Watchers

 avatar  avatar  avatar

gate's Issues

Run.py cannot work

Hi allenjack! I just tried to run your code in the exact way you showed in readme file. But I got error information as following:

DEBUG:main:epoch:0
Traceback (most recent call last):
File "run.py", line 251, in
main()
File "run.py", line 247, in main
train_model(train_matrix, item_content_matrix, item_relation_matrix, word_seq, test_set, args)
File "run.py", line 204, in train_model
batch_x_weight = Variable(torch.from_numpy(batch_x_weight).type(dtype), requires_grad=False)
TypeError: can't convert np.ndarray of type numpy.int32. The only supported types are: double, float, float16, int64, int32, and uint8.

Thank you for your attention!

How to construct test_data's input in prediction

My problem may be too simple, but it confuses me very much. Please pay attention to it~~

In auto encoder, I know, it's trained x to x~, so it can learn more accurate hidden layer. My question is: when we make predictions, test data is items which users don't rate. So, what's the input? where's input in the network architecture? is gating layer's input? or Encoder_r's input? or other?

Thanks for your attention!

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.