class_docstr: Defines a configuration class from which a SlateQ Algorithm can be built.
  
  Example:
      >>> from rllib_slate_q.slate_q import SlateQConfig
      >>> config = SlateQConfig().training(lr=0.01).resources(num_gpus=1)
      >>> print(config.to_dict())  # doctest: +SKIP
      >>> # Build a Algorithm object from the config and run 1 training iteration.
      >>> algo = config.build(env="CartPole-v1")  # doctest: +SKIP
      >>> algo.train()  # doctest: +SKIP
  
  Example:
      >>> from rllib_slate_q.slate_q import SlateQConfig
      >>> from ray import air
      >>> from ray import tune
      >>> config = SlateQConfig()
      >>> # Print out some default values.
      >>> print(config.lr)  # doctest: +SKIP
      >>> # Update the config object.
      >>> config = config.training(  # doctest: +SKIP
      ...     lr=tune.grid_search([0.001, 0.0001]))
      >>> # Set the config object's env.
      >>> config = config.environment(env="CartPole-v1")  # doctest: +SKIP
      >>> # Use to_dict() to get the old-style python config dict
      >>> # when running with tune.
      >>> tune.Tuner(  # doctest: +SKIP
      ...     "SlateQ",
      ...     run_config=air.RunConfig(stop={"episode_reward_mean": 160.0}),
      ...     param_space=config.to_dict(),
      ... ).fit()
class_docstr_tok: ["Defines","a","configuration","class","from","which","a","SlateQ","Algorithm","can","be","built",".","Example",":",">",">",">","from","rllib_slate_q.slate_q","import","SlateQConfig",">",">",">","config","=","SlateQConfig","(",")",".training","(","lr=0.01",")",".resources","(","num_gpus=1",")",">",">",">","print","(","config.to_dict","(",")",")","#","doctest",":","+SKIP",">",">",">","#","Build","a","Algorithm","object","from","the","config","and","run","1","training","iteration",".",">",">",">","algo","=","config.build","(","env=","''","CartPole-v1","''",")","#","doctest",":","+SKIP",">",">",">","algo.train","(",")","#","doctest",":","+SKIP","Example",":",">",">",">","from","rllib_slate_q.slate_q","import","SlateQConfig",">",">",">","from","ray","import","air",">",">",">","from","ray","import","tune",">",">",">","config","=","SlateQConfig","(",")",">",">",">","#","Print","out","some","default","values",".",">",">",">","print","(","config.lr",")","#","doctest",":","+SKIP",">",">",">","#","Update","the","config","object",".",">",">",">","config","=","config.training","(","#","doctest",":","+SKIP","...","lr=tune.grid_search","(","[","0.001",",","0.0001","]",")",")",">",">",">","#","Set","the","config","object","'s","env",".",">",">",">","config","=","config.environment","(","env=","''","CartPole-v1","''",")","#","doctest",":","+SKIP",">",">",">","#","Use","to_dict","(",")","to","get","the","old-style","python","config","dict",">",">",">","#","when","running","with","tune",".",">",">",">","tune.Tuner","(","#","doctest",":","+SKIP","...","``","SlateQ","''",",","...","run_config=air.RunConfig","(","stop=","{","``","episode_reward_mean","''",":","160.0","}",")",",","...","param_space=config.to_dict","(",")",",","...",")",".fit","(",")"]
docstr: Initializes a PGConfig instance.
docstr_tok: ["Initializes","a","PGConfig","instance","."]
file_path: ray/rllib_contrib/slate_q/src/rllib_slate_q/slate_q/slateq.py
imports: import logging
  from typing import Any, Dict, List, Optional, Type, Union
  from rllib_slate_q.slate_q.slateq_tf_policy import SlateQTFPolicy
  from rllib_slate_q.slate_q.slateq_torch_policy import SlateQTorchPolicy
  from ray.rllib.algorithms.algorithm_config import AlgorithmConfig, NotProvided
  from ray.rllib.algorithms.dqn.dqn import DQN
  from ray.rllib.policy.policy import Policy
  from ray.rllib.utils.annotations import override
  from ray.rllib.utils.deprecation import DEPRECATED_VALUE
label_desc: Use image node_id 1 to create a new SlateQConfig object from inherited base classes: AlgorithmConfig with example: obj = SlateQConfig()