class_docstr: Tracks experiment specifications.
  
  Implicitly registers the Trainable if needed. The args here take
  the same meaning as the arguments defined `tune.py:run`.
  
  .. code-block:: python
  
      experiment_spec = Experiment(
          "my_experiment_name",
          my_func,
          stop={"mean_accuracy": 100},
          config={
              "alpha": tune.grid_search([0.2, 0.4, 0.6]),
              "beta": tune.grid_search([1, 2]),
          },
          resources_per_trial={
              "cpu": 1,
              "gpu": 0
          },
          num_samples=10,
          local_dir="~/ray_results",
          checkpoint_freq=10,
          max_failures=2)
class_docstr_tok: ["Tracks","experiment","specifications",".","Implicitly","registers","the","Trainable","if","needed",".","The","args","here","take","the","same","meaning","as","the","arguments","defined","`","tune.py",":","run","`",".","..","code-block",":",":","python","experiment_spec","=","Experiment","(","``","my_experiment_name","''",",","my_func",",","stop=","{","``","mean_accuracy","''",":","100","}",",","config=","{","``","alpha","''",":","tune.grid_search","(","[","0.2",",","0.4",",","0.6","]",")",",","``","beta","''",":","tune.grid_search","(","[","1",",","2","]",")",",","}",",","resources_per_trial=","{","``","cpu","''",":","1",",","``","gpu","''",":","0","}",",","num_samples=10",",","local_dir=","''","~\/ray_results","''",",","checkpoint_freq=10",",","max_failures=2",")"]
docstr: Returns the spec dict with only the public-facing keys.
  
  Intended to be used for passing information to callbacks,
  Searchers and Schedulers.
docstr_tok: ["Returns","the","spec","dict","with","only","the","public-facing","keys",".","Intended","to","be","used","for","passing","information","to","callbacks",",","Searchers","and","Schedulers","."]
code: def public_spec(self) -> Dict[str, Any]:
      """Returns the spec dict with only the public-facing keys.
  
      Intended to be used for passing information to callbacks,
      Searchers and Schedulers.
      """
      return {
          k: v for k, v in self.spec.items() if k in self.PUBLIC_KEYS
      }
  
imports: import copy
  import datetime
  from functools import partial
  import logging
  from pathlib import Path
  from pickle import PicklingError
  import pprint
  import traceback
  from typing import Any, Dict, Optional, Sequence, Union, Callable, Type, List, Mapping, TYPE_CHECKING
  import ray
  from ray.exceptions import RpcError
  from ray.train import CheckpointConfig, SyncConfig
  from ray.train._internal.storage import StorageContext
  from ray.tune.error import TuneError
  from ray.tune.registry import register_trainable, is_function_trainable
  from ray.tune.stopper import CombinedStopper, FunctionStopper, Stopper, TimeoutStopper
  from ray.util.annotations import DeveloperAPI, Deprecated
label_desc: Use image node_id 13 for calling the Experiment obj's underlying member method code with example usage: obj.public_spec() and returns: unknown