watex.methods.Logging#
- class watex.methods.Logging(zname=None, kname=None, verbose=0)[source]#
Logging class
Only deal with numerical values. If categorical values are find in the logging dataset, they should be discarded.
- Parameters
zname (str, default='depth' or 'None') – The name of the depth column in data. If the name ‘depth’ is not specified as the main depth columns, an other name in the columns that matches the depth can also be indicated so the function will put aside this columm as depth column for plot purpose. If set to
None, zname holds the namedepthand assumes that depth exists in data columns.kname (str, int) –
- Name of permeability coefficient columns. kname allows to retrieve the
permeability coefficient ‘k’ in a specific dataframe. If integer is passed, it assumes the index of the dataframe fits the ‘k’ columns. Note that integer value must not be out the dataframe size along axis 1. Commonly
- kname needs to be supplied when a dataframe is passed as a positional
or keyword argument.
Examples
>>> from watex.datasets import load_hlogs >>> from watex.methods.hydro import Logging >>> # get the logging data >>> h = load_hlogs () >>> h.feature_names Out[29]: ['hole_id', 'depth_top', 'depth_bottom', 'strata_name', 'rock_name', 'layer_thickness', 'resistivity', 'gamma_gamma', 'natural_gamma', 'sp', 'short_distance_gamma', 'well_diameter'] >>> # we can fit to collect the valid logging data >>> log= Logging(kname ='k', zname='depth_top' ).fit(h.frame[h.feature_names]) >>> log.feature_names_in_ # categorical features should be discarded. Out[33]: ['depth_top', 'depth_bottom', 'layer_thickness', 'resistivity', 'gamma_gamma', 'natural_gamma', 'sp', 'short_distance_gamma', 'well_diameter'] >>> log.plot () Out[34]: Logging(zname= depth_top, kname= k, verbose= 0) >>> # plot log including the target y >>> log.plot (y = h.frame.k , posiy =0 )# first position Logging(zname= depth_top, kname= k, verbose= 0)