Giter Site home page Giter Site logo

Question about webshopEnv about react HOT 6 CLOSED

ysymyth avatar ysymyth commented on April 29, 2024
Question about webshopEnv

from react.

Comments (6)

leoozy avatar leoozy commented on April 29, 2024

Could you please tell me how to access the url in the https://github.com/ysymyth/ReAct/blob/master/WebShop.ipynb: http://3.83.245.205:3000? Thank you

from react.

topwasu avatar topwasu commented on April 29, 2024

Could you please tell me how to access the url in the https://github.com/ysymyth/ReAct/blob/master/WebShop.ipynb: http://3.83.245.205:3000? Thank you

The livesite is down princeton-nlp/WebShop#20 I installed WebShop from source and ran a local server for my experiments

from react.

ysymyth avatar ysymyth commented on April 29, 2024

@topwasu if your script works, mind sharing or creating a pull request? thanks!

from react.

topwasu avatar topwasu commented on April 29, 2024

@ysymyth You mean for the modified webshopEnv and webshop_text? I mean, yes, I can definitely share it below and can also create a pull request if you want, but I don't think I should create a pull request if this is what you used in your paper though. Like, it seems more like an intentional modification to webshop you used for the paper than a bug to me. So just to go back to the original question, is this jupyter book the one you used for the experimental results in the paper?

The modification:
I simply remove the two assert False under the if condition for the 'Next >' and '< Prev' button in webshopEnv

elif button == 'Next >':
  assert False # ad hoc page limitation # <-- I commented this out
  assert self.sessions[session]['page_type'] == 'search'
  self.sessions[session]['page_num'] += 1
elif button == '< Prev':
  assert self.sessions[session]['page_type'] in ['search', 'item_sub', 'item']
  if self.sessions[session]['page_type'] == 'search':
    assert False # <-- I commented this out

And I also remove the code that hides the 4th-10th item on the page in webshop_text

elif t.parent.get('class') == ["product-link"]: # product asins
  processed_t = f'\n[{t}] '
  if prod_cnt >= 3: # <-- I commented this out
    processed_t = '' # <-- I commented this out
  prod_cnt += 1
  asins.append(str(t))
  just_prod = 0

from react.

ysymyth avatar ysymyth commented on April 29, 2024

is this jupyter book the one you used for the experimental results in the paper?

yes, but for the GPT-3 result.

from react.

SuhongMoon avatar SuhongMoon commented on April 29, 2024

@topwasu Could you share the prompt for chatgpt?

from react.

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.