dvc/repo/experiments/__init__.py
def new(self, *args, workspace=True, **kwargs):
        """Create a new experiment.

        Experiment will be reproduced and checked out into the user's
        workspace.
        """
        rev = self.repo.scm.get_rev()
        self._scm_checkout(rev)
        if workspace:
            try:
                stash_rev = self._stash_exp(*args, **kwargs)
            except UnchangedExperimentError as exc:
                logger.info("Reproducing existing experiment '%s'.", rev[:7])
                raise exc
        else:
            # configure params via command line here
            pass
        logger.debug(
            "Stashed experiment '%s' for future execution.", stash_rev[:7]
        )
        return stash_rev
Create a new experiment.

        Experiment will be reproduced and checked out into the user's
        workspace.
        
Create a new experiment.
Experiment will be reproduced and checked out into the user's
workspace.
Create a new experiment . Experiment will be reproduced and checked out into the user ' s workspace .
def new(self, *args, workspace=True, **kwargs):
        rev = self.repo.scm.get_rev()
        self._scm_checkout(rev)
        if workspace:
            try:
                stash_rev = self._stash_exp(*args, **kwargs)
            except UnchangedExperimentError as exc:
                logger.info("Reproducing existing experiment '%s'.", rev[:7])
                raise exc
        else:
            pass
        logger.debug(
            "Stashed experiment '%s' for future execution.", stash_rev[:7]
        )
        return stash_rev
def new ( self , * args , workspace = True , ** kwargs ) : rev = self . repo . scm . get_rev ( ) self . _scm_checkout ( rev ) if workspace : try : stash_rev = self . _stash_exp ( * args , ** kwargs ) except UnchangedExperimentError as exc : logger . info ( "Reproducing existing experiment '%s'." , rev [ : 7 ] ) raise exc else : pass logger . debug ( "Stashed experiment '%s' for future execution." , stash_rev [ : 7 ] ) return stash_rev
Create a new experiment.
Create a new experiment .
"""Create a new experiment.

        Experiment will be reproduced and checked out into the user's
        workspace.
        """ # configure params via command line here
self
workspace