Skip to content
Snippets Groups Projects

WIP: GUI version

Merged Sebastian Höffner requested to merge feature/gui into master
1 file
+ 3
8
Compare changes
  • Side-by-side
  • Inline
+ 20
8
@@ -10,12 +10,15 @@ To run it, you can either pull the docker image from GitLab, or build it yoursel
### Pulling the image
Login to GitLab's container registry and pull the latest image.
Login to GitLab's container registry and pull the latest images.
```bash
docker login gitlab.informatik.uni-bremen.de:5005
docker pull gitlab.informatik.uni-bremen.de:5005/hoeffner/mmlf-docker:latest
# For the GUI:
docker pull gitlab.informatik.uni-bremen.de:5005/hoeffner/mmlf-docker:gui-latest
```
### Building the image
Clone this repository.
@@ -26,7 +29,9 @@ cd mmlf-docker
Build the docker image:
```bash
docker build -t gitlab.informatik.uni-bremen.de:5005/hoeffner/mmlf-docker:latest .
make build
# For the GUI version
make gui
```
@@ -35,7 +40,14 @@ docker build -t gitlab.informatik.uni-bremen.de:5005/hoeffner/mmlf-docker:latest
Set up some convenience aliases (can be placed in .bashrc/.zshrc/.autoenv.zsh/...), you can change `${HOME}/.mmlf` with the path where you want all logs results etc. stored. I use `$(pwd)`.
```bash
# COMMAND LINE
alias run_mmlf="docker run --rm -v ${HOME}/.mmlf:/root/.mmlf -it gitlab.informatik.uni-bremen.de:5005/hoeffner/mmlf-docker:latest ./run_mmlf"
# GUI
export LOCAL_IP=$(ipconfig getifaddr en0)
# Optional: You might need to allow xhost connections
# xhost + ${LOCAL_IP}
alias mmlf_gui="docker run --rm -e DISPLAY=${LOCAL_IP}:0 -v /tmp/.X11-unix:/tmp/.X11-unix -v $(pwd):/root/.mmlf -it gitlab.informatik.uni-bremen.de:5005/hoeffner/mmlf-docker:gui-latest ./mmlf_gui"
```
@@ -45,17 +57,17 @@ Run the [command line example](http://mmlf.sourceforge.net/tutorials/quick_start
```bash
run_mmlf --config mountain_car/world_td_lambda_exploration.yaml --episodes 2
mmlf_gui
```
## Known issues
### Missing scikits.ann
Although the scikits.ann package is installed (`pip freeze` has `scikits.ann===0.2.dev-r803`), there is still a warning about it missing:
### Make sure 'QTextCursor' is registered
> You do not have the scikits.ann package. Without this package, the KNN function approximator and model-based learning are not available. Please install it with `sudo easy_install scikits.ann` or visit http://www.scipy.org/scipy/scikits/wiki/AnnWrapper.
When running the GUI, the following error message shows up:
### Missing GUI version
> QObject::connect: Cannot queue arguments of type 'QTextCursor'
> (Make sure 'QTextCursor' is registered using qRegisterMetaType().)
The GUI is not supported yet.
This is still unresolved.
Loading