Packages

Gyx allows designing and training Reinforcement Learning tasks. It includes environment abstractions that allows interaction with Python based environments like OpenAI Gym.

Current section

Files

Jump to
gyx lib application.ex
Raw

lib/application.ex

defmodule Gyx.Application do
@moduledoc false
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
topologies = [
gyx: [
strategy: Cluster.Strategy.Gossip
]
]
IO.puts ""
IO.puts " ████████╗ ████╗ ██╗ Reinforcement"
IO.puts " ██╔════╚██╗ ██╔╚██╗██╔╝ Learning for"
IO.puts " ██║ ███╚████╔╝ ╚███╔╝ Elixir"
IO.puts " ██║ ██║╚██╔╝ ██╔██╗ http://gyx.ai"
IO.puts " ╚██████╔╝ ██║ ██╔╝ ██╗ ______________"
IO.puts " ╚═════╝ ╚═╝ ╚═╝ ╚═╝"
children = [
{Cluster.Supervisor, [topologies, [name: Gyx.ClusterSupervisor]]},
supervisor(Gyx.Supervisor, [])
]
opts = [strategy: :one_for_one, name: Gyx.Supervisor]
Supervisor.start_link(children, opts)
Gyx.Supervisor.start_link()
end
end