1
0
mirror of https://github.com/gryf/coach.git synced 2026-02-14 21:15:53 +01:00

Docs changes - fixing blogpost links, removing importing all exploration policies (#139)

* updated docs

* removing imports for all exploration policies in __init__ + setting the right blog-post link

* small cleanups
This commit is contained in:
Gal Leibovich
2018-12-05 23:16:16 +02:00
committed by Scott Leishman
parent 155b78b995
commit f12857a8c7
33 changed files with 191 additions and 160 deletions

View File

@@ -15,13 +15,11 @@
#
import copy
import os
import random
from collections import OrderedDict
from typing import Dict, List, Union, Tuple
import numpy as np
from pandas import read_pickle
from six.moves import range
from rl_coach.agents.agent_interface import AgentInterface

View File

@@ -35,7 +35,6 @@ from multiprocessing.managers import BaseManager
import subprocess
from rl_coach.graph_managers.graph_manager import HumanPlayScheduleParameters, GraphManager
from rl_coach.utils import list_all_presets, short_dynamic_import, get_open_port, SharedMemoryScratchPad, get_base_dir
from rl_coach.agents.human_agent import HumanAgentParameters
from rl_coach.graph_managers.basic_rl_graph_manager import BasicRLGraphManager
from rl_coach.environments.environment import SingleLevelSelection
from rl_coach.memories.backend.redis import RedisPubSubMemoryBackendParameters
@@ -229,6 +228,8 @@ class CoachLauncher(object):
# for human play we need to create a custom graph manager
if args.play:
from rl_coach.agents.human_agent import HumanAgentParameters
env_params = short_dynamic_import(args.environment_type, ignore_module_case=True)()
env_params.human_control = True
schedule_params = HumanPlayScheduleParameters()

View File

@@ -1,55 +0,0 @@
#
# Copyright (c) 2017 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from .additive_noise import AdditiveNoiseParameters, AdditiveNoise
from .boltzmann import BoltzmannParameters, Boltzmann
from .bootstrapped import BootstrappedParameters, Bootstrapped
from .categorical import CategoricalParameters, Categorical
from .continuous_entropy import ContinuousEntropyParameters, ContinuousEntropy
from .e_greedy import EGreedyParameters, EGreedy
from .exploration_policy import ExplorationParameters, ExplorationPolicy
from .greedy import GreedyParameters, Greedy
from .ou_process import OUProcessParameters, OUProcess
from .parameter_noise import ParameterNoiseParameters, ParameterNoise
from .truncated_normal import TruncatedNormalParameters, TruncatedNormal
from .ucb import UCBParameters, UCB
__all__ = [
'AdditiveNoiseParameters',
'AdditiveNoise',
'BoltzmannParameters',
'Boltzmann',
'BootstrappedParameters',
'Bootstrapped',
'CategoricalParameters',
'Categorical',
'ContinuousEntropyParameters',
'ContinuousEntropy',
'EGreedyParameters',
'EGreedy',
'ExplorationParameters',
'ExplorationPolicy',
'GreedyParameters',
'Greedy',
'OUProcessParameters',
'OUProcess',
'ParameterNoiseParameters',
'ParameterNoise',
'TruncatedNormalParameters',
'TruncatedNormal',
'UCBParameters',
'UCB'
]