Comments (7)
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.
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.
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.
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 installedlagom
withpip install --user -e .
and thebaselines
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.
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.
A quick question, have you installed lagom library ? i.e.
pip install -e .
under lagom root directory
yes
from lagom.
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)
- Best way to test an agent ? HOT 4
- VAE Experiment uses old run_experiments function HOT 4
- the repo is very heavy HOT 5
- discrete RL examples HOT 1
- make mujoco an optional dependence HOT 2
- Numerical bug in RunningMeanVar
- Remove lz4 + atari-related when merged upstream to gym
- Merge seed and device into config object
- Replace from_numpy/tensorify with as_tensor, remove tensorify
- Integrate Ray as an additional backend for parallel experiments
- Migrate obs/reward normalization from env.wrappers into Agent itself
- Support Python 3.8
- Refactor Hyperparameter classes
- Logging: convert loaded loggings entirely into pandas `DataFrame`
- Extract independent snapshot functions for metrics: network, RL, experiment, statistics etc.
- Agent constructor: replace environment object as spec object
- Agent.choose_action: replace the mode string argument with internal self.training
- Use more fair RL evaluation metrics: IQM, Optimality Gap, Median, Mean
- [setup.py] get_version: replace `importlib` with raw text scanning
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lagom.