Coder Social home page Coder Social logo

Comments (7)

zuoxingdong avatar zuoxingdong commented on June 12, 2024

Hi @CarloLucibello , thanks for the comment ! The current way to run the script is as described in the README.md, i.e.

  • Enter an algorithm folder, say cd baselines/vpg
  • Run python experiment

from lagom.

zuoxingdong avatar zuoxingdong commented on June 12, 2024

I am not sure if it's a good idea to put baselines into lagom, because lagom is a more generic codebase for quick RL research prototyping, that is more general. And baselines is a separated codebase that makes use of lagom to provide high quality standard RL algorithms.

from lagom.

zuoxingdong avatar zuoxingdong commented on June 12, 2024

The general idea of baselines is to treat each algorithm independently but using convenient API designs and training pipeline from lagom.

So I would say the current best & quick way to use it is to enter the folder of the algorithm that you want to build upon with, modify the code as you want, and iterate ideas quickly within that folder.

from lagom.

CarloLucibello avatar CarloLucibello commented on June 12, 2024

Hi @CarloLucibello , thanks for the comment ! The current way to run the script is as described in the README.md, i.e.

  • Enter an algorithm folder, say cd baselines/vpg
  • Run python experiment
    The problem is that I installed lagom with pip install --user -e . and the baselines module is not detected unless I manually add it to the system path:
[carlo@europa lagom]$ cd baselines/vpg/
[carlo@europa vpg]$ python experiment.py 
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused

(experiment.py:108933): Gdk-CRITICAL **: 08:29:08.624: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
Traceback (most recent call last):
  File "experiment.py", line 25, in <module>
    from baselines.vpg.agent import Agent
ModuleNotFoundError: No module named 'baselines.vpg'

btw: the Gdk error is probably due to the fact that i'm running the script on a remote machine without graphic server

from lagom.

zuoxingdong avatar zuoxingdong commented on June 12, 2024

This looks weird, because I am also using the remote server via ssh connection.

A quick question, have you installed lagom library ? i.e. pip install -e . under lagom root directory

from lagom.

CarloLucibello avatar CarloLucibello commented on June 12, 2024

A quick question, have you installed lagom library ? i.e. pip install -e . under lagom root directory

yes

from lagom.

CarloLucibello avatar CarloLucibello commented on June 12, 2024

On a fresh install and with pip install -e . I didn't run into the problem again, let's close this

from lagom.

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.