.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "checks_gallery/tabular/train_test_validation/plot_new_label_train_test.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_checks_gallery_tabular_train_test_validation_plot_new_label_train_test.py: .. _plot_tabular_new_label: New Label ********* .. GENERATED FROM PYTHON SOURCE LINES 10-16 .. code-block:: default import pandas as pd from deepchecks.tabular import Dataset from deepchecks.tabular.checks import NewLabelTrainTest .. GENERATED FROM PYTHON SOURCE LINES 17-23 .. code-block:: default test_data = {"col1": [0, 1, 2, 3] * 10} val_data = {"col1": [4, 5, 6, 7, 8, 9] * 10} test = Dataset(pd.DataFrame(data=test_data), label="col1", label_type="classification_label") val = Dataset(pd.DataFrame(data=val_data), label="col1", label_type="classification_label") .. GENERATED FROM PYTHON SOURCE LINES 24-30 .. code-block:: default test_data = {"col1": ["a", "b", "a", "c"] * 10, "col2": [1,2,2,3]*10} val_data = {"col1": ["a","b","d"] * 10, "col2": [1, 4, 5]*10} test = Dataset(pd.DataFrame(data=test_data), label="col2", label_type="classification_label") val = Dataset(pd.DataFrame(data=val_data), label="col2", label_type="classification_label") .. GENERATED FROM PYTHON SOURCE LINES 31-32 .. code-block:: default NewLabelTrainTest().run(test, val) .. raw:: html
New Label Train Test


.. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.041 seconds) .. _sphx_glr_download_checks_gallery_tabular_train_test_validation_plot_new_label_train_test.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_new_label_train_test.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_new_label_train_test.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_