tests/test_optuna_pyspark.py
def create_new_trial(self, study_id: int, template_trial: Optional[FrozenTrial] = None) -> int:
        """Create and add a new trial to a study.
        The returned trial ID is unique among all current and deleted trials.
        Args:
            study_id:
                ID of the study.
            template_trial:
                Template :class:`~optuna.trial.FronzenTrial` with default user-attributes,
                system-attributes, intermediate-values, and a state.
        Returns:
            ID of the created trial.
        Raises:
            :exc:`KeyError`:
                If no study with the matching ``study_id`` exists.
        """
        return 1
Create and add a new trial to a study.
        The returned trial ID is unique among all current and deleted trials.
        Args:
            study_id:
                ID of the study.
            template_trial:
                Template :class:`~optuna.trial.FronzenTrial` with default user-attributes,
                system-attributes, intermediate-values, and a state.
        Returns:
            ID of the created trial.
        Raises:
            :exc:`KeyError`:
                If no study with the matching ``study_id`` exists.
        
Create and add a new trial to a study.
The returned trial ID is unique among all current and deleted trials.
Create and add a new trial to a study . The returned trial ID is unique among all current and deleted trials .
def create_new_trial(self, study_id: int, template_trial: Optional[FrozenTrial] = None) -> int:
        return 1
def create_new_trial ( self , study_id : int , template_trial : Optional [ FrozenTrial ] = None ) -> int : return 1
Create and add a new trial to a study.
Create and add a new trial to a study .
"""Create and add a new trial to a study.
        The returned trial ID is unique among all current and deleted trials.
        Args:
            study_id:
                ID of the study.
            template_trial:
                Template :class:`~optuna.trial.FronzenTrial` with default user-attributes,
                system-attributes, intermediate-values, and a state.
        Returns:
            ID of the created trial.
        Raises:
            :exc:`KeyError`:
                If no study with the matching ``study_id`` exists.
        """
ID of the created trial.
ID of the created trial .
`KeyError`:
If no study with the matching ``study_id`` exists.
` KeyError ` : If no study with the matching ` ` study_id ` ` exists .
self
study_id
int
ID of the study.
ID of the study .
template_trial
Optional[FrozenTrial]
Template :class:`~optuna.trial.FronzenTrial` with default user-attributes,
system-attributes, intermediate-values, and a state.
Template : class : ` ~optuna . trial . FronzenTrial ` with default user - attributes system - attributes intermediate - values and a state .