.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "glr_examples/methods/plot_logging_predictor_and_target.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code or to run this example in your browser via Binder .. rst-class:: sphx-glr-example-title .. _sphx_glr_glr_examples_methods_plot_logging_predictor_and_target.py: ======================================== Plot logging Predictor and target ======================================== plots the logging data by including the target y containing the permeability coefficient k .. GENERATED FROM PYTHON SOURCE LINES 9-12 .. code-block:: Python # Author: L.Kouadio # Licence: BSD-3-clause .. GENERATED FROM PYTHON SOURCE LINES 13-34 .. code-block:: Python from watex.datasets import load_hlogs from watex.methods.hydro import Logging # get the logging data h = load_hlogs () log= Logging(kname ='k', zname='depth_top' ).fit(h.frame[h.feature_names]) # Uncomment the line below to plot all the feature that composed the predictor X # except the categorial feature like strata # log.plot () # for a clariyy , we will plot only the logging features features = ['depth_top', 'resistivity', 'gamma_gamma', 'natural_gamma', 'sp', ] log= Logging(kname ='k', zname='depth_top' ).fit(h.frame[features]) # put target at the first position log.plot (y = h.frame.k, draw_spines =(0, 7), posiy= 0, colors =['r', 'k', 'b', 'm', 'c']) .. image-sg:: /glr_examples/methods/images/sphx_glr_plot_logging_predictor_and_target_001.png :alt: k, resistivity, gamma_gamma, natural_gamma, sp :srcset: /glr_examples/methods/images/sphx_glr_plot_logging_predictor_and_target_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none Logging(zname= depth_top, kname= k, verbose= 0) .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.583 seconds) .. _sphx_glr_download_glr_examples_methods_plot_logging_predictor_and_target.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: binder-badge .. image:: images/binder_badge_logo.svg :target: https://mybinder.org/v2/gh/watex/watex/0.3.X?urlpath=lab/tree/notebooks/glr_examples/methods/plot_logging_predictor_and_target.ipynb :alt: Launch binder :width: 150 px .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_logging_predictor_and_target.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_logging_predictor_and_target.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_