
    Di                        d dl mZ d dlmZ d dlZd dlmZ d dlmZ d dlm	Z	 d dl
mZ d dlmZ erd d	lmZ  e	j                   e      Z G d
 d      Zy)    )annotations)SequenceN)Any)TYPE_CHECKING)logging)optuna_warn)StudyDirection)FrozenTrialc                      e Zd ZdZdd	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZddZddZddZedd       Z	edd	       Z
edd
       Zy)StudySummarya  Basic attributes and aggregated results of a :class:`~optuna.study.Study`.

    See also :func:`optuna.study.get_all_study_summaries`.

    Attributes:
        study_name:
            Name of the :class:`~optuna.study.Study`.
        direction:
            :class:`~optuna.study.StudyDirection` of the :class:`~optuna.study.Study`.

            .. note::
                This attribute is only available during single-objective optimization.
        directions:
            A sequence of :class:`~optuna.study.StudyDirection` objects.
        best_trial:
            :class:`optuna.trial.FrozenTrial` with best objective value in the
            :class:`~optuna.study.Study`.
        user_attrs:
            Dictionary that contains the attributes of the :class:`~optuna.study.Study` set with
            :func:`optuna.study.Study.set_user_attr`.
        system_attrs:
            Dictionary that contains the attributes of the :class:`~optuna.study.Study` internally
            set by Optuna.

            .. warning::
                Deprecated in v3.1.0. ``system_attrs`` argument will be removed in the future.
                The removal of this feature is currently scheduled for v5.0.0,
                but this schedule is subject to change.
                See https://github.com/optuna/optuna/releases/tag/v3.1.0.
        n_trials:
            The number of trials ran in the :class:`~optuna.study.Study`.
        datetime_start:
            Datetime where the :class:`~optuna.study.Study` started.

    N)
directionsc	                   || _         ||	t        d      |	t        |	      | _        n|	|g| _        nt        d      || _        || _        || _        || _        || _        || _	        y )Nz,Specify one of `direction` and `directions`.z1Specify only one of `direction` and `directions`.)

study_name
ValueErrorlist_directions
best_trial
user_attrs_system_attrsn_trialsdatetime_start	_study_id)
selfr   	directionr   r   system_attrsr   r   study_idr   s
             a/home/ubuntu/crypto_trading_bot/.venv/lib/python3.12/site-packages/optuna/study/_study_summary.py__init__zStudySummary.__init__8   s}     %!3KLL##J/D" ){DPQQ$$) ,!    c                `    t        |t              st        S |j                  | j                  k(  S N)
isinstancer   NotImplemented__dict__r   others     r   __eq__zStudySummary.__eq__U   s%    %.!!~~..r   c                `    t        |t              st        S | j                  |j                  k  S r!   r"   r   r#   r   r%   s     r   __lt__zStudySummary.__lt__[   s%    %.!!~~//r   c                `    t        |t              st        S | j                  |j                  k  S r!   r)   r%   s     r   __le__zStudySummary.__le__a   s%    %.!!~~00r   c                f    t        | j                        dkD  rt        d      | j                  d   S )N   zDThis attribute is not available during multi-objective optimization.r   )lenr   RuntimeErrorr   s    r   r   zStudySummary.directiong   s8    t 1$V  ""r   c                    | j                   S r!   )r   r1   s    r   r   zStudySummary.directionsp   s    r   c                :    t        dt               | j                  S )Nz`system_attrs` has been deprecated in v3.1.0. The removal of this feature is currently scheduled for v5.0.0, but this schedule is subject to change. See https://github.com/optuna/optuna/releases/tag/v3.1.0.)r   FutureWarningr   r1   s    r   r   zStudySummary.system_attrst   s#    H 	
 !!!r   )r   strr   zStudyDirection | Noner   zFrozenTrial | Noner   dict[str, Any]r   r6   r   intr   zdatetime.datetime | Noner   r7   r   zSequence[StudyDirection] | None)r&   r   returnbool)r8   r	   )r8   zSequence[StudyDirection])r8   r6   )__name__
__module____qualname____doc__r   r'   r*   r,   propertyr   r   r    r   r   r   r      s    "^ 7;"" )" '	"
 #" %" " 1" " 4":/01 # #     	" 	"r   r   )
__future__r   collections.abcr   datetimetypingr   r   optunar   optuna._warningsr   optuna.study._study_directionr	   optuna.trialr
   
get_loggerr:   _loggerr   r?   r   r   <module>rJ      sC    " $      ( 8 (
'

X
&k" k"r   