tests/test_optuna_pyspark.py
def create_new_study(self, study_name: Optional[str] = None) -> int:
        """Create a new study from a name.
        If no name is specified, the storage class generates a name.
        The returned study ID is unique among all current and deleted studies.
        Args:
            study_name:
                Name of the new study to create.
        Returns:
            ID of the created study.
        Raises:
            :exc:`optuna.exceptions.DuplicatedStudyError`:
                If a study with the same ``study_name`` already exists.
        """
        # TODO(ytsmiling) Fix RDB storage implementation to ensure unique `study_id`.
        return 1
Create a new study from a name.
        If no name is specified, the storage class generates a name.
        The returned study ID is unique among all current and deleted studies.
        Args:
            study_name:
                Name of the new study to create.
        Returns:
            ID of the created study.
        Raises:
            :exc:`optuna.exceptions.DuplicatedStudyError`:
                If a study with the same ``study_name`` already exists.
        
Create a new study from a name.
If no name is specified, the storage class generates a name.
The returned study ID is unique among all current and deleted studies.
Create a new study from a name . If no name is specified the storage class generates a name . The returned study ID is unique among all current and deleted studies .
def create_new_study(self, study_name: Optional[str] = None) -> int:
        return 1
def create_new_study ( self , study_name : Optional [ str ] = None ) -> int : return 1
Create a new study from a name.
Create a new study from a name .
"""Create a new study from a name.
        If no name is specified, the storage class generates a name.
        The returned study ID is unique among all current and deleted studies.
        Args:
            study_name:
                Name of the new study to create.
        Returns:
            ID of the created study.
        Raises:
            :exc:`optuna.exceptions.DuplicatedStudyError`:
                If a study with the same ``study_name`` already exists.
        """ # TODO(ytsmiling) Fix RDB storage implementation to ensure unique `study_id`.
ID of the created study.
ID of the created study .
`optuna.exceptions.DuplicatedStudyError`:
If a study with the same ``study_name`` already exists.
` optuna . exceptions . DuplicatedStudyError ` : If a study with the same ` ` study_name ` ` already exists .
self
study_name
Optional[str]
Name of the new study to create.
Name of the new study to create .