![]() |
Reinforcement Learning and
Artificial
Intelligence (RLAI) |
| Reinforcement Learning Toolkit |
RLinterface) - a standard for
interconnecting RL agents and
environments. This interface allows you to simply specify an
agent function and an environment function and then easily simulate
steps or episodes of them interacting.
tiles)
- tile coding is a very
useful way to handle large or continuous state spaces. The software
here includes collision handling, as well as wrap versions.traces)
- ...utilities) - (probability,
statistics, etc.)import sys sys.path.append("dir")from RLinterface import *from RLtoolkit import *tiles, traces, g, graph, RLinterface,
utilities)
as well as demo (which helps run the demos) available.
You must put a module name in front to use them. For the
tools which have their own folders (and thus are not simple modules),
some have a shortcut set up so that
you can use a module name which is
the lower case version of the tool. Then you can do
tiles.loadtiles(...) or g.gDrawCircle(...) as in previous
versions.
The graph and graph3d routines should be called with graph.
and graph3d. (instead of quickgraph.) Note
that the "extra" modules in each tool package (e.g. the tiles demo, the
g tests) are NOT available with this import.from RLtoolkit.guiuser import *from RLtoolkit.nonguiuser import *from RLtoolkit.Tiles import *tiles.loadtiles(...), tilesdemo.showtiles(...),
fancytiles.diamondtiles(...)import RLtoolkit.Tiles.tiles as tilestiles.
in front (e.g. tiles.tiles, tiles.loadtiles, tiles.tileswrap,
tiles.loadtileswrap, tiles.CollisionTable). The tiles demo and
"fancy" tiles functions are NOT imported or available with this import.from RLtoolkit.Tiles.tiles import *from RLtoolkit.tiles import *from RLtoolkit.G import *tiles.g(...)import RLtoolkit.G.g as gg.
in front (e.g. g.Gwindow, g.gDrawCircle(...), g.gStartEventLoop).
The g example and test functions are NOT imported or available with
this import.from RLtoolkit.G.g import *from RLtoolkit.g import *from RLtoolkit.Quickgraph import *graph.graph(...),
graph.xTickmarks(...), graph3d.graphSurface(...)import RLtoolkit.Quickgraph.graph as graphgraph.
in front (e.g. graph.graph(...), graph.xGraphLimits(...)).
The graph3d functions are NOT imported or available with this import.from RLtoolkit.Quickgraph.graph import *from RLtoolkit.graph import *import RLtoolkit.Quickgraph.graph3d as graph3dgraph3d.
in front (e.g. graph3d.graphSurface(...)). The graph2d
functions are NOT imported or available with this import.from RLtoolkit.Quickgraph.graph3d import *from RLtoolkit.graph3d import *import RLtoolkit.toolname
as toolnametoolname.
in front. For example:import RLtoolkit.RLinterface as rlirl = rli.RLinterface(...)from RLtoolkit.toolname
import *from RLtoolkit,traces import *th = TraceHolder(...)RLtoolkit.examples.mountainDemoGRLtoolkit.examples.mountainDemoNRLtoolkit.examples.maintenanceDemoNRLtoolkit.gridworld.gwDemoGRLtoolkit.gridworld.gwDemoNRLtoolkit.fa.demoRLtoolkit.Tiles.tilesdemoexamples,
fa, or gridworld
within RLtoolkit) and
run
it (F5). The demos (usually) end in DemoN (for non
graphical) or DemoG (for GUI). They will automatically
load whatever
tools and other files they need.from RLtoolkit.examples.mountainDemoG import runDemorunDemo()
from RLtoolkit.fa.demo import faDemofaDemo()from RLtoolkit.gridworld.gwDemoG import * runDemo() or runObjDemo()from RLtoolkit.Tiles.tilesdemo import showtilesshowtiles(numtilings, memct, floats, title, start,
end, intervals)import RLtoolkit.examples.mountainDemoN as mcdemomcdemo. in front (e.g.
mcdemo.mcInit()).import RLtoolkit.examples.maintenanceDemoN as maintmaint. in front (e.g. maint.maintTest(...)).import RLtoolkit.gridworld.gwDemoN as gwgw. in front (e.g. gw.gwInit(...))
demos
function for easy access to the
demos, do ONE
of the following:demo.py file from within
the
RLtoolkit
folder, and run it (F5). This is the recommended way to run the
demos. Then you can do:demos() - prints a list of
available demosdemos('demoname') - prints information
about the
specific
demodemos('demoname', 'run') - loads the
specific demo. If
it
is a GUI demo it will start up automatically. If it is not, help
information on how to run it will be printed. from
RLtoolkit
import *), the demos function is available in
module demo. from RLtoolkit import *demo.demos() - prints a list of available demosdemo.demos('demoname') - prints information
about the
specific
demodemo.demos('demoname', 'run') - loads the
specific demo. If
it
is a GUI demo it will start up automatically. If it is not, help
information on how to run it will be printed. You must prefix the
commands shown with demo. (e.g. demo.mcInit())demo as
follows:
import RLtoolkit.demo as demodemos function as described above
(e.g. demo.demos(...))from
RLtoolkit.guiuser
import *), the demos function is available with no
module prefix.
Note
that the nongui demos
commands may not be
available. The GUI ones should work though.from
RLtoolkit.guiuser
import *demos() - prints a list of
available demosdemos('demoname') - prints information
about the
specific
demodemos('demoname', 'run') - loads the
specific demo. If
it
is a GUI demo it will start up automatically. If it is not, help
information on how to run it will be printed. 
