watex.methods.em.EMAP.getValidTensors#
- EMAP.getValidTensors(tol=0.5, **kws)[source]#
Select valid tensors from tolerance threshold and write EDI if applicable.
Function analyzes the data and keep the good ones. The goodness of the data depends on the threshold rate. For instance 50% means to consider an impedance tensor ‘z’ valid if the quality control shows at least that score at each frequency of all stations.
- Parameters:
data (Path-like object or list of
pycsamt.core.edi.Edi) – collections of EDI-objects from `pycsamt`_ . data params is passed tofit()method.tol (float,) – tolerance parameter. The value indicates the rate from which the data can be consider as a valid. The valid data selection should be soft when the tolerance parameter is close to ‘1’ and hard otherwise. As the tol value decreases, the selection becomes severe. Default is
.5means 50 %kws (dict ,) – Additional keywords arguments for EDI file exporting
- Returns:
Zc
- Return type:
watex.externals.z.Zimpedance tensor objects.
Examples
>>> from watex.methods.em import Processing >>> pObj = Processing ().fit('data/edis') >>> f= pObj.freqs_ >>> len(f) ... 55 >>> zObjs_hard = pObj.getValidTensors (tol= 0.3 ) # None doesn't export EDI-file >>> len(zObjs_hard[0]._freq) # suppress 3 tensor data ... 52 >>> zObjs_soft = pObj.getValidTensors(p.ediObjs_, tol = 0.6 , option ='write') >>> len(zObjs_soft[0]._freq) # suppress only two ... 53