simpeg.directives.SaveModelEveryIteration#
- class simpeg.directives.SaveModelEveryIteration(**kwargs)[source]#
- Bases: - SaveEveryIteration- Saves the inversion model at the end of every iteration to a directory - Parameters:
- directorypathlib.Pathorstr,optional
- The directory to store output information to, defaults to current directory. 
- namestr,optional
- Root of the filename to be saved, defaults to - 'InversionModel'
 
- directory
 - Attributes - Directory to save results in. - Data misfit associated with the directive. - The absolute path to the saved output file. - Inverse problem associated with the directive. - Inversion object associated with the directive. - Root of the filename to be saved. - This class always saves to disk. - Optimization algorithm associated with the directive. - Regularization associated with the directive. - Return simulation for all data misfits. - Return survey for all data misfits - Whether or not to print debugging information. - fileName - Methods - endIter()- Update inversion parameter(s) according to directive at end of iteration. - finish()- Update inversion parameter(s) according to directive at end of inversion. - Initialize inversion parameter(s) according to directive. - validate([directiveList])- Validate directive. - Notes - This directive saves the model as a numpy array at each iteration. The default directory is the current directory and the models are saved as name + - '_YYYY-MM-DD-HH-MM_iter.npy'
