Giter Club home page Giter Club logo

Comments (6)

Sangheli avatar Sangheli commented on August 18, 2024 2

Thank you, im my fork I have implemented a second option, similar to the test mode

https://github.com/Sangheli/chatbot-retrieval

from chatbot-retrieval.

dennybritz avatar dennybritz commented on August 18, 2024 1

Two options:

  • You could try using the X and y arguments you mention above instead of the input_fn. Then you can make X an iterator of examples instead of just a single one.
  • You could modify the get_features function to use a Queue and produce multiple examples instead of a single one

from chatbot-retrieval.

Monireh2 avatar Monireh2 commented on August 18, 2024 1

@e-budur This is the case for Sangheli's version of prediction. It always takes the first response as the best one, but when I give the potential_responses one by one to the estimator as it is in Denny's original prediction code, it works correctly but it is as slow as the prediction takes 4 minutes for 500 potential responses!!!

from chatbot-retrieval.

lefnire avatar lefnire commented on August 18, 2024

@Samurais thanks for posting your branch! I had the same question, very helpful.

from chatbot-retrieval.

Monireh2 avatar Monireh2 commented on August 18, 2024

@Sangheli In your prediction code (your udc_predict.py), it is true that you are sending all the potential responses to the estimator at once but the answer is always the first response in the potential responses simply because the estimator ignore other elements in the potential responses list. In fact, although you give the features extracted from whole potential responses into the estimator but based on my observations it always gives the first element in the potential_responses as an answer. However, if you put the estimator in the loop exactly like what it is in Denny's code, you will get the correct response but unfortunately, it takes very long time to get the response for 500 potential responses....

from chatbot-retrieval.

e-budur avatar e-budur commented on August 18, 2024

from chatbot-retrieval.

Related Issues (20)

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.