mirror of
https://github.com/wassname/simpeg.git
synced 2026-07-23 13:10:51 +08:00
Regularization is on the Model, so it needs to take that as input.
Testing is completed on every SimPEG regularization object by default.
This commit is contained in:
@@ -50,6 +50,11 @@ class BaseModel(object):
|
||||
"""
|
||||
return sp.identity(m.size)
|
||||
|
||||
@property
|
||||
def nP(self):
|
||||
"""Number of parameters in the model."""
|
||||
return self.mesh.nC
|
||||
|
||||
def example(self, modelType=None):
|
||||
return np.random.rand(self.mesh.nC)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user