Code Monkey home page Code Monkey logo

deepfm's People

Contributors

zgw21cn 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

Watchers

 avatar  avatar  avatar  avatar

deepfm's Issues

Question on dot product nodes

second_order = np.zeros([sample_size,1])

second_order = second_order+tf.reshape(tf.reduce_sum(tf.multiply(former, later), 1, keep_dims=True ),[sample_size,1])

It seems all the second order product are added together before sending to the output layer.

However, in the paper each dot product node are connected to the output. How should we understand this piece of code?

how do you handle sparse input

sparse_index = tf.placeholder(tf.int64, [None, 2])
sparse_ids = tf.placeholder(tf.int64, [None])
sparse_values = tf.placeholder(tf.float32, [None])
sparse_shape = tf.placeholder(tf.int64, [2])
ids = tf.SparseTensor(sparse_index, sparse_ids, sparse_shape)
values = tf.SparseTensor(sparse_index, sparse_values, sparse_shape)

sparse input like this above
how do you handle it?

Question on embedding layer logic

In the build_model method:

V =tf.reshape(tf.nn.embedding_lookup(inter_vector, X_code),[sample_size,feature_code_size*embed_size])

Then will different code variables share the same embedding vector? e.g. Variable A code 1, and Variable B code 1 will use the same piece of embedding vector after the embedding_lookup.

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.