(self)
return self._hyperparam_defaults
Returns the default values of hyperparameters for the operator.

        Returns
        -------
        dict
            A dictionary with names of the hyperparamers as keys and
            their default values as values.
Returns the default values of hyperparameters for the operator.
Returns the default values of hyperparameters for the operator .
def get_defaults(self) -> Mapping[str, Any]:
        """Returns the default values of hyperparameters for the operator.

        Returns
        -------
        dict
            A dictionary with names of the hyperparamers as keys and
            their default values as values.
        """
        if not hasattr(self, "_hyperparam_defaults"):
            schema = self.hyperparam_schema()
            props_container: Dict[str, Any] = next(iter(schema.get("allOf", [])), {})
            props: Dict[str, Any] = props_container.get("properties", {})
            # since we want to share this, we don't want callers
            # to modify the returned dictionary, htereby modifying the defaults
            defaults: MappingProxyType[str, Any] = MappingProxyType(
                {k: props[k].get("default") for k in props.keys()}
            )
            self._hyperparam_defaults = defaults
        return self._hyperparam_defaults
def get_defaults ( self ) -> Mapping [ str , Any ] : if not hasattr ( self , "_hyperparam_defaults" ) : schema = self . hyperparam_schema ( ) props_container : Dict [ str , Any ] = next ( iter ( schema . get ( "allOf" , [ ] ) ) , { } ) props : Dict [ str , Any ] = props_container . get ( "properties" , { } ) # since we want to share this, we don't want callers # to modify the returned dictionary, htereby modifying the defaults defaults : MappingProxyType [ str , Any ] = MappingProxyType ( { k : props [ k ] . get ( "default" ) for k in props . keys ( ) } ) self . _hyperparam_defaults = defaults return self . _hyperparam_defaults