(self, saving_path)
Save the oracle to file.

        Parameters
        ----------
        saving_path: str
            path to save the settings. If a dir is provided, it will generate a file called
            'al_settings.pkl' for saving.
Save the oracle to file.
Save the oracle to file .
def save_oracle(self, saving_path):
        """Save the oracle to file.

        Parameters
        ----------
        saving_path: str
            path to save the settings. If a dir is provided, it will generate a file called
            'al_settings.pkl' for saving.

        """
        if saving_path is None:
            return
        else:
            if not isinstance(saving_path, str):
                raise TypeError("A string is expected, but received: %s" % str(type(saving_path)))
        import pickle
        saving_path = os.path.abspath(saving_path)
        if os.path.isdir(saving_path):
            f = open(os.path.join(saving_path, 'oracle.pkl'), 'wb')
        else:
            f = open(os.path.abspath(saving_path), 'wb')
        pickle.dump(self, f)
        f.close()
def save_oracle ( self , saving_path ) : if saving_path is None : return else : if not isinstance ( saving_path , str ) : raise TypeError ( "A string is expected, but received: %s" % str ( type ( saving_path ) ) ) import pickle saving_path = os . path . abspath ( saving_path ) if os . path . isdir ( saving_path ) : f = open ( os . path . join ( saving_path , 'oracle.pkl' ) , 'wb' ) else : f = open ( os . path . abspath ( saving_path ) , 'wb' ) pickle . dump ( self , f ) f . close ( )