(self)
Save the experiment settings to file for auditting or loading for other methods.
Save the experiment settings to file for auditting or loading for other methods.
Save the experiment settings to file for auditting or loading for other methods .
def save(self):
        """Save the experiment settings to file for auditting or loading for other methods."""
        if self._saving_path is None:
            return
        saving_path = os.path.abspath(self._saving_path)
        if os.path.isdir(saving_path):
            f = open(os.path.join(saving_path, 'al_settings.pkl'), 'wb')
        else:
            f = open(os.path.abspath(saving_path), 'wb')
        pickle.dump(self, f)
        f.close()
def save ( self ) : if self . _saving_path is None : return saving_path = os . path . abspath ( self . _saving_path ) if os . path . isdir ( saving_path ) : f = open ( os . path . join ( saving_path , 'al_settings.pkl' ) , 'wb' ) else : f = open ( os . path . abspath ( saving_path ) , 'wb' ) pickle . dump ( self , f ) f . close ( )