PyPi package reference¶
Install package, download data and model files¶
In [ ]:
Copied!
!pip install aiverify-partial-dependence-plot --quiet
!wget -q https://github.com/aiverify-foundation/aiverify/raw/e2a0099bf51837e516ef09ca7115cbcbd5d8896c/stock-plugins/aiverify.stock.shap-toolbox/algorithms/shap_toolbox/tests/user_defined_files/data/sample_bc_credit_data.sav
!wget -q https://github.com/aiverify-foundation/aiverify/raw/e2a0099bf51837e516ef09ca7115cbcbd5d8896c/stock-plugins/aiverify.stock.shap-toolbox/algorithms/shap_toolbox/tests/user_defined_files/model/sample_bc_credit_sklearn_linear.LogisticRegression.sav
!pip install aiverify-partial-dependence-plot --quiet
!wget -q https://github.com/aiverify-foundation/aiverify/raw/e2a0099bf51837e516ef09ca7115cbcbd5d8896c/stock-plugins/aiverify.stock.shap-toolbox/algorithms/shap_toolbox/tests/user_defined_files/data/sample_bc_credit_data.sav
!wget -q https://github.com/aiverify-foundation/aiverify/raw/e2a0099bf51837e516ef09ca7115cbcbd5d8896c/stock-plugins/aiverify.stock.shap-toolbox/algorithms/shap_toolbox/tests/user_defined_files/model/sample_bc_credit_sklearn_linear.LogisticRegression.sav
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.0/61.0 kB 2.4 MB/s eta 0:00:00 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.3/18.3 MB 63.8 MB/s eta 0:00:00 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 85.8/85.8 kB 6.6 MB/s eta 0:00:00 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.8/60.8 kB 4.9 MB/s eta 0:00:00 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 75.9/75.9 kB 6.3 MB/s eta 0:00:00 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 85.5/85.5 kB 7.2 MB/s eta 0:00:00 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 22.9/22.9 MB 87.0 MB/s eta 0:00:00 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 100.3 MB/s eta 0:00:00 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 63.9 MB/s eta 0:00:00 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.3/13.3 MB 106.2 MB/s eta 0:00:00 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 56.7 MB/s eta 0:00:00 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. ipython 7.34.0 requires jedi>=0.16, which is not installed. google-genai 1.11.0 requires httpx<1.0.0,>=0.28.1, but you have httpx 0.26.0 which is incompatible. thinc 8.3.6 requires numpy<3.0.0,>=2.0.0, but you have numpy 1.26.4 which is incompatible.
Execute aiverify_partial_dependence_plot¶
In [ ]:
Copied!
!ls
!ls
sample_bc_credit_data.sav sample_data sample_bc_credit_sklearn_linear.LogisticRegression.sav
In [ ]:
Copied!
Execute the python module by providing necessary arguments including data path, model path, ground truth path, ground truth field and model type.
In [ ]:
Copied!
!python -m aiverify_partial_dependence_plot \
--data_path "sample_bc_credit_data.sav" \
--model_path "sample_bc_credit_sklearn_linear.LogisticRegression.sav" \
--ground_truth_path "sample_bc_credit_data.sav" \
--ground_truth default \
--model_type REGRESSION \
--no-run_pipeline
!python -m aiverify_partial_dependence_plot \
--data_path "sample_bc_credit_data.sav" \
--model_path "sample_bc_credit_sklearn_linear.LogisticRegression.sav" \
--ground_truth_path "sample_bc_credit_data.sav" \
--ground_truth default \
--model_type REGRESSION \
--no-run_pipeline
******************** Partial dependence plot - 2.0.0 from /usr/local/lib/python3.11/dist-packages (Python 3.11.12 (main, Apr 9 2025, 08:55:54) [GCC 11.4.0]) ******************** ******************** Running with the following arguments: Data Path: sample_bc_credit_data.sav Model Path: sample_bc_credit_sklearn_linear.LogisticRegression.sav Ground Truth Path: sample_bc_credit_data.sav Ground Truth: default Run Pipeline: False Model Type: ModelType.REGRESSION Core Modules Path: ******************** ==================== START PLUGIN TEST ==================== 2025-04-27 23:24:18.193980: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:477] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered WARNING: All log messages before absl::InitializeLog() is called are written to STDERR E0000 00:00:1745796258.219078 1050 cuda_dnn.cc:8310] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered E0000 00:00:1745796258.227276 1050 cuda_blas.cc:1418] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered 2025-04-27 23:24:18.254996: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations. To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags. [DETECTED_PLUGINS]: {'DATA': {'pandasdata': <module 'pandasdata' from '/usr/local/lib/python3.11/dist-packages/aiverify_test_engine/io/pandasdata/pandasdata.py'>, 'imagedata': <module 'imagedata' from '/usr/local/lib/python3.11/dist-packages/aiverify_test_engine/io/imagedata/imagedata.py'>, 'delimiterdata': <module 'delimiterdata' from '/usr/local/lib/python3.11/dist-packages/aiverify_test_engine/io/delimiterdata/delimiterdata.py'>}, 'MODEL': {'lightgbmmodel': <module 'lightgbmmodel' from '/usr/local/lib/python3.11/dist-packages/aiverify_test_engine/io/lightgbmmodel/lightgbmmodel.py'>, 'xgboostmodel': <module 'xgboostmodel' from '/usr/local/lib/python3.11/dist-packages/aiverify_test_engine/io/xgboostmodel/xgboostmodel.py'>, 'sklearnmodel': <module 'sklearnmodel' from '/usr/local/lib/python3.11/dist-packages/aiverify_test_engine/io/sklearnmodel/sklearnmodel.py'>, 'tensorflowmodel': <module 'tensorflowmodel' from '/usr/local/lib/python3.11/dist-packages/aiverify_test_engine/io/tensorflowmodel/tensorflowmodel.py'>, 'pytorchmodel': <module 'pytorchmodel' from '/usr/local/lib/python3.11/dist-packages/aiverify_test_engine/io/pytorchmodel/pytorchmodel.py'>}, 'SERIALIZER': {'pickleserializer': <module 'pickleserializer' from '/usr/local/lib/python3.11/dist-packages/aiverify_test_engine/io/pickleserializer/pickleserializer.py'>, 'joblibserializer': <module 'joblibserializer' from '/usr/local/lib/python3.11/dist-packages/aiverify_test_engine/io/joblibserializer/joblibserializer.py'>, 'tensorflowserializer': <module 'tensorflowserializer' from '/usr/local/lib/python3.11/dist-packages/aiverify_test_engine/io/tensorflowserializer/tensorflowserializer.py'>, 'imageserializer': <module 'imageserializer' from '/usr/local/lib/python3.11/dist-packages/aiverify_test_engine/io/imageserializer/imageserializer.py'>, 'pytorchserializer': <module 'pytorchserializer' from '/usr/local/lib/python3.11/dist-packages/aiverify_test_engine/io/pytorchserializer/pytorchserializer.py'>, 'delimiterserializer': <module 'delimiterserializer' from '/usr/local/lib/python3.11/dist-packages/aiverify_test_engine/io/delimiterserializer/delimiterserializer.py'>}, 'ALGORITHM': {}, 'PIPELINE': {'sklearnpipeline': <module 'sklearnpipeline' from '/usr/local/lib/python3.11/dist-packages/aiverify_test_engine/io/sklearnpipeline/sklearnpipeline.py'>, 'pytorchpipeline': <module 'pytorchpipeline' from '/usr/local/lib/python3.11/dist-packages/aiverify_test_engine/io/pytorchpipeline/pytorchpipeline.py'>}} /usr/local/lib/python3.11/dist-packages/sklearn/base.py:376: InconsistentVersionWarning: Trying to unpickle estimator LogisticRegression from version 1.2.2 when using version 1.5.2. This might lead to breaking code or invalid results. Use at your own risk. For more info please refer to: https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations warnings.warn( [DATA]: <pandasdata.Plugin object at 0x7fec5dcc7050> - <class 'pickleserializer.Plugin'> () [MODEL]: <sklearnmodel.Plugin object at 0x7fec5c71fc10> - <class 'pickleserializer.Plugin'> () Requires Ground Truth?: True [GROUND_TRUTH]: <pandasdata.Plugin object at 0x7fec5c693f10><class 'pickleserializer.Plugin'> [GROUND_TRUTH]: default [MODEL_TYPE]: ModelType.REGRESSION [GROUND_TRUTH FEATURES]: {'age': 'int64', 'gender': 'int64', 'income': 'int64', 'race': 'int64', 'home_ownership': 'int64', 'prior_count': 'int64', 'loan_amount': 'int64', 'loan_interests': 'float64', 'default': 'int64'} age gender income ... loan_amount loan_interests default 0 86 1 64570 ... 872014 0.628734 1 1 32 1 46194 ... 39121 0.518054 1 2 30 1 89651 ... 587940 0.414793 0 3 24 1 45865 ... 77608 0.524197 0 4 32 0 79513 ... 145595 0.687570 1 ... ... ... ... ... ... ... ... 2495 41 1 89237 ... 511226 0.674244 1 2496 61 1 15527 ... 325019 0.394591 0 2497 82 1 71102 ... 172144 0.721172 0 2498 83 1 54126 ... 127325 0.296527 0 2499 72 1 38403 ... 365896 0.631007 1 [2500 rows x 9 columns] Removing ground truth from data and keep only ground truth in ground truth data... [GROUND_TRUTH FEATURES]: {'default': 'int64'} Setting additional parameters... Creating an instance of the Plugin... Generating the results with the plugin... /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( [AlgoInit] Progress Update: 11 /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( [AlgoInit] Progress Update: 22 /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( [AlgoInit] Progress Update: 33 /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( [AlgoInit] Progress Update: 44 /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( [AlgoInit] Progress Update: 55 /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( [AlgoInit] Progress Update: 66 /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( [AlgoInit] Progress Update: 77 /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( /usr/local/lib/python3.11/dist-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but LogisticRegression was fitted with feature names warnings.warn( [AlgoInit] Progress Update: 88 [AlgoInit] Progress Update: 100 Converting numpy formats if exists... Verifying results with output schema... ******************** check the results here : /content/output/results.json ******************** ================================================== Function (run) took 9.4707 seconds to complete ==================================================
In [ ]:
Copied!
!ls
!ls
output sample_data sample_bc_credit_data.sav test.log sample_bc_credit_sklearn_linear.LogisticRegression.sav
Generated result will be stored in results.json
file
In [ ]:
Copied!
!cat /content/output/results.json
!cat /content/output/results.json
{ "gid": "aiverify.stock.partial_dependence_plot", "cid": "aiverify_partial_dependence_plot", "version": "2.0.0", "startTime": "2025-04-27T23:24:22.391943", "timeTaken": 0.112, "testArguments": { "testDataset": "file:///content/sample_bc_credit_data.sav", "mode": "upload", "modelType": "regression", "groundTruthDataset": "file:///content/sample_bc_credit_data.sav", "groundTruth": "default", "algorithmArgs": { "run_pipeline": false }, "modelFile": "file:///content/sample_bc_credit_sklearn_linear.LogisticRegression.sav" }, "output": { "feature_names": [ "age", "gender", "income", "race", "home_ownership", "prior_count", "loan_amount", "loan_interests" ], "output_classes": [ "0", "1" ], "results": [ [ [ { "feature_value": 18.0, "pdp_value": 0.6368 } ], [ { "feature_value": 18.0, "pdp_value": 0.6368 } ] ], [ [ { "feature_value": 0.0, "pdp_value": 0.6368 } ], [ { "feature_value": 0.0, "pdp_value": 0.6368 } ] ], [ [ { "feature_value": 816.642, "pdp_value": 1.0 } ], [ { "feature_value": 816.642, "pdp_value": 0.9776 } ] ], [ [ { "feature_value": 0.0, "pdp_value": 0.6368 } ], [ { "feature_value": 0.0, "pdp_value": 0.6368 } ] ], [ [ { "feature_value": 0.0, "pdp_value": 0.6368 } ], [ { "feature_value": 0.0, "pdp_value": 0.6368 } ] ], [ [ { "feature_value": 0.0, "pdp_value": 0.6368 } ], [ { "feature_value": 0.0, "pdp_value": 0.6368 } ] ], [ [ { "feature_value": 20143.632, "pdp_value": 0.0264 } ], [ { "feature_value": 20143.632, "pdp_value": 0.0868 } ] ], [ [ { "feature_value": 0.007422681469119182, "pdp_value": 0.6368 } ], [ { "feature_value": 0.007422681469119182, "pdp_value": 0.6368 } ] ] ] } }
Upload the result.json
file to the Portal to generate report if needed. Follow the detailed guide here for reference.