@elaraai/east-py-datascience 0.0.2-beta.80 → 0.0.2-beta.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/shap/shap.d.ts +2135 -512
- package/dist/src/shap/shap.d.ts.map +1 -1
- package/dist/src/shap/shap.js +57 -5
- package/dist/src/shap/shap.js.map +1 -1
- package/package.json +1 -1
package/dist/src/shap/shap.d.ts
CHANGED
|
@@ -797,203 +797,814 @@ export declare const MapieClassifierShapResultType: StructType<{
|
|
|
797
797
|
readonly feature_names: ArrayType<StringType>;
|
|
798
798
|
}>;
|
|
799
799
|
}>;
|
|
800
|
+
/**
|
|
801
|
+
* Configuration for TreeExplainer creation.
|
|
802
|
+
*
|
|
803
|
+
* - `path_dependent`: Uses tree structure to compute SHAP values. Fast, but may
|
|
804
|
+
* conflate correlated features because it follows the tree's split paths.
|
|
805
|
+
* - `interventional`: Uses background data to break feature correlations, giving
|
|
806
|
+
* causal "what if I changed this feature" explanations. Requires background samples.
|
|
807
|
+
*/
|
|
808
|
+
export declare const TreeExplainerConfigType: VariantType<{
|
|
809
|
+
/** Path-dependent mode: uses tree structure only (default SHAP behavior) */
|
|
810
|
+
readonly path_dependent: StructType<{
|
|
811
|
+
/** Tree-based model blob */
|
|
812
|
+
readonly model: VariantType<{
|
|
813
|
+
/** XGBoost regressor */
|
|
814
|
+
readonly xgboost_regressor: StructType<{
|
|
815
|
+
readonly data: BlobType;
|
|
816
|
+
readonly n_features: IntegerType;
|
|
817
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
818
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
819
|
+
}>;
|
|
820
|
+
/** XGBoost classifier */
|
|
821
|
+
readonly xgboost_classifier: StructType<{
|
|
822
|
+
readonly data: BlobType;
|
|
823
|
+
readonly n_features: IntegerType;
|
|
824
|
+
readonly n_classes: IntegerType;
|
|
825
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
826
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
827
|
+
}>;
|
|
828
|
+
/** XGBoost quantile regressor (uses median quantile for explanations) */
|
|
829
|
+
readonly xgboost_quantile: StructType<{
|
|
830
|
+
readonly data: BlobType;
|
|
831
|
+
readonly quantiles: VectorType<FloatType>;
|
|
832
|
+
readonly n_features: IntegerType;
|
|
833
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
834
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
835
|
+
}>;
|
|
836
|
+
/** MAPIE split conformal regressor with XGBoost base */
|
|
837
|
+
readonly mapie_split: StructType<{
|
|
838
|
+
readonly data: VariantType<{
|
|
839
|
+
readonly xgboost: VariantType<{
|
|
840
|
+
readonly xgboost_regressor: StructType<{
|
|
841
|
+
readonly data: BlobType;
|
|
842
|
+
readonly n_features: IntegerType;
|
|
843
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
844
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
845
|
+
}>;
|
|
846
|
+
readonly xgboost_classifier: StructType<{
|
|
847
|
+
readonly data: BlobType;
|
|
848
|
+
readonly n_features: IntegerType;
|
|
849
|
+
readonly n_classes: IntegerType;
|
|
850
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
851
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
852
|
+
}>;
|
|
853
|
+
readonly xgboost_quantile: StructType<{
|
|
854
|
+
readonly data: BlobType;
|
|
855
|
+
readonly quantiles: VectorType<FloatType>;
|
|
856
|
+
readonly n_features: IntegerType;
|
|
857
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
858
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
859
|
+
}>;
|
|
860
|
+
}>;
|
|
861
|
+
readonly lightgbm: VariantType<{
|
|
862
|
+
readonly lightgbm_regressor: StructType<{
|
|
863
|
+
readonly data: BlobType;
|
|
864
|
+
readonly n_features: IntegerType;
|
|
865
|
+
}>;
|
|
866
|
+
readonly lightgbm_classifier: StructType<{
|
|
867
|
+
readonly data: BlobType;
|
|
868
|
+
readonly n_features: IntegerType;
|
|
869
|
+
readonly n_classes: IntegerType;
|
|
870
|
+
}>;
|
|
871
|
+
}>;
|
|
872
|
+
readonly histogram: BlobType;
|
|
873
|
+
}>;
|
|
874
|
+
readonly n_features: IntegerType;
|
|
875
|
+
readonly confidence_level: FloatType;
|
|
876
|
+
}>;
|
|
877
|
+
/** MAPIE cross conformal regressor with XGBoost base */
|
|
878
|
+
readonly mapie_cross: StructType<{
|
|
879
|
+
readonly data: VariantType<{
|
|
880
|
+
readonly xgboost: VariantType<{
|
|
881
|
+
readonly xgboost_regressor: StructType<{
|
|
882
|
+
readonly data: BlobType;
|
|
883
|
+
readonly n_features: IntegerType;
|
|
884
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
885
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
886
|
+
}>;
|
|
887
|
+
readonly xgboost_classifier: StructType<{
|
|
888
|
+
readonly data: BlobType;
|
|
889
|
+
readonly n_features: IntegerType;
|
|
890
|
+
readonly n_classes: IntegerType;
|
|
891
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
892
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
893
|
+
}>;
|
|
894
|
+
readonly xgboost_quantile: StructType<{
|
|
895
|
+
readonly data: BlobType;
|
|
896
|
+
readonly quantiles: VectorType<FloatType>;
|
|
897
|
+
readonly n_features: IntegerType;
|
|
898
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
899
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
900
|
+
}>;
|
|
901
|
+
}>;
|
|
902
|
+
readonly lightgbm: VariantType<{
|
|
903
|
+
readonly lightgbm_regressor: StructType<{
|
|
904
|
+
readonly data: BlobType;
|
|
905
|
+
readonly n_features: IntegerType;
|
|
906
|
+
}>;
|
|
907
|
+
readonly lightgbm_classifier: StructType<{
|
|
908
|
+
readonly data: BlobType;
|
|
909
|
+
readonly n_features: IntegerType;
|
|
910
|
+
readonly n_classes: IntegerType;
|
|
911
|
+
}>;
|
|
912
|
+
}>;
|
|
913
|
+
readonly histogram: BlobType;
|
|
914
|
+
}>;
|
|
915
|
+
readonly n_features: IntegerType;
|
|
916
|
+
readonly confidence_level: FloatType;
|
|
917
|
+
}>;
|
|
918
|
+
/** MAPIE CQR conformal regressor with XGBoost base */
|
|
919
|
+
readonly mapie_cqr: StructType<{
|
|
920
|
+
readonly data: VariantType<{
|
|
921
|
+
readonly xgboost: VariantType<{
|
|
922
|
+
readonly xgboost_regressor: StructType<{
|
|
923
|
+
readonly data: BlobType;
|
|
924
|
+
readonly n_features: IntegerType;
|
|
925
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
926
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
927
|
+
}>;
|
|
928
|
+
readonly xgboost_classifier: StructType<{
|
|
929
|
+
readonly data: BlobType;
|
|
930
|
+
readonly n_features: IntegerType;
|
|
931
|
+
readonly n_classes: IntegerType;
|
|
932
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
933
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
934
|
+
}>;
|
|
935
|
+
readonly xgboost_quantile: StructType<{
|
|
936
|
+
readonly data: BlobType;
|
|
937
|
+
readonly quantiles: VectorType<FloatType>;
|
|
938
|
+
readonly n_features: IntegerType;
|
|
939
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
940
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
941
|
+
}>;
|
|
942
|
+
}>;
|
|
943
|
+
readonly lightgbm: VariantType<{
|
|
944
|
+
readonly lightgbm_regressor: StructType<{
|
|
945
|
+
readonly data: BlobType;
|
|
946
|
+
readonly n_features: IntegerType;
|
|
947
|
+
}>;
|
|
948
|
+
readonly lightgbm_classifier: StructType<{
|
|
949
|
+
readonly data: BlobType;
|
|
950
|
+
readonly n_features: IntegerType;
|
|
951
|
+
readonly n_classes: IntegerType;
|
|
952
|
+
}>;
|
|
953
|
+
}>;
|
|
954
|
+
readonly histogram: BlobType;
|
|
955
|
+
}>;
|
|
956
|
+
readonly n_features: IntegerType;
|
|
957
|
+
readonly confidence_level: FloatType;
|
|
958
|
+
}>;
|
|
959
|
+
/** MAPIE conformal classifier with XGBoost base */
|
|
960
|
+
readonly mapie_classifier: StructType<{
|
|
961
|
+
readonly data: VariantType<{
|
|
962
|
+
readonly xgboost: VariantType<{
|
|
963
|
+
readonly xgboost_regressor: StructType<{
|
|
964
|
+
readonly data: BlobType;
|
|
965
|
+
readonly n_features: IntegerType;
|
|
966
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
967
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
968
|
+
}>;
|
|
969
|
+
readonly xgboost_classifier: StructType<{
|
|
970
|
+
readonly data: BlobType;
|
|
971
|
+
readonly n_features: IntegerType;
|
|
972
|
+
readonly n_classes: IntegerType;
|
|
973
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
974
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
975
|
+
}>;
|
|
976
|
+
readonly xgboost_quantile: StructType<{
|
|
977
|
+
readonly data: BlobType;
|
|
978
|
+
readonly quantiles: VectorType<FloatType>;
|
|
979
|
+
readonly n_features: IntegerType;
|
|
980
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
981
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
982
|
+
}>;
|
|
983
|
+
}>;
|
|
984
|
+
readonly lightgbm: VariantType<{
|
|
985
|
+
readonly lightgbm_regressor: StructType<{
|
|
986
|
+
readonly data: BlobType;
|
|
987
|
+
readonly n_features: IntegerType;
|
|
988
|
+
}>;
|
|
989
|
+
readonly lightgbm_classifier: StructType<{
|
|
990
|
+
readonly data: BlobType;
|
|
991
|
+
readonly n_features: IntegerType;
|
|
992
|
+
readonly n_classes: IntegerType;
|
|
993
|
+
}>;
|
|
994
|
+
}>;
|
|
995
|
+
readonly histogram: BlobType;
|
|
996
|
+
}>;
|
|
997
|
+
readonly n_features: IntegerType;
|
|
998
|
+
readonly n_classes: IntegerType;
|
|
999
|
+
readonly classes: VectorType<IntegerType>;
|
|
1000
|
+
readonly confidence_level: FloatType;
|
|
1001
|
+
}>;
|
|
1002
|
+
}>;
|
|
1003
|
+
}>;
|
|
1004
|
+
/** Interventional mode: uses background data to break feature correlations */
|
|
1005
|
+
readonly interventional: StructType<{
|
|
1006
|
+
/** Tree-based model blob */
|
|
1007
|
+
readonly model: VariantType<{
|
|
1008
|
+
/** XGBoost regressor */
|
|
1009
|
+
readonly xgboost_regressor: StructType<{
|
|
1010
|
+
readonly data: BlobType;
|
|
1011
|
+
readonly n_features: IntegerType;
|
|
1012
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1013
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1014
|
+
}>;
|
|
1015
|
+
/** XGBoost classifier */
|
|
1016
|
+
readonly xgboost_classifier: StructType<{
|
|
1017
|
+
readonly data: BlobType;
|
|
1018
|
+
readonly n_features: IntegerType;
|
|
1019
|
+
readonly n_classes: IntegerType;
|
|
1020
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1021
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1022
|
+
}>;
|
|
1023
|
+
/** XGBoost quantile regressor (uses median quantile for explanations) */
|
|
1024
|
+
readonly xgboost_quantile: StructType<{
|
|
1025
|
+
readonly data: BlobType;
|
|
1026
|
+
readonly quantiles: VectorType<FloatType>;
|
|
1027
|
+
readonly n_features: IntegerType;
|
|
1028
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1029
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1030
|
+
}>;
|
|
1031
|
+
/** MAPIE split conformal regressor with XGBoost base */
|
|
1032
|
+
readonly mapie_split: StructType<{
|
|
1033
|
+
readonly data: VariantType<{
|
|
1034
|
+
readonly xgboost: VariantType<{
|
|
1035
|
+
readonly xgboost_regressor: StructType<{
|
|
1036
|
+
readonly data: BlobType;
|
|
1037
|
+
readonly n_features: IntegerType;
|
|
1038
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1039
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1040
|
+
}>;
|
|
1041
|
+
readonly xgboost_classifier: StructType<{
|
|
1042
|
+
readonly data: BlobType;
|
|
1043
|
+
readonly n_features: IntegerType;
|
|
1044
|
+
readonly n_classes: IntegerType;
|
|
1045
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1046
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1047
|
+
}>;
|
|
1048
|
+
readonly xgboost_quantile: StructType<{
|
|
1049
|
+
readonly data: BlobType;
|
|
1050
|
+
readonly quantiles: VectorType<FloatType>;
|
|
1051
|
+
readonly n_features: IntegerType;
|
|
1052
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1053
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1054
|
+
}>;
|
|
1055
|
+
}>;
|
|
1056
|
+
readonly lightgbm: VariantType<{
|
|
1057
|
+
readonly lightgbm_regressor: StructType<{
|
|
1058
|
+
readonly data: BlobType;
|
|
1059
|
+
readonly n_features: IntegerType;
|
|
1060
|
+
}>;
|
|
1061
|
+
readonly lightgbm_classifier: StructType<{
|
|
1062
|
+
readonly data: BlobType;
|
|
1063
|
+
readonly n_features: IntegerType;
|
|
1064
|
+
readonly n_classes: IntegerType;
|
|
1065
|
+
}>;
|
|
1066
|
+
}>;
|
|
1067
|
+
readonly histogram: BlobType;
|
|
1068
|
+
}>;
|
|
1069
|
+
readonly n_features: IntegerType;
|
|
1070
|
+
readonly confidence_level: FloatType;
|
|
1071
|
+
}>;
|
|
1072
|
+
/** MAPIE cross conformal regressor with XGBoost base */
|
|
1073
|
+
readonly mapie_cross: StructType<{
|
|
1074
|
+
readonly data: VariantType<{
|
|
1075
|
+
readonly xgboost: VariantType<{
|
|
1076
|
+
readonly xgboost_regressor: StructType<{
|
|
1077
|
+
readonly data: BlobType;
|
|
1078
|
+
readonly n_features: IntegerType;
|
|
1079
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1080
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1081
|
+
}>;
|
|
1082
|
+
readonly xgboost_classifier: StructType<{
|
|
1083
|
+
readonly data: BlobType;
|
|
1084
|
+
readonly n_features: IntegerType;
|
|
1085
|
+
readonly n_classes: IntegerType;
|
|
1086
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1087
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1088
|
+
}>;
|
|
1089
|
+
readonly xgboost_quantile: StructType<{
|
|
1090
|
+
readonly data: BlobType;
|
|
1091
|
+
readonly quantiles: VectorType<FloatType>;
|
|
1092
|
+
readonly n_features: IntegerType;
|
|
1093
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1094
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1095
|
+
}>;
|
|
1096
|
+
}>;
|
|
1097
|
+
readonly lightgbm: VariantType<{
|
|
1098
|
+
readonly lightgbm_regressor: StructType<{
|
|
1099
|
+
readonly data: BlobType;
|
|
1100
|
+
readonly n_features: IntegerType;
|
|
1101
|
+
}>;
|
|
1102
|
+
readonly lightgbm_classifier: StructType<{
|
|
1103
|
+
readonly data: BlobType;
|
|
1104
|
+
readonly n_features: IntegerType;
|
|
1105
|
+
readonly n_classes: IntegerType;
|
|
1106
|
+
}>;
|
|
1107
|
+
}>;
|
|
1108
|
+
readonly histogram: BlobType;
|
|
1109
|
+
}>;
|
|
1110
|
+
readonly n_features: IntegerType;
|
|
1111
|
+
readonly confidence_level: FloatType;
|
|
1112
|
+
}>;
|
|
1113
|
+
/** MAPIE CQR conformal regressor with XGBoost base */
|
|
1114
|
+
readonly mapie_cqr: StructType<{
|
|
1115
|
+
readonly data: VariantType<{
|
|
1116
|
+
readonly xgboost: VariantType<{
|
|
1117
|
+
readonly xgboost_regressor: StructType<{
|
|
1118
|
+
readonly data: BlobType;
|
|
1119
|
+
readonly n_features: IntegerType;
|
|
1120
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1121
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1122
|
+
}>;
|
|
1123
|
+
readonly xgboost_classifier: StructType<{
|
|
1124
|
+
readonly data: BlobType;
|
|
1125
|
+
readonly n_features: IntegerType;
|
|
1126
|
+
readonly n_classes: IntegerType;
|
|
1127
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1128
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1129
|
+
}>;
|
|
1130
|
+
readonly xgboost_quantile: StructType<{
|
|
1131
|
+
readonly data: BlobType;
|
|
1132
|
+
readonly quantiles: VectorType<FloatType>;
|
|
1133
|
+
readonly n_features: IntegerType;
|
|
1134
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1135
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1136
|
+
}>;
|
|
1137
|
+
}>;
|
|
1138
|
+
readonly lightgbm: VariantType<{
|
|
1139
|
+
readonly lightgbm_regressor: StructType<{
|
|
1140
|
+
readonly data: BlobType;
|
|
1141
|
+
readonly n_features: IntegerType;
|
|
1142
|
+
}>;
|
|
1143
|
+
readonly lightgbm_classifier: StructType<{
|
|
1144
|
+
readonly data: BlobType;
|
|
1145
|
+
readonly n_features: IntegerType;
|
|
1146
|
+
readonly n_classes: IntegerType;
|
|
1147
|
+
}>;
|
|
1148
|
+
}>;
|
|
1149
|
+
readonly histogram: BlobType;
|
|
1150
|
+
}>;
|
|
1151
|
+
readonly n_features: IntegerType;
|
|
1152
|
+
readonly confidence_level: FloatType;
|
|
1153
|
+
}>;
|
|
1154
|
+
/** MAPIE conformal classifier with XGBoost base */
|
|
1155
|
+
readonly mapie_classifier: StructType<{
|
|
1156
|
+
readonly data: VariantType<{
|
|
1157
|
+
readonly xgboost: VariantType<{
|
|
1158
|
+
readonly xgboost_regressor: StructType<{
|
|
1159
|
+
readonly data: BlobType;
|
|
1160
|
+
readonly n_features: IntegerType;
|
|
1161
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1162
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1163
|
+
}>;
|
|
1164
|
+
readonly xgboost_classifier: StructType<{
|
|
1165
|
+
readonly data: BlobType;
|
|
1166
|
+
readonly n_features: IntegerType;
|
|
1167
|
+
readonly n_classes: IntegerType;
|
|
1168
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1169
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1170
|
+
}>;
|
|
1171
|
+
readonly xgboost_quantile: StructType<{
|
|
1172
|
+
readonly data: BlobType;
|
|
1173
|
+
readonly quantiles: VectorType<FloatType>;
|
|
1174
|
+
readonly n_features: IntegerType;
|
|
1175
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1176
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1177
|
+
}>;
|
|
1178
|
+
}>;
|
|
1179
|
+
readonly lightgbm: VariantType<{
|
|
1180
|
+
readonly lightgbm_regressor: StructType<{
|
|
1181
|
+
readonly data: BlobType;
|
|
1182
|
+
readonly n_features: IntegerType;
|
|
1183
|
+
}>;
|
|
1184
|
+
readonly lightgbm_classifier: StructType<{
|
|
1185
|
+
readonly data: BlobType;
|
|
1186
|
+
readonly n_features: IntegerType;
|
|
1187
|
+
readonly n_classes: IntegerType;
|
|
1188
|
+
}>;
|
|
1189
|
+
}>;
|
|
1190
|
+
readonly histogram: BlobType;
|
|
1191
|
+
}>;
|
|
1192
|
+
readonly n_features: IntegerType;
|
|
1193
|
+
readonly n_classes: IntegerType;
|
|
1194
|
+
readonly classes: VectorType<IntegerType>;
|
|
1195
|
+
readonly confidence_level: FloatType;
|
|
1196
|
+
}>;
|
|
1197
|
+
}>;
|
|
1198
|
+
/** Background data for computing interventional expectations */
|
|
1199
|
+
readonly background: MatrixType<FloatType>;
|
|
1200
|
+
}>;
|
|
1201
|
+
}>;
|
|
800
1202
|
/**
|
|
801
1203
|
* Create a SHAP TreeExplainer for tree-based models.
|
|
802
1204
|
*
|
|
803
1205
|
* Works with XGBoost and LightGBM models (regressor and classifier).
|
|
804
1206
|
*
|
|
805
|
-
*
|
|
1207
|
+
* Two modes:
|
|
1208
|
+
* - `path_dependent`: Uses tree split paths (fast, default SHAP behavior).
|
|
1209
|
+
* Tells you how the tree *used* features.
|
|
1210
|
+
* - `interventional`: Uses background data to break feature correlations.
|
|
1211
|
+
* Tells you how *changing* a feature would change the prediction.
|
|
1212
|
+
*
|
|
1213
|
+
* @param config - Variant with mode selection and model/background data
|
|
806
1214
|
* @returns SHAP TreeExplainer blob
|
|
807
1215
|
*/
|
|
808
1216
|
export declare const shap_tree_explainer_create: import("@elaraai/east").PlatformDefinition<[VariantType<{
|
|
809
|
-
/**
|
|
810
|
-
readonly
|
|
811
|
-
|
|
812
|
-
readonly
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
readonly
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
1217
|
+
/** Path-dependent mode: uses tree structure only (default SHAP behavior) */
|
|
1218
|
+
readonly path_dependent: StructType<{
|
|
1219
|
+
/** Tree-based model blob */
|
|
1220
|
+
readonly model: VariantType<{
|
|
1221
|
+
/** XGBoost regressor */
|
|
1222
|
+
readonly xgboost_regressor: StructType<{
|
|
1223
|
+
readonly data: BlobType;
|
|
1224
|
+
readonly n_features: IntegerType;
|
|
1225
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1226
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1227
|
+
}>;
|
|
1228
|
+
/** XGBoost classifier */
|
|
1229
|
+
readonly xgboost_classifier: StructType<{
|
|
1230
|
+
readonly data: BlobType;
|
|
1231
|
+
readonly n_features: IntegerType;
|
|
1232
|
+
readonly n_classes: IntegerType;
|
|
1233
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1234
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1235
|
+
}>;
|
|
1236
|
+
/** XGBoost quantile regressor (uses median quantile for explanations) */
|
|
1237
|
+
readonly xgboost_quantile: StructType<{
|
|
1238
|
+
readonly data: BlobType;
|
|
1239
|
+
readonly quantiles: VectorType<FloatType>;
|
|
1240
|
+
readonly n_features: IntegerType;
|
|
1241
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1242
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1243
|
+
}>;
|
|
1244
|
+
/** MAPIE split conformal regressor with XGBoost base */
|
|
1245
|
+
readonly mapie_split: StructType<{
|
|
1246
|
+
readonly data: VariantType<{
|
|
1247
|
+
readonly xgboost: VariantType<{
|
|
1248
|
+
readonly xgboost_regressor: StructType<{
|
|
1249
|
+
readonly data: BlobType;
|
|
1250
|
+
readonly n_features: IntegerType;
|
|
1251
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1252
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1253
|
+
}>;
|
|
1254
|
+
readonly xgboost_classifier: StructType<{
|
|
1255
|
+
readonly data: BlobType;
|
|
1256
|
+
readonly n_features: IntegerType;
|
|
1257
|
+
readonly n_classes: IntegerType;
|
|
1258
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1259
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1260
|
+
}>;
|
|
1261
|
+
readonly xgboost_quantile: StructType<{
|
|
1262
|
+
readonly data: BlobType;
|
|
1263
|
+
readonly quantiles: VectorType<FloatType>;
|
|
1264
|
+
readonly n_features: IntegerType;
|
|
1265
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1266
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1267
|
+
}>;
|
|
1268
|
+
}>;
|
|
1269
|
+
readonly lightgbm: VariantType<{
|
|
1270
|
+
readonly lightgbm_regressor: StructType<{
|
|
1271
|
+
readonly data: BlobType;
|
|
1272
|
+
readonly n_features: IntegerType;
|
|
1273
|
+
}>;
|
|
1274
|
+
readonly lightgbm_classifier: StructType<{
|
|
1275
|
+
readonly data: BlobType;
|
|
1276
|
+
readonly n_features: IntegerType;
|
|
1277
|
+
readonly n_classes: IntegerType;
|
|
1278
|
+
}>;
|
|
1279
|
+
}>;
|
|
1280
|
+
readonly histogram: BlobType;
|
|
848
1281
|
}>;
|
|
849
|
-
readonly
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
1282
|
+
readonly n_features: IntegerType;
|
|
1283
|
+
readonly confidence_level: FloatType;
|
|
1284
|
+
}>;
|
|
1285
|
+
/** MAPIE cross conformal regressor with XGBoost base */
|
|
1286
|
+
readonly mapie_cross: StructType<{
|
|
1287
|
+
readonly data: VariantType<{
|
|
1288
|
+
readonly xgboost: VariantType<{
|
|
1289
|
+
readonly xgboost_regressor: StructType<{
|
|
1290
|
+
readonly data: BlobType;
|
|
1291
|
+
readonly n_features: IntegerType;
|
|
1292
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1293
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1294
|
+
}>;
|
|
1295
|
+
readonly xgboost_classifier: StructType<{
|
|
1296
|
+
readonly data: BlobType;
|
|
1297
|
+
readonly n_features: IntegerType;
|
|
1298
|
+
readonly n_classes: IntegerType;
|
|
1299
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1300
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1301
|
+
}>;
|
|
1302
|
+
readonly xgboost_quantile: StructType<{
|
|
1303
|
+
readonly data: BlobType;
|
|
1304
|
+
readonly quantiles: VectorType<FloatType>;
|
|
1305
|
+
readonly n_features: IntegerType;
|
|
1306
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1307
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1308
|
+
}>;
|
|
1309
|
+
}>;
|
|
1310
|
+
readonly lightgbm: VariantType<{
|
|
1311
|
+
readonly lightgbm_regressor: StructType<{
|
|
1312
|
+
readonly data: BlobType;
|
|
1313
|
+
readonly n_features: IntegerType;
|
|
1314
|
+
}>;
|
|
1315
|
+
readonly lightgbm_classifier: StructType<{
|
|
1316
|
+
readonly data: BlobType;
|
|
1317
|
+
readonly n_features: IntegerType;
|
|
1318
|
+
readonly n_classes: IntegerType;
|
|
1319
|
+
}>;
|
|
1320
|
+
}>;
|
|
1321
|
+
readonly histogram: BlobType;
|
|
855
1322
|
}>;
|
|
1323
|
+
readonly n_features: IntegerType;
|
|
1324
|
+
readonly confidence_level: FloatType;
|
|
856
1325
|
}>;
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
readonly
|
|
1326
|
+
/** MAPIE CQR conformal regressor with XGBoost base */
|
|
1327
|
+
readonly mapie_cqr: StructType<{
|
|
1328
|
+
readonly data: VariantType<{
|
|
1329
|
+
readonly xgboost: VariantType<{
|
|
1330
|
+
readonly xgboost_regressor: StructType<{
|
|
1331
|
+
readonly data: BlobType;
|
|
1332
|
+
readonly n_features: IntegerType;
|
|
1333
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1334
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1335
|
+
}>;
|
|
1336
|
+
readonly xgboost_classifier: StructType<{
|
|
1337
|
+
readonly data: BlobType;
|
|
1338
|
+
readonly n_features: IntegerType;
|
|
1339
|
+
readonly n_classes: IntegerType;
|
|
1340
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1341
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1342
|
+
}>;
|
|
1343
|
+
readonly xgboost_quantile: StructType<{
|
|
1344
|
+
readonly data: BlobType;
|
|
1345
|
+
readonly quantiles: VectorType<FloatType>;
|
|
1346
|
+
readonly n_features: IntegerType;
|
|
1347
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1348
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1349
|
+
}>;
|
|
1350
|
+
}>;
|
|
1351
|
+
readonly lightgbm: VariantType<{
|
|
1352
|
+
readonly lightgbm_regressor: StructType<{
|
|
1353
|
+
readonly data: BlobType;
|
|
1354
|
+
readonly n_features: IntegerType;
|
|
1355
|
+
}>;
|
|
1356
|
+
readonly lightgbm_classifier: StructType<{
|
|
1357
|
+
readonly data: BlobType;
|
|
1358
|
+
readonly n_features: IntegerType;
|
|
1359
|
+
readonly n_classes: IntegerType;
|
|
1360
|
+
}>;
|
|
1361
|
+
}>;
|
|
1362
|
+
readonly histogram: BlobType;
|
|
861
1363
|
}>;
|
|
862
|
-
readonly
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
1364
|
+
readonly n_features: IntegerType;
|
|
1365
|
+
readonly confidence_level: FloatType;
|
|
1366
|
+
}>;
|
|
1367
|
+
/** MAPIE conformal classifier with XGBoost base */
|
|
1368
|
+
readonly mapie_classifier: StructType<{
|
|
1369
|
+
readonly data: VariantType<{
|
|
1370
|
+
readonly xgboost: VariantType<{
|
|
1371
|
+
readonly xgboost_regressor: StructType<{
|
|
1372
|
+
readonly data: BlobType;
|
|
1373
|
+
readonly n_features: IntegerType;
|
|
1374
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1375
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1376
|
+
}>;
|
|
1377
|
+
readonly xgboost_classifier: StructType<{
|
|
1378
|
+
readonly data: BlobType;
|
|
1379
|
+
readonly n_features: IntegerType;
|
|
1380
|
+
readonly n_classes: IntegerType;
|
|
1381
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1382
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1383
|
+
}>;
|
|
1384
|
+
readonly xgboost_quantile: StructType<{
|
|
1385
|
+
readonly data: BlobType;
|
|
1386
|
+
readonly quantiles: VectorType<FloatType>;
|
|
1387
|
+
readonly n_features: IntegerType;
|
|
1388
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1389
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1390
|
+
}>;
|
|
1391
|
+
}>;
|
|
1392
|
+
readonly lightgbm: VariantType<{
|
|
1393
|
+
readonly lightgbm_regressor: StructType<{
|
|
1394
|
+
readonly data: BlobType;
|
|
1395
|
+
readonly n_features: IntegerType;
|
|
1396
|
+
}>;
|
|
1397
|
+
readonly lightgbm_classifier: StructType<{
|
|
1398
|
+
readonly data: BlobType;
|
|
1399
|
+
readonly n_features: IntegerType;
|
|
1400
|
+
readonly n_classes: IntegerType;
|
|
1401
|
+
}>;
|
|
1402
|
+
}>;
|
|
1403
|
+
readonly histogram: BlobType;
|
|
866
1404
|
}>;
|
|
1405
|
+
readonly n_features: IntegerType;
|
|
1406
|
+
readonly n_classes: IntegerType;
|
|
1407
|
+
readonly classes: VectorType<IntegerType>;
|
|
1408
|
+
readonly confidence_level: FloatType;
|
|
867
1409
|
}>;
|
|
868
|
-
readonly histogram: BlobType;
|
|
869
1410
|
}>;
|
|
870
|
-
readonly n_features: IntegerType;
|
|
871
|
-
readonly confidence_level: FloatType;
|
|
872
1411
|
}>;
|
|
873
|
-
/**
|
|
874
|
-
readonly
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
readonly xgboost_classifier: StructType<{
|
|
884
|
-
readonly data: BlobType;
|
|
885
|
-
readonly n_features: IntegerType;
|
|
886
|
-
readonly n_classes: IntegerType;
|
|
887
|
-
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
888
|
-
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
889
|
-
}>;
|
|
890
|
-
readonly xgboost_quantile: StructType<{
|
|
891
|
-
readonly data: BlobType;
|
|
892
|
-
readonly quantiles: VectorType<FloatType>;
|
|
893
|
-
readonly n_features: IntegerType;
|
|
894
|
-
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
895
|
-
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
896
|
-
}>;
|
|
1412
|
+
/** Interventional mode: uses background data to break feature correlations */
|
|
1413
|
+
readonly interventional: StructType<{
|
|
1414
|
+
/** Tree-based model blob */
|
|
1415
|
+
readonly model: VariantType<{
|
|
1416
|
+
/** XGBoost regressor */
|
|
1417
|
+
readonly xgboost_regressor: StructType<{
|
|
1418
|
+
readonly data: BlobType;
|
|
1419
|
+
readonly n_features: IntegerType;
|
|
1420
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1421
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
897
1422
|
}>;
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
readonly
|
|
904
|
-
|
|
905
|
-
readonly n_features: IntegerType;
|
|
906
|
-
readonly n_classes: IntegerType;
|
|
907
|
-
}>;
|
|
1423
|
+
/** XGBoost classifier */
|
|
1424
|
+
readonly xgboost_classifier: StructType<{
|
|
1425
|
+
readonly data: BlobType;
|
|
1426
|
+
readonly n_features: IntegerType;
|
|
1427
|
+
readonly n_classes: IntegerType;
|
|
1428
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1429
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
908
1430
|
}>;
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
readonly data: VariantType<{
|
|
917
|
-
readonly xgboost: VariantType<{
|
|
918
|
-
readonly xgboost_regressor: StructType<{
|
|
919
|
-
readonly data: BlobType;
|
|
920
|
-
readonly n_features: IntegerType;
|
|
921
|
-
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
922
|
-
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
923
|
-
}>;
|
|
924
|
-
readonly xgboost_classifier: StructType<{
|
|
925
|
-
readonly data: BlobType;
|
|
926
|
-
readonly n_features: IntegerType;
|
|
927
|
-
readonly n_classes: IntegerType;
|
|
928
|
-
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
929
|
-
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
930
|
-
}>;
|
|
931
|
-
readonly xgboost_quantile: StructType<{
|
|
932
|
-
readonly data: BlobType;
|
|
933
|
-
readonly quantiles: VectorType<FloatType>;
|
|
934
|
-
readonly n_features: IntegerType;
|
|
935
|
-
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
936
|
-
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
937
|
-
}>;
|
|
1431
|
+
/** XGBoost quantile regressor (uses median quantile for explanations) */
|
|
1432
|
+
readonly xgboost_quantile: StructType<{
|
|
1433
|
+
readonly data: BlobType;
|
|
1434
|
+
readonly quantiles: VectorType<FloatType>;
|
|
1435
|
+
readonly n_features: IntegerType;
|
|
1436
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1437
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
938
1438
|
}>;
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
readonly
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
1439
|
+
/** MAPIE split conformal regressor with XGBoost base */
|
|
1440
|
+
readonly mapie_split: StructType<{
|
|
1441
|
+
readonly data: VariantType<{
|
|
1442
|
+
readonly xgboost: VariantType<{
|
|
1443
|
+
readonly xgboost_regressor: StructType<{
|
|
1444
|
+
readonly data: BlobType;
|
|
1445
|
+
readonly n_features: IntegerType;
|
|
1446
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1447
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1448
|
+
}>;
|
|
1449
|
+
readonly xgboost_classifier: StructType<{
|
|
1450
|
+
readonly data: BlobType;
|
|
1451
|
+
readonly n_features: IntegerType;
|
|
1452
|
+
readonly n_classes: IntegerType;
|
|
1453
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1454
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1455
|
+
}>;
|
|
1456
|
+
readonly xgboost_quantile: StructType<{
|
|
1457
|
+
readonly data: BlobType;
|
|
1458
|
+
readonly quantiles: VectorType<FloatType>;
|
|
1459
|
+
readonly n_features: IntegerType;
|
|
1460
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1461
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1462
|
+
}>;
|
|
1463
|
+
}>;
|
|
1464
|
+
readonly lightgbm: VariantType<{
|
|
1465
|
+
readonly lightgbm_regressor: StructType<{
|
|
1466
|
+
readonly data: BlobType;
|
|
1467
|
+
readonly n_features: IntegerType;
|
|
1468
|
+
}>;
|
|
1469
|
+
readonly lightgbm_classifier: StructType<{
|
|
1470
|
+
readonly data: BlobType;
|
|
1471
|
+
readonly n_features: IntegerType;
|
|
1472
|
+
readonly n_classes: IntegerType;
|
|
1473
|
+
}>;
|
|
1474
|
+
}>;
|
|
1475
|
+
readonly histogram: BlobType;
|
|
948
1476
|
}>;
|
|
1477
|
+
readonly n_features: IntegerType;
|
|
1478
|
+
readonly confidence_level: FloatType;
|
|
949
1479
|
}>;
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
readonly
|
|
976
|
-
|
|
977
|
-
|
|
1480
|
+
/** MAPIE cross conformal regressor with XGBoost base */
|
|
1481
|
+
readonly mapie_cross: StructType<{
|
|
1482
|
+
readonly data: VariantType<{
|
|
1483
|
+
readonly xgboost: VariantType<{
|
|
1484
|
+
readonly xgboost_regressor: StructType<{
|
|
1485
|
+
readonly data: BlobType;
|
|
1486
|
+
readonly n_features: IntegerType;
|
|
1487
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1488
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1489
|
+
}>;
|
|
1490
|
+
readonly xgboost_classifier: StructType<{
|
|
1491
|
+
readonly data: BlobType;
|
|
1492
|
+
readonly n_features: IntegerType;
|
|
1493
|
+
readonly n_classes: IntegerType;
|
|
1494
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1495
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1496
|
+
}>;
|
|
1497
|
+
readonly xgboost_quantile: StructType<{
|
|
1498
|
+
readonly data: BlobType;
|
|
1499
|
+
readonly quantiles: VectorType<FloatType>;
|
|
1500
|
+
readonly n_features: IntegerType;
|
|
1501
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1502
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1503
|
+
}>;
|
|
1504
|
+
}>;
|
|
1505
|
+
readonly lightgbm: VariantType<{
|
|
1506
|
+
readonly lightgbm_regressor: StructType<{
|
|
1507
|
+
readonly data: BlobType;
|
|
1508
|
+
readonly n_features: IntegerType;
|
|
1509
|
+
}>;
|
|
1510
|
+
readonly lightgbm_classifier: StructType<{
|
|
1511
|
+
readonly data: BlobType;
|
|
1512
|
+
readonly n_features: IntegerType;
|
|
1513
|
+
readonly n_classes: IntegerType;
|
|
1514
|
+
}>;
|
|
1515
|
+
}>;
|
|
1516
|
+
readonly histogram: BlobType;
|
|
978
1517
|
}>;
|
|
1518
|
+
readonly n_features: IntegerType;
|
|
1519
|
+
readonly confidence_level: FloatType;
|
|
979
1520
|
}>;
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
readonly
|
|
1521
|
+
/** MAPIE CQR conformal regressor with XGBoost base */
|
|
1522
|
+
readonly mapie_cqr: StructType<{
|
|
1523
|
+
readonly data: VariantType<{
|
|
1524
|
+
readonly xgboost: VariantType<{
|
|
1525
|
+
readonly xgboost_regressor: StructType<{
|
|
1526
|
+
readonly data: BlobType;
|
|
1527
|
+
readonly n_features: IntegerType;
|
|
1528
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1529
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1530
|
+
}>;
|
|
1531
|
+
readonly xgboost_classifier: StructType<{
|
|
1532
|
+
readonly data: BlobType;
|
|
1533
|
+
readonly n_features: IntegerType;
|
|
1534
|
+
readonly n_classes: IntegerType;
|
|
1535
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1536
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1537
|
+
}>;
|
|
1538
|
+
readonly xgboost_quantile: StructType<{
|
|
1539
|
+
readonly data: BlobType;
|
|
1540
|
+
readonly quantiles: VectorType<FloatType>;
|
|
1541
|
+
readonly n_features: IntegerType;
|
|
1542
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1543
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1544
|
+
}>;
|
|
1545
|
+
}>;
|
|
1546
|
+
readonly lightgbm: VariantType<{
|
|
1547
|
+
readonly lightgbm_regressor: StructType<{
|
|
1548
|
+
readonly data: BlobType;
|
|
1549
|
+
readonly n_features: IntegerType;
|
|
1550
|
+
}>;
|
|
1551
|
+
readonly lightgbm_classifier: StructType<{
|
|
1552
|
+
readonly data: BlobType;
|
|
1553
|
+
readonly n_features: IntegerType;
|
|
1554
|
+
readonly n_classes: IntegerType;
|
|
1555
|
+
}>;
|
|
1556
|
+
}>;
|
|
1557
|
+
readonly histogram: BlobType;
|
|
984
1558
|
}>;
|
|
985
|
-
readonly
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
1559
|
+
readonly n_features: IntegerType;
|
|
1560
|
+
readonly confidence_level: FloatType;
|
|
1561
|
+
}>;
|
|
1562
|
+
/** MAPIE conformal classifier with XGBoost base */
|
|
1563
|
+
readonly mapie_classifier: StructType<{
|
|
1564
|
+
readonly data: VariantType<{
|
|
1565
|
+
readonly xgboost: VariantType<{
|
|
1566
|
+
readonly xgboost_regressor: StructType<{
|
|
1567
|
+
readonly data: BlobType;
|
|
1568
|
+
readonly n_features: IntegerType;
|
|
1569
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1570
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1571
|
+
}>;
|
|
1572
|
+
readonly xgboost_classifier: StructType<{
|
|
1573
|
+
readonly data: BlobType;
|
|
1574
|
+
readonly n_features: IntegerType;
|
|
1575
|
+
readonly n_classes: IntegerType;
|
|
1576
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1577
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1578
|
+
}>;
|
|
1579
|
+
readonly xgboost_quantile: StructType<{
|
|
1580
|
+
readonly data: BlobType;
|
|
1581
|
+
readonly quantiles: VectorType<FloatType>;
|
|
1582
|
+
readonly n_features: IntegerType;
|
|
1583
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1584
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1585
|
+
}>;
|
|
1586
|
+
}>;
|
|
1587
|
+
readonly lightgbm: VariantType<{
|
|
1588
|
+
readonly lightgbm_regressor: StructType<{
|
|
1589
|
+
readonly data: BlobType;
|
|
1590
|
+
readonly n_features: IntegerType;
|
|
1591
|
+
}>;
|
|
1592
|
+
readonly lightgbm_classifier: StructType<{
|
|
1593
|
+
readonly data: BlobType;
|
|
1594
|
+
readonly n_features: IntegerType;
|
|
1595
|
+
readonly n_classes: IntegerType;
|
|
1596
|
+
}>;
|
|
1597
|
+
}>;
|
|
1598
|
+
readonly histogram: BlobType;
|
|
989
1599
|
}>;
|
|
1600
|
+
readonly n_features: IntegerType;
|
|
1601
|
+
readonly n_classes: IntegerType;
|
|
1602
|
+
readonly classes: VectorType<IntegerType>;
|
|
1603
|
+
readonly confidence_level: FloatType;
|
|
990
1604
|
}>;
|
|
991
|
-
readonly histogram: BlobType;
|
|
992
1605
|
}>;
|
|
993
|
-
|
|
994
|
-
readonly
|
|
995
|
-
readonly classes: VectorType<IntegerType>;
|
|
996
|
-
readonly confidence_level: FloatType;
|
|
1606
|
+
/** Background data for computing interventional expectations */
|
|
1607
|
+
readonly background: MatrixType<FloatType>;
|
|
997
1608
|
}>;
|
|
998
1609
|
}>], VariantType<{
|
|
999
1610
|
/** SHAP TreeExplainer for tree-based models */
|
|
@@ -1383,236 +1994,46 @@ export declare const ShapTypes: {
|
|
|
1383
1994
|
readonly single: FloatType;
|
|
1384
1995
|
/** Per-class base values for multi-class classification */
|
|
1385
1996
|
readonly per_class: VectorType<FloatType>;
|
|
1386
|
-
}>;
|
|
1387
|
-
/** Feature names */
|
|
1388
|
-
readonly feature_names: ArrayType<StringType>;
|
|
1389
|
-
}>;
|
|
1390
|
-
/** Feature importance type */
|
|
1391
|
-
readonly FeatureImportanceType: StructType<{
|
|
1392
|
-
/** Feature names */
|
|
1393
|
-
readonly feature_names: ArrayType<StringType>;
|
|
1394
|
-
/** Mean absolute SHAP value for each feature */
|
|
1395
|
-
readonly importances: VectorType<FloatType>;
|
|
1396
|
-
/** Standard deviation of absolute SHAP values */
|
|
1397
|
-
readonly std: OptionType<VectorType<FloatType>>;
|
|
1398
|
-
}>;
|
|
1399
|
-
/** SHAP explainer model blob type */
|
|
1400
|
-
readonly ShapModelBlobType: VariantType<{
|
|
1401
|
-
/** SHAP TreeExplainer for tree-based models */
|
|
1402
|
-
readonly shap_tree_explainer: StructType<{
|
|
1403
|
-
/** Cloudpickle serialized explainer */
|
|
1404
|
-
readonly data: BlobType;
|
|
1405
|
-
/** Number of input features */
|
|
1406
|
-
readonly n_features: IntegerType;
|
|
1407
|
-
}>;
|
|
1408
|
-
/** SHAP KernelExplainer for any model */
|
|
1409
|
-
readonly shap_kernel_explainer: StructType<{
|
|
1410
|
-
/** Cloudpickle serialized explainer */
|
|
1411
|
-
readonly data: BlobType;
|
|
1412
|
-
/** Number of input features */
|
|
1413
|
-
readonly n_features: IntegerType;
|
|
1414
|
-
}>;
|
|
1415
|
-
}>;
|
|
1416
|
-
/** Tree model blob type for input */
|
|
1417
|
-
readonly TreeModelBlobType: VariantType<{
|
|
1418
|
-
/** XGBoost regressor */
|
|
1419
|
-
readonly xgboost_regressor: StructType<{
|
|
1420
|
-
readonly data: BlobType;
|
|
1421
|
-
readonly n_features: IntegerType;
|
|
1422
|
-
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1423
|
-
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1424
|
-
}>;
|
|
1425
|
-
/** XGBoost classifier */
|
|
1426
|
-
readonly xgboost_classifier: StructType<{
|
|
1427
|
-
readonly data: BlobType;
|
|
1428
|
-
readonly n_features: IntegerType;
|
|
1429
|
-
readonly n_classes: IntegerType;
|
|
1430
|
-
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1431
|
-
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1432
|
-
}>;
|
|
1433
|
-
/** XGBoost quantile regressor (uses median quantile for explanations) */
|
|
1434
|
-
readonly xgboost_quantile: StructType<{
|
|
1435
|
-
readonly data: BlobType;
|
|
1436
|
-
readonly quantiles: VectorType<FloatType>;
|
|
1437
|
-
readonly n_features: IntegerType;
|
|
1438
|
-
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1439
|
-
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1440
|
-
}>;
|
|
1441
|
-
/** MAPIE split conformal regressor with XGBoost base */
|
|
1442
|
-
readonly mapie_split: StructType<{
|
|
1443
|
-
readonly data: VariantType<{
|
|
1444
|
-
readonly xgboost: VariantType<{
|
|
1445
|
-
readonly xgboost_regressor: StructType<{
|
|
1446
|
-
readonly data: BlobType;
|
|
1447
|
-
readonly n_features: IntegerType;
|
|
1448
|
-
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1449
|
-
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1450
|
-
}>;
|
|
1451
|
-
readonly xgboost_classifier: StructType<{
|
|
1452
|
-
readonly data: BlobType;
|
|
1453
|
-
readonly n_features: IntegerType;
|
|
1454
|
-
readonly n_classes: IntegerType;
|
|
1455
|
-
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1456
|
-
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1457
|
-
}>;
|
|
1458
|
-
readonly xgboost_quantile: StructType<{
|
|
1459
|
-
readonly data: BlobType;
|
|
1460
|
-
readonly quantiles: VectorType<FloatType>;
|
|
1461
|
-
readonly n_features: IntegerType;
|
|
1462
|
-
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1463
|
-
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1464
|
-
}>;
|
|
1465
|
-
}>;
|
|
1466
|
-
readonly lightgbm: VariantType<{
|
|
1467
|
-
readonly lightgbm_regressor: StructType<{
|
|
1468
|
-
readonly data: BlobType;
|
|
1469
|
-
readonly n_features: IntegerType;
|
|
1470
|
-
}>;
|
|
1471
|
-
readonly lightgbm_classifier: StructType<{
|
|
1472
|
-
readonly data: BlobType;
|
|
1473
|
-
readonly n_features: IntegerType;
|
|
1474
|
-
readonly n_classes: IntegerType;
|
|
1475
|
-
}>;
|
|
1476
|
-
}>;
|
|
1477
|
-
readonly histogram: BlobType;
|
|
1478
|
-
}>;
|
|
1479
|
-
readonly n_features: IntegerType;
|
|
1480
|
-
readonly confidence_level: FloatType;
|
|
1481
|
-
}>;
|
|
1482
|
-
/** MAPIE cross conformal regressor with XGBoost base */
|
|
1483
|
-
readonly mapie_cross: StructType<{
|
|
1484
|
-
readonly data: VariantType<{
|
|
1485
|
-
readonly xgboost: VariantType<{
|
|
1486
|
-
readonly xgboost_regressor: StructType<{
|
|
1487
|
-
readonly data: BlobType;
|
|
1488
|
-
readonly n_features: IntegerType;
|
|
1489
|
-
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1490
|
-
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1491
|
-
}>;
|
|
1492
|
-
readonly xgboost_classifier: StructType<{
|
|
1493
|
-
readonly data: BlobType;
|
|
1494
|
-
readonly n_features: IntegerType;
|
|
1495
|
-
readonly n_classes: IntegerType;
|
|
1496
|
-
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1497
|
-
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1498
|
-
}>;
|
|
1499
|
-
readonly xgboost_quantile: StructType<{
|
|
1500
|
-
readonly data: BlobType;
|
|
1501
|
-
readonly quantiles: VectorType<FloatType>;
|
|
1502
|
-
readonly n_features: IntegerType;
|
|
1503
|
-
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1504
|
-
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1505
|
-
}>;
|
|
1506
|
-
}>;
|
|
1507
|
-
readonly lightgbm: VariantType<{
|
|
1508
|
-
readonly lightgbm_regressor: StructType<{
|
|
1509
|
-
readonly data: BlobType;
|
|
1510
|
-
readonly n_features: IntegerType;
|
|
1511
|
-
}>;
|
|
1512
|
-
readonly lightgbm_classifier: StructType<{
|
|
1513
|
-
readonly data: BlobType;
|
|
1514
|
-
readonly n_features: IntegerType;
|
|
1515
|
-
readonly n_classes: IntegerType;
|
|
1516
|
-
}>;
|
|
1517
|
-
}>;
|
|
1518
|
-
readonly histogram: BlobType;
|
|
1519
|
-
}>;
|
|
1520
|
-
readonly n_features: IntegerType;
|
|
1521
|
-
readonly confidence_level: FloatType;
|
|
1522
|
-
}>;
|
|
1523
|
-
/** MAPIE CQR conformal regressor with XGBoost base */
|
|
1524
|
-
readonly mapie_cqr: StructType<{
|
|
1525
|
-
readonly data: VariantType<{
|
|
1526
|
-
readonly xgboost: VariantType<{
|
|
1527
|
-
readonly xgboost_regressor: StructType<{
|
|
1528
|
-
readonly data: BlobType;
|
|
1529
|
-
readonly n_features: IntegerType;
|
|
1530
|
-
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1531
|
-
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1532
|
-
}>;
|
|
1533
|
-
readonly xgboost_classifier: StructType<{
|
|
1534
|
-
readonly data: BlobType;
|
|
1535
|
-
readonly n_features: IntegerType;
|
|
1536
|
-
readonly n_classes: IntegerType;
|
|
1537
|
-
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1538
|
-
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1539
|
-
}>;
|
|
1540
|
-
readonly xgboost_quantile: StructType<{
|
|
1541
|
-
readonly data: BlobType;
|
|
1542
|
-
readonly quantiles: VectorType<FloatType>;
|
|
1543
|
-
readonly n_features: IntegerType;
|
|
1544
|
-
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1545
|
-
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1546
|
-
}>;
|
|
1547
|
-
}>;
|
|
1548
|
-
readonly lightgbm: VariantType<{
|
|
1549
|
-
readonly lightgbm_regressor: StructType<{
|
|
1550
|
-
readonly data: BlobType;
|
|
1551
|
-
readonly n_features: IntegerType;
|
|
1552
|
-
}>;
|
|
1553
|
-
readonly lightgbm_classifier: StructType<{
|
|
1554
|
-
readonly data: BlobType;
|
|
1555
|
-
readonly n_features: IntegerType;
|
|
1556
|
-
readonly n_classes: IntegerType;
|
|
1557
|
-
}>;
|
|
1558
|
-
}>;
|
|
1559
|
-
readonly histogram: BlobType;
|
|
1560
|
-
}>;
|
|
1561
|
-
readonly n_features: IntegerType;
|
|
1562
|
-
readonly confidence_level: FloatType;
|
|
1563
|
-
}>;
|
|
1564
|
-
/** MAPIE conformal classifier with XGBoost base */
|
|
1565
|
-
readonly mapie_classifier: StructType<{
|
|
1566
|
-
readonly data: VariantType<{
|
|
1567
|
-
readonly xgboost: VariantType<{
|
|
1568
|
-
readonly xgboost_regressor: StructType<{
|
|
1569
|
-
readonly data: BlobType;
|
|
1570
|
-
readonly n_features: IntegerType;
|
|
1571
|
-
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1572
|
-
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1573
|
-
}>;
|
|
1574
|
-
readonly xgboost_classifier: StructType<{
|
|
1575
|
-
readonly data: BlobType;
|
|
1576
|
-
readonly n_features: IntegerType;
|
|
1577
|
-
readonly n_classes: IntegerType;
|
|
1578
|
-
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1579
|
-
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1580
|
-
}>;
|
|
1581
|
-
readonly xgboost_quantile: StructType<{
|
|
1582
|
-
readonly data: BlobType;
|
|
1583
|
-
readonly quantiles: VectorType<FloatType>;
|
|
1584
|
-
readonly n_features: IntegerType;
|
|
1585
|
-
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1586
|
-
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1587
|
-
}>;
|
|
1588
|
-
}>;
|
|
1589
|
-
readonly lightgbm: VariantType<{
|
|
1590
|
-
readonly lightgbm_regressor: StructType<{
|
|
1591
|
-
readonly data: BlobType;
|
|
1592
|
-
readonly n_features: IntegerType;
|
|
1593
|
-
}>;
|
|
1594
|
-
readonly lightgbm_classifier: StructType<{
|
|
1595
|
-
readonly data: BlobType;
|
|
1596
|
-
readonly n_features: IntegerType;
|
|
1597
|
-
readonly n_classes: IntegerType;
|
|
1598
|
-
}>;
|
|
1599
|
-
}>;
|
|
1600
|
-
readonly histogram: BlobType;
|
|
1601
|
-
}>;
|
|
1997
|
+
}>;
|
|
1998
|
+
/** Feature names */
|
|
1999
|
+
readonly feature_names: ArrayType<StringType>;
|
|
2000
|
+
}>;
|
|
2001
|
+
/** Feature importance type */
|
|
2002
|
+
readonly FeatureImportanceType: StructType<{
|
|
2003
|
+
/** Feature names */
|
|
2004
|
+
readonly feature_names: ArrayType<StringType>;
|
|
2005
|
+
/** Mean absolute SHAP value for each feature */
|
|
2006
|
+
readonly importances: VectorType<FloatType>;
|
|
2007
|
+
/** Standard deviation of absolute SHAP values */
|
|
2008
|
+
readonly std: OptionType<VectorType<FloatType>>;
|
|
2009
|
+
}>;
|
|
2010
|
+
/** SHAP explainer model blob type */
|
|
2011
|
+
readonly ShapModelBlobType: VariantType<{
|
|
2012
|
+
/** SHAP TreeExplainer for tree-based models */
|
|
2013
|
+
readonly shap_tree_explainer: StructType<{
|
|
2014
|
+
/** Cloudpickle serialized explainer */
|
|
2015
|
+
readonly data: BlobType;
|
|
2016
|
+
/** Number of input features */
|
|
2017
|
+
readonly n_features: IntegerType;
|
|
2018
|
+
}>;
|
|
2019
|
+
/** SHAP KernelExplainer for any model */
|
|
2020
|
+
readonly shap_kernel_explainer: StructType<{
|
|
2021
|
+
/** Cloudpickle serialized explainer */
|
|
2022
|
+
readonly data: BlobType;
|
|
2023
|
+
/** Number of input features */
|
|
1602
2024
|
readonly n_features: IntegerType;
|
|
1603
|
-
readonly n_classes: IntegerType;
|
|
1604
|
-
readonly classes: VectorType<IntegerType>;
|
|
1605
|
-
readonly confidence_level: FloatType;
|
|
1606
2025
|
}>;
|
|
1607
2026
|
}>;
|
|
1608
|
-
/**
|
|
1609
|
-
readonly
|
|
2027
|
+
/** Tree model blob type for input */
|
|
2028
|
+
readonly TreeModelBlobType: VariantType<{
|
|
2029
|
+
/** XGBoost regressor */
|
|
1610
2030
|
readonly xgboost_regressor: StructType<{
|
|
1611
2031
|
readonly data: BlobType;
|
|
1612
2032
|
readonly n_features: IntegerType;
|
|
1613
2033
|
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1614
2034
|
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1615
2035
|
}>;
|
|
2036
|
+
/** XGBoost classifier */
|
|
1616
2037
|
readonly xgboost_classifier: StructType<{
|
|
1617
2038
|
readonly data: BlobType;
|
|
1618
2039
|
readonly n_features: IntegerType;
|
|
@@ -1620,6 +2041,7 @@ export declare const ShapTypes: {
|
|
|
1620
2041
|
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1621
2042
|
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1622
2043
|
}>;
|
|
2044
|
+
/** XGBoost quantile regressor (uses median quantile for explanations) */
|
|
1623
2045
|
readonly xgboost_quantile: StructType<{
|
|
1624
2046
|
readonly data: BlobType;
|
|
1625
2047
|
readonly quantiles: VectorType<FloatType>;
|
|
@@ -1627,65 +2049,7 @@ export declare const ShapTypes: {
|
|
|
1627
2049
|
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1628
2050
|
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1629
2051
|
}>;
|
|
1630
|
-
|
|
1631
|
-
readonly data: BlobType;
|
|
1632
|
-
readonly n_features: IntegerType;
|
|
1633
|
-
}>;
|
|
1634
|
-
readonly lightgbm_classifier: StructType<{
|
|
1635
|
-
readonly data: BlobType;
|
|
1636
|
-
readonly n_features: IntegerType;
|
|
1637
|
-
readonly n_classes: IntegerType;
|
|
1638
|
-
}>;
|
|
1639
|
-
readonly ngboost_regressor: StructType<{
|
|
1640
|
-
readonly data: BlobType;
|
|
1641
|
-
readonly distribution: VariantType<{
|
|
1642
|
-
readonly normal: NullType;
|
|
1643
|
-
readonly lognormal: NullType;
|
|
1644
|
-
}>;
|
|
1645
|
-
readonly n_features: IntegerType;
|
|
1646
|
-
}>;
|
|
1647
|
-
readonly gp_regressor: StructType<{
|
|
1648
|
-
readonly data: BlobType;
|
|
1649
|
-
readonly n_features: IntegerType;
|
|
1650
|
-
readonly kernel_type: StringType;
|
|
1651
|
-
}>;
|
|
1652
|
-
readonly torch_mlp: StructType<{
|
|
1653
|
-
readonly data: BlobType;
|
|
1654
|
-
readonly n_features: IntegerType;
|
|
1655
|
-
readonly hidden_layers: ArrayType<IntegerType>;
|
|
1656
|
-
readonly output_dim: IntegerType;
|
|
1657
|
-
}>;
|
|
1658
|
-
readonly standard_scaler: StructType<{
|
|
1659
|
-
readonly onnx: BlobType;
|
|
1660
|
-
readonly n_features: IntegerType;
|
|
1661
|
-
}>;
|
|
1662
|
-
readonly min_max_scaler: StructType<{
|
|
1663
|
-
readonly onnx: BlobType;
|
|
1664
|
-
readonly n_features: IntegerType;
|
|
1665
|
-
}>;
|
|
1666
|
-
readonly robust_scaler: StructType<{
|
|
1667
|
-
readonly onnx: BlobType;
|
|
1668
|
-
readonly n_features: IntegerType;
|
|
1669
|
-
}>;
|
|
1670
|
-
readonly label_encoder: StructType<{
|
|
1671
|
-
readonly data: BlobType;
|
|
1672
|
-
readonly n_classes: IntegerType;
|
|
1673
|
-
}>;
|
|
1674
|
-
readonly ordinal_encoder: StructType<{
|
|
1675
|
-
readonly data: BlobType;
|
|
1676
|
-
readonly n_features: IntegerType;
|
|
1677
|
-
}>;
|
|
1678
|
-
readonly gaussian_mixture: StructType<{
|
|
1679
|
-
readonly data: BlobType;
|
|
1680
|
-
readonly n_features: IntegerType;
|
|
1681
|
-
readonly n_components: IntegerType;
|
|
1682
|
-
}>;
|
|
1683
|
-
readonly regressor_chain: StructType<{
|
|
1684
|
-
readonly data: BlobType;
|
|
1685
|
-
readonly n_features: IntegerType;
|
|
1686
|
-
readonly n_targets: IntegerType;
|
|
1687
|
-
readonly base_estimator_type: StringType;
|
|
1688
|
-
}>;
|
|
2052
|
+
/** MAPIE split conformal regressor with XGBoost base */
|
|
1689
2053
|
readonly mapie_split: StructType<{
|
|
1690
2054
|
readonly data: VariantType<{
|
|
1691
2055
|
readonly xgboost: VariantType<{
|
|
@@ -1726,6 +2090,7 @@ export declare const ShapTypes: {
|
|
|
1726
2090
|
readonly n_features: IntegerType;
|
|
1727
2091
|
readonly confidence_level: FloatType;
|
|
1728
2092
|
}>;
|
|
2093
|
+
/** MAPIE cross conformal regressor with XGBoost base */
|
|
1729
2094
|
readonly mapie_cross: StructType<{
|
|
1730
2095
|
readonly data: VariantType<{
|
|
1731
2096
|
readonly xgboost: VariantType<{
|
|
@@ -1766,6 +2131,7 @@ export declare const ShapTypes: {
|
|
|
1766
2131
|
readonly n_features: IntegerType;
|
|
1767
2132
|
readonly confidence_level: FloatType;
|
|
1768
2133
|
}>;
|
|
2134
|
+
/** MAPIE CQR conformal regressor with XGBoost base */
|
|
1769
2135
|
readonly mapie_cqr: StructType<{
|
|
1770
2136
|
readonly data: VariantType<{
|
|
1771
2137
|
readonly xgboost: VariantType<{
|
|
@@ -1806,6 +2172,7 @@ export declare const ShapTypes: {
|
|
|
1806
2172
|
readonly n_features: IntegerType;
|
|
1807
2173
|
readonly confidence_level: FloatType;
|
|
1808
2174
|
}>;
|
|
2175
|
+
/** MAPIE conformal classifier with XGBoost base */
|
|
1809
2176
|
readonly mapie_classifier: StructType<{
|
|
1810
2177
|
readonly data: VariantType<{
|
|
1811
2178
|
readonly xgboost: VariantType<{
|
|
@@ -1848,81 +2215,483 @@ export declare const ShapTypes: {
|
|
|
1848
2215
|
readonly classes: VectorType<IntegerType>;
|
|
1849
2216
|
readonly confidence_level: FloatType;
|
|
1850
2217
|
}>;
|
|
1851
|
-
|
|
2218
|
+
}>;
|
|
2219
|
+
/** TreeExplainer configuration type (path_dependent | interventional) */
|
|
2220
|
+
readonly TreeExplainerConfigType: VariantType<{
|
|
2221
|
+
/** Path-dependent mode: uses tree structure only (default SHAP behavior) */
|
|
2222
|
+
readonly path_dependent: StructType<{
|
|
2223
|
+
/** Tree-based model blob */
|
|
2224
|
+
readonly model: VariantType<{
|
|
2225
|
+
/** XGBoost regressor */
|
|
2226
|
+
readonly xgboost_regressor: StructType<{
|
|
2227
|
+
readonly data: BlobType;
|
|
2228
|
+
readonly n_features: IntegerType;
|
|
2229
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2230
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2231
|
+
}>;
|
|
2232
|
+
/** XGBoost classifier */
|
|
2233
|
+
readonly xgboost_classifier: StructType<{
|
|
2234
|
+
readonly data: BlobType;
|
|
2235
|
+
readonly n_features: IntegerType;
|
|
2236
|
+
readonly n_classes: IntegerType;
|
|
2237
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2238
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2239
|
+
}>;
|
|
2240
|
+
/** XGBoost quantile regressor (uses median quantile for explanations) */
|
|
2241
|
+
readonly xgboost_quantile: StructType<{
|
|
2242
|
+
readonly data: BlobType;
|
|
2243
|
+
readonly quantiles: VectorType<FloatType>;
|
|
2244
|
+
readonly n_features: IntegerType;
|
|
2245
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2246
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2247
|
+
}>;
|
|
2248
|
+
/** MAPIE split conformal regressor with XGBoost base */
|
|
2249
|
+
readonly mapie_split: StructType<{
|
|
2250
|
+
readonly data: VariantType<{
|
|
2251
|
+
readonly xgboost: VariantType<{
|
|
2252
|
+
readonly xgboost_regressor: StructType<{
|
|
2253
|
+
readonly data: BlobType;
|
|
2254
|
+
readonly n_features: IntegerType;
|
|
2255
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2256
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2257
|
+
}>;
|
|
2258
|
+
readonly xgboost_classifier: StructType<{
|
|
2259
|
+
readonly data: BlobType;
|
|
2260
|
+
readonly n_features: IntegerType;
|
|
2261
|
+
readonly n_classes: IntegerType;
|
|
2262
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2263
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2264
|
+
}>;
|
|
2265
|
+
readonly xgboost_quantile: StructType<{
|
|
2266
|
+
readonly data: BlobType;
|
|
2267
|
+
readonly quantiles: VectorType<FloatType>;
|
|
2268
|
+
readonly n_features: IntegerType;
|
|
2269
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2270
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2271
|
+
}>;
|
|
2272
|
+
}>;
|
|
2273
|
+
readonly lightgbm: VariantType<{
|
|
2274
|
+
readonly lightgbm_regressor: StructType<{
|
|
2275
|
+
readonly data: BlobType;
|
|
2276
|
+
readonly n_features: IntegerType;
|
|
2277
|
+
}>;
|
|
2278
|
+
readonly lightgbm_classifier: StructType<{
|
|
2279
|
+
readonly data: BlobType;
|
|
2280
|
+
readonly n_features: IntegerType;
|
|
2281
|
+
readonly n_classes: IntegerType;
|
|
2282
|
+
}>;
|
|
2283
|
+
}>;
|
|
2284
|
+
readonly histogram: BlobType;
|
|
2285
|
+
}>;
|
|
2286
|
+
readonly n_features: IntegerType;
|
|
2287
|
+
readonly confidence_level: FloatType;
|
|
2288
|
+
}>;
|
|
2289
|
+
/** MAPIE cross conformal regressor with XGBoost base */
|
|
2290
|
+
readonly mapie_cross: StructType<{
|
|
2291
|
+
readonly data: VariantType<{
|
|
2292
|
+
readonly xgboost: VariantType<{
|
|
2293
|
+
readonly xgboost_regressor: StructType<{
|
|
2294
|
+
readonly data: BlobType;
|
|
2295
|
+
readonly n_features: IntegerType;
|
|
2296
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2297
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2298
|
+
}>;
|
|
2299
|
+
readonly xgboost_classifier: StructType<{
|
|
2300
|
+
readonly data: BlobType;
|
|
2301
|
+
readonly n_features: IntegerType;
|
|
2302
|
+
readonly n_classes: IntegerType;
|
|
2303
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2304
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2305
|
+
}>;
|
|
2306
|
+
readonly xgboost_quantile: StructType<{
|
|
2307
|
+
readonly data: BlobType;
|
|
2308
|
+
readonly quantiles: VectorType<FloatType>;
|
|
2309
|
+
readonly n_features: IntegerType;
|
|
2310
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2311
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2312
|
+
}>;
|
|
2313
|
+
}>;
|
|
2314
|
+
readonly lightgbm: VariantType<{
|
|
2315
|
+
readonly lightgbm_regressor: StructType<{
|
|
2316
|
+
readonly data: BlobType;
|
|
2317
|
+
readonly n_features: IntegerType;
|
|
2318
|
+
}>;
|
|
2319
|
+
readonly lightgbm_classifier: StructType<{
|
|
2320
|
+
readonly data: BlobType;
|
|
2321
|
+
readonly n_features: IntegerType;
|
|
2322
|
+
readonly n_classes: IntegerType;
|
|
2323
|
+
}>;
|
|
2324
|
+
}>;
|
|
2325
|
+
readonly histogram: BlobType;
|
|
2326
|
+
}>;
|
|
2327
|
+
readonly n_features: IntegerType;
|
|
2328
|
+
readonly confidence_level: FloatType;
|
|
2329
|
+
}>;
|
|
2330
|
+
/** MAPIE CQR conformal regressor with XGBoost base */
|
|
2331
|
+
readonly mapie_cqr: StructType<{
|
|
2332
|
+
readonly data: VariantType<{
|
|
2333
|
+
readonly xgboost: VariantType<{
|
|
2334
|
+
readonly xgboost_regressor: StructType<{
|
|
2335
|
+
readonly data: BlobType;
|
|
2336
|
+
readonly n_features: IntegerType;
|
|
2337
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2338
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2339
|
+
}>;
|
|
2340
|
+
readonly xgboost_classifier: StructType<{
|
|
2341
|
+
readonly data: BlobType;
|
|
2342
|
+
readonly n_features: IntegerType;
|
|
2343
|
+
readonly n_classes: IntegerType;
|
|
2344
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2345
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2346
|
+
}>;
|
|
2347
|
+
readonly xgboost_quantile: StructType<{
|
|
2348
|
+
readonly data: BlobType;
|
|
2349
|
+
readonly quantiles: VectorType<FloatType>;
|
|
2350
|
+
readonly n_features: IntegerType;
|
|
2351
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2352
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2353
|
+
}>;
|
|
2354
|
+
}>;
|
|
2355
|
+
readonly lightgbm: VariantType<{
|
|
2356
|
+
readonly lightgbm_regressor: StructType<{
|
|
2357
|
+
readonly data: BlobType;
|
|
2358
|
+
readonly n_features: IntegerType;
|
|
2359
|
+
}>;
|
|
2360
|
+
readonly lightgbm_classifier: StructType<{
|
|
2361
|
+
readonly data: BlobType;
|
|
2362
|
+
readonly n_features: IntegerType;
|
|
2363
|
+
readonly n_classes: IntegerType;
|
|
2364
|
+
}>;
|
|
2365
|
+
}>;
|
|
2366
|
+
readonly histogram: BlobType;
|
|
2367
|
+
}>;
|
|
2368
|
+
readonly n_features: IntegerType;
|
|
2369
|
+
readonly confidence_level: FloatType;
|
|
2370
|
+
}>;
|
|
2371
|
+
/** MAPIE conformal classifier with XGBoost base */
|
|
2372
|
+
readonly mapie_classifier: StructType<{
|
|
2373
|
+
readonly data: VariantType<{
|
|
2374
|
+
readonly xgboost: VariantType<{
|
|
2375
|
+
readonly xgboost_regressor: StructType<{
|
|
2376
|
+
readonly data: BlobType;
|
|
2377
|
+
readonly n_features: IntegerType;
|
|
2378
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2379
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2380
|
+
}>;
|
|
2381
|
+
readonly xgboost_classifier: StructType<{
|
|
2382
|
+
readonly data: BlobType;
|
|
2383
|
+
readonly n_features: IntegerType;
|
|
2384
|
+
readonly n_classes: IntegerType;
|
|
2385
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2386
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2387
|
+
}>;
|
|
2388
|
+
readonly xgboost_quantile: StructType<{
|
|
2389
|
+
readonly data: BlobType;
|
|
2390
|
+
readonly quantiles: VectorType<FloatType>;
|
|
2391
|
+
readonly n_features: IntegerType;
|
|
2392
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2393
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2394
|
+
}>;
|
|
2395
|
+
}>;
|
|
2396
|
+
readonly lightgbm: VariantType<{
|
|
2397
|
+
readonly lightgbm_regressor: StructType<{
|
|
2398
|
+
readonly data: BlobType;
|
|
2399
|
+
readonly n_features: IntegerType;
|
|
2400
|
+
}>;
|
|
2401
|
+
readonly lightgbm_classifier: StructType<{
|
|
2402
|
+
readonly data: BlobType;
|
|
2403
|
+
readonly n_features: IntegerType;
|
|
2404
|
+
readonly n_classes: IntegerType;
|
|
2405
|
+
}>;
|
|
2406
|
+
}>;
|
|
2407
|
+
readonly histogram: BlobType;
|
|
2408
|
+
}>;
|
|
2409
|
+
readonly n_features: IntegerType;
|
|
2410
|
+
readonly n_classes: IntegerType;
|
|
2411
|
+
readonly classes: VectorType<IntegerType>;
|
|
2412
|
+
readonly confidence_level: FloatType;
|
|
2413
|
+
}>;
|
|
2414
|
+
}>;
|
|
2415
|
+
}>;
|
|
2416
|
+
/** Interventional mode: uses background data to break feature correlations */
|
|
2417
|
+
readonly interventional: StructType<{
|
|
2418
|
+
/** Tree-based model blob */
|
|
2419
|
+
readonly model: VariantType<{
|
|
2420
|
+
/** XGBoost regressor */
|
|
2421
|
+
readonly xgboost_regressor: StructType<{
|
|
2422
|
+
readonly data: BlobType;
|
|
2423
|
+
readonly n_features: IntegerType;
|
|
2424
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2425
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2426
|
+
}>;
|
|
2427
|
+
/** XGBoost classifier */
|
|
2428
|
+
readonly xgboost_classifier: StructType<{
|
|
2429
|
+
readonly data: BlobType;
|
|
2430
|
+
readonly n_features: IntegerType;
|
|
2431
|
+
readonly n_classes: IntegerType;
|
|
2432
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2433
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2434
|
+
}>;
|
|
2435
|
+
/** XGBoost quantile regressor (uses median quantile for explanations) */
|
|
2436
|
+
readonly xgboost_quantile: StructType<{
|
|
2437
|
+
readonly data: BlobType;
|
|
2438
|
+
readonly quantiles: VectorType<FloatType>;
|
|
2439
|
+
readonly n_features: IntegerType;
|
|
2440
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2441
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2442
|
+
}>;
|
|
2443
|
+
/** MAPIE split conformal regressor with XGBoost base */
|
|
2444
|
+
readonly mapie_split: StructType<{
|
|
2445
|
+
readonly data: VariantType<{
|
|
2446
|
+
readonly xgboost: VariantType<{
|
|
2447
|
+
readonly xgboost_regressor: StructType<{
|
|
2448
|
+
readonly data: BlobType;
|
|
2449
|
+
readonly n_features: IntegerType;
|
|
2450
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2451
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2452
|
+
}>;
|
|
2453
|
+
readonly xgboost_classifier: StructType<{
|
|
2454
|
+
readonly data: BlobType;
|
|
2455
|
+
readonly n_features: IntegerType;
|
|
2456
|
+
readonly n_classes: IntegerType;
|
|
2457
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2458
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2459
|
+
}>;
|
|
2460
|
+
readonly xgboost_quantile: StructType<{
|
|
2461
|
+
readonly data: BlobType;
|
|
2462
|
+
readonly quantiles: VectorType<FloatType>;
|
|
2463
|
+
readonly n_features: IntegerType;
|
|
2464
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2465
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2466
|
+
}>;
|
|
2467
|
+
}>;
|
|
2468
|
+
readonly lightgbm: VariantType<{
|
|
2469
|
+
readonly lightgbm_regressor: StructType<{
|
|
2470
|
+
readonly data: BlobType;
|
|
2471
|
+
readonly n_features: IntegerType;
|
|
2472
|
+
}>;
|
|
2473
|
+
readonly lightgbm_classifier: StructType<{
|
|
2474
|
+
readonly data: BlobType;
|
|
2475
|
+
readonly n_features: IntegerType;
|
|
2476
|
+
readonly n_classes: IntegerType;
|
|
2477
|
+
}>;
|
|
2478
|
+
}>;
|
|
2479
|
+
readonly histogram: BlobType;
|
|
2480
|
+
}>;
|
|
2481
|
+
readonly n_features: IntegerType;
|
|
2482
|
+
readonly confidence_level: FloatType;
|
|
2483
|
+
}>;
|
|
2484
|
+
/** MAPIE cross conformal regressor with XGBoost base */
|
|
2485
|
+
readonly mapie_cross: StructType<{
|
|
2486
|
+
readonly data: VariantType<{
|
|
2487
|
+
readonly xgboost: VariantType<{
|
|
2488
|
+
readonly xgboost_regressor: StructType<{
|
|
2489
|
+
readonly data: BlobType;
|
|
2490
|
+
readonly n_features: IntegerType;
|
|
2491
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2492
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2493
|
+
}>;
|
|
2494
|
+
readonly xgboost_classifier: StructType<{
|
|
2495
|
+
readonly data: BlobType;
|
|
2496
|
+
readonly n_features: IntegerType;
|
|
2497
|
+
readonly n_classes: IntegerType;
|
|
2498
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2499
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2500
|
+
}>;
|
|
2501
|
+
readonly xgboost_quantile: StructType<{
|
|
2502
|
+
readonly data: BlobType;
|
|
2503
|
+
readonly quantiles: VectorType<FloatType>;
|
|
2504
|
+
readonly n_features: IntegerType;
|
|
2505
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2506
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2507
|
+
}>;
|
|
2508
|
+
}>;
|
|
2509
|
+
readonly lightgbm: VariantType<{
|
|
2510
|
+
readonly lightgbm_regressor: StructType<{
|
|
2511
|
+
readonly data: BlobType;
|
|
2512
|
+
readonly n_features: IntegerType;
|
|
2513
|
+
}>;
|
|
2514
|
+
readonly lightgbm_classifier: StructType<{
|
|
2515
|
+
readonly data: BlobType;
|
|
2516
|
+
readonly n_features: IntegerType;
|
|
2517
|
+
readonly n_classes: IntegerType;
|
|
2518
|
+
}>;
|
|
2519
|
+
}>;
|
|
2520
|
+
readonly histogram: BlobType;
|
|
2521
|
+
}>;
|
|
2522
|
+
readonly n_features: IntegerType;
|
|
2523
|
+
readonly confidence_level: FloatType;
|
|
2524
|
+
}>;
|
|
2525
|
+
/** MAPIE CQR conformal regressor with XGBoost base */
|
|
2526
|
+
readonly mapie_cqr: StructType<{
|
|
2527
|
+
readonly data: VariantType<{
|
|
2528
|
+
readonly xgboost: VariantType<{
|
|
2529
|
+
readonly xgboost_regressor: StructType<{
|
|
2530
|
+
readonly data: BlobType;
|
|
2531
|
+
readonly n_features: IntegerType;
|
|
2532
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2533
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2534
|
+
}>;
|
|
2535
|
+
readonly xgboost_classifier: StructType<{
|
|
2536
|
+
readonly data: BlobType;
|
|
2537
|
+
readonly n_features: IntegerType;
|
|
2538
|
+
readonly n_classes: IntegerType;
|
|
2539
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2540
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2541
|
+
}>;
|
|
2542
|
+
readonly xgboost_quantile: StructType<{
|
|
2543
|
+
readonly data: BlobType;
|
|
2544
|
+
readonly quantiles: VectorType<FloatType>;
|
|
2545
|
+
readonly n_features: IntegerType;
|
|
2546
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2547
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2548
|
+
}>;
|
|
2549
|
+
}>;
|
|
2550
|
+
readonly lightgbm: VariantType<{
|
|
2551
|
+
readonly lightgbm_regressor: StructType<{
|
|
2552
|
+
readonly data: BlobType;
|
|
2553
|
+
readonly n_features: IntegerType;
|
|
2554
|
+
}>;
|
|
2555
|
+
readonly lightgbm_classifier: StructType<{
|
|
2556
|
+
readonly data: BlobType;
|
|
2557
|
+
readonly n_features: IntegerType;
|
|
2558
|
+
readonly n_classes: IntegerType;
|
|
2559
|
+
}>;
|
|
2560
|
+
}>;
|
|
2561
|
+
readonly histogram: BlobType;
|
|
2562
|
+
}>;
|
|
2563
|
+
readonly n_features: IntegerType;
|
|
2564
|
+
readonly confidence_level: FloatType;
|
|
2565
|
+
}>;
|
|
2566
|
+
/** MAPIE conformal classifier with XGBoost base */
|
|
2567
|
+
readonly mapie_classifier: StructType<{
|
|
2568
|
+
readonly data: VariantType<{
|
|
2569
|
+
readonly xgboost: VariantType<{
|
|
2570
|
+
readonly xgboost_regressor: StructType<{
|
|
2571
|
+
readonly data: BlobType;
|
|
2572
|
+
readonly n_features: IntegerType;
|
|
2573
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2574
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2575
|
+
}>;
|
|
2576
|
+
readonly xgboost_classifier: StructType<{
|
|
2577
|
+
readonly data: BlobType;
|
|
2578
|
+
readonly n_features: IntegerType;
|
|
2579
|
+
readonly n_classes: IntegerType;
|
|
2580
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2581
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2582
|
+
}>;
|
|
2583
|
+
readonly xgboost_quantile: StructType<{
|
|
2584
|
+
readonly data: BlobType;
|
|
2585
|
+
readonly quantiles: VectorType<FloatType>;
|
|
2586
|
+
readonly n_features: IntegerType;
|
|
2587
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2588
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2589
|
+
}>;
|
|
2590
|
+
}>;
|
|
2591
|
+
readonly lightgbm: VariantType<{
|
|
2592
|
+
readonly lightgbm_regressor: StructType<{
|
|
2593
|
+
readonly data: BlobType;
|
|
2594
|
+
readonly n_features: IntegerType;
|
|
2595
|
+
}>;
|
|
2596
|
+
readonly lightgbm_classifier: StructType<{
|
|
2597
|
+
readonly data: BlobType;
|
|
2598
|
+
readonly n_features: IntegerType;
|
|
2599
|
+
readonly n_classes: IntegerType;
|
|
2600
|
+
}>;
|
|
2601
|
+
}>;
|
|
2602
|
+
readonly histogram: BlobType;
|
|
2603
|
+
}>;
|
|
2604
|
+
readonly n_features: IntegerType;
|
|
2605
|
+
readonly n_classes: IntegerType;
|
|
2606
|
+
readonly classes: VectorType<IntegerType>;
|
|
2607
|
+
readonly confidence_level: FloatType;
|
|
2608
|
+
}>;
|
|
2609
|
+
}>;
|
|
2610
|
+
/** Background data for computing interventional expectations */
|
|
2611
|
+
readonly background: MatrixType<FloatType>;
|
|
2612
|
+
}>;
|
|
2613
|
+
}>;
|
|
2614
|
+
/** Any model blob type for kernel explainer */
|
|
2615
|
+
readonly AnyModelBlobType: VariantType<{
|
|
2616
|
+
readonly xgboost_regressor: StructType<{
|
|
1852
2617
|
readonly data: BlobType;
|
|
1853
2618
|
readonly n_features: IntegerType;
|
|
2619
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2620
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1854
2621
|
}>;
|
|
1855
|
-
readonly
|
|
2622
|
+
readonly xgboost_classifier: StructType<{
|
|
2623
|
+
readonly data: BlobType;
|
|
2624
|
+
readonly n_features: IntegerType;
|
|
2625
|
+
readonly n_classes: IntegerType;
|
|
2626
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2627
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2628
|
+
}>;
|
|
2629
|
+
readonly xgboost_quantile: StructType<{
|
|
1856
2630
|
readonly data: BlobType;
|
|
2631
|
+
readonly quantiles: VectorType<FloatType>;
|
|
1857
2632
|
readonly n_features: IntegerType;
|
|
2633
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2634
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1858
2635
|
}>;
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
* const result = $.let(Shap.computeValues(explainer, X, feature_names));
|
|
1878
|
-
*
|
|
1879
|
-
* return $.return(result);
|
|
1880
|
-
* });
|
|
1881
|
-
* ```
|
|
1882
|
-
*/
|
|
1883
|
-
export declare const Shap: {
|
|
1884
|
-
/**
|
|
1885
|
-
* Create a SHAP TreeExplainer for tree-based models (XGBoost, LightGBM).
|
|
1886
|
-
*
|
|
1887
|
-
* @example
|
|
1888
|
-
* ```ts
|
|
1889
|
-
* import { East, FloatType, MatrixType } from "@elaraai/east";
|
|
1890
|
-
* import { Shap, XGBoost } from "@elaraai/east-py-datascience";
|
|
1891
|
-
*
|
|
1892
|
-
* const explain = East.function(
|
|
1893
|
-
* [XGBoost.Types.ModelBlobType],
|
|
1894
|
-
* Shap.Types.ShapModelBlobType,
|
|
1895
|
-
* ($, model) => {
|
|
1896
|
-
* return $.return(Shap.treeExplainerCreate(model));
|
|
1897
|
-
* }
|
|
1898
|
-
* );
|
|
1899
|
-
* ```
|
|
1900
|
-
*/
|
|
1901
|
-
readonly treeExplainerCreate: import("@elaraai/east").PlatformDefinition<[VariantType<{
|
|
1902
|
-
/** XGBoost regressor */
|
|
1903
|
-
readonly xgboost_regressor: StructType<{
|
|
2636
|
+
readonly lightgbm_regressor: StructType<{
|
|
2637
|
+
readonly data: BlobType;
|
|
2638
|
+
readonly n_features: IntegerType;
|
|
2639
|
+
}>;
|
|
2640
|
+
readonly lightgbm_classifier: StructType<{
|
|
2641
|
+
readonly data: BlobType;
|
|
2642
|
+
readonly n_features: IntegerType;
|
|
2643
|
+
readonly n_classes: IntegerType;
|
|
2644
|
+
}>;
|
|
2645
|
+
readonly ngboost_regressor: StructType<{
|
|
2646
|
+
readonly data: BlobType;
|
|
2647
|
+
readonly distribution: VariantType<{
|
|
2648
|
+
readonly normal: NullType;
|
|
2649
|
+
readonly lognormal: NullType;
|
|
2650
|
+
}>;
|
|
2651
|
+
readonly n_features: IntegerType;
|
|
2652
|
+
}>;
|
|
2653
|
+
readonly gp_regressor: StructType<{
|
|
1904
2654
|
readonly data: BlobType;
|
|
1905
2655
|
readonly n_features: IntegerType;
|
|
1906
|
-
readonly
|
|
1907
|
-
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2656
|
+
readonly kernel_type: StringType;
|
|
1908
2657
|
}>;
|
|
1909
|
-
|
|
1910
|
-
readonly xgboost_classifier: StructType<{
|
|
2658
|
+
readonly torch_mlp: StructType<{
|
|
1911
2659
|
readonly data: BlobType;
|
|
1912
2660
|
readonly n_features: IntegerType;
|
|
2661
|
+
readonly hidden_layers: ArrayType<IntegerType>;
|
|
2662
|
+
readonly output_dim: IntegerType;
|
|
2663
|
+
}>;
|
|
2664
|
+
readonly standard_scaler: StructType<{
|
|
2665
|
+
readonly onnx: BlobType;
|
|
2666
|
+
readonly n_features: IntegerType;
|
|
2667
|
+
}>;
|
|
2668
|
+
readonly min_max_scaler: StructType<{
|
|
2669
|
+
readonly onnx: BlobType;
|
|
2670
|
+
readonly n_features: IntegerType;
|
|
2671
|
+
}>;
|
|
2672
|
+
readonly robust_scaler: StructType<{
|
|
2673
|
+
readonly onnx: BlobType;
|
|
2674
|
+
readonly n_features: IntegerType;
|
|
2675
|
+
}>;
|
|
2676
|
+
readonly label_encoder: StructType<{
|
|
2677
|
+
readonly data: BlobType;
|
|
1913
2678
|
readonly n_classes: IntegerType;
|
|
1914
|
-
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1915
|
-
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1916
2679
|
}>;
|
|
1917
|
-
|
|
1918
|
-
readonly xgboost_quantile: StructType<{
|
|
2680
|
+
readonly ordinal_encoder: StructType<{
|
|
1919
2681
|
readonly data: BlobType;
|
|
1920
|
-
readonly quantiles: VectorType<FloatType>;
|
|
1921
2682
|
readonly n_features: IntegerType;
|
|
1922
|
-
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
1923
|
-
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
1924
2683
|
}>;
|
|
1925
|
-
|
|
2684
|
+
readonly gaussian_mixture: StructType<{
|
|
2685
|
+
readonly data: BlobType;
|
|
2686
|
+
readonly n_features: IntegerType;
|
|
2687
|
+
readonly n_components: IntegerType;
|
|
2688
|
+
}>;
|
|
2689
|
+
readonly regressor_chain: StructType<{
|
|
2690
|
+
readonly data: BlobType;
|
|
2691
|
+
readonly n_features: IntegerType;
|
|
2692
|
+
readonly n_targets: IntegerType;
|
|
2693
|
+
readonly base_estimator_type: StringType;
|
|
2694
|
+
}>;
|
|
1926
2695
|
readonly mapie_split: StructType<{
|
|
1927
2696
|
readonly data: VariantType<{
|
|
1928
2697
|
readonly xgboost: VariantType<{
|
|
@@ -1963,7 +2732,6 @@ export declare const Shap: {
|
|
|
1963
2732
|
readonly n_features: IntegerType;
|
|
1964
2733
|
readonly confidence_level: FloatType;
|
|
1965
2734
|
}>;
|
|
1966
|
-
/** MAPIE cross conformal regressor with XGBoost base */
|
|
1967
2735
|
readonly mapie_cross: StructType<{
|
|
1968
2736
|
readonly data: VariantType<{
|
|
1969
2737
|
readonly xgboost: VariantType<{
|
|
@@ -2004,7 +2772,6 @@ export declare const Shap: {
|
|
|
2004
2772
|
readonly n_features: IntegerType;
|
|
2005
2773
|
readonly confidence_level: FloatType;
|
|
2006
2774
|
}>;
|
|
2007
|
-
/** MAPIE CQR conformal regressor with XGBoost base */
|
|
2008
2775
|
readonly mapie_cqr: StructType<{
|
|
2009
2776
|
readonly data: VariantType<{
|
|
2010
2777
|
readonly xgboost: VariantType<{
|
|
@@ -2045,7 +2812,6 @@ export declare const Shap: {
|
|
|
2045
2812
|
readonly n_features: IntegerType;
|
|
2046
2813
|
readonly confidence_level: FloatType;
|
|
2047
2814
|
}>;
|
|
2048
|
-
/** MAPIE conformal classifier with XGBoost base */
|
|
2049
2815
|
readonly mapie_classifier: StructType<{
|
|
2050
2816
|
readonly data: VariantType<{
|
|
2051
2817
|
readonly xgboost: VariantType<{
|
|
@@ -2088,6 +2854,468 @@ export declare const Shap: {
|
|
|
2088
2854
|
readonly classes: VectorType<IntegerType>;
|
|
2089
2855
|
readonly confidence_level: FloatType;
|
|
2090
2856
|
}>;
|
|
2857
|
+
readonly mapie_interval_width: StructType<{
|
|
2858
|
+
readonly data: BlobType;
|
|
2859
|
+
readonly n_features: IntegerType;
|
|
2860
|
+
}>;
|
|
2861
|
+
readonly mapie_set_size: StructType<{
|
|
2862
|
+
readonly data: BlobType;
|
|
2863
|
+
readonly n_features: IntegerType;
|
|
2864
|
+
}>;
|
|
2865
|
+
}>;
|
|
2866
|
+
};
|
|
2867
|
+
/**
|
|
2868
|
+
* SHAP explainability functions.
|
|
2869
|
+
*
|
|
2870
|
+
* Provides model-agnostic feature importance and SHAP value computation.
|
|
2871
|
+
*
|
|
2872
|
+
* @example
|
|
2873
|
+
* ```ts
|
|
2874
|
+
* import { East, variant } from "@elaraai/east";
|
|
2875
|
+
* import { Shap, LightGBM } from "@elaraai/east-py-datascience";
|
|
2876
|
+
*
|
|
2877
|
+
* const explain = East.function([LightGBM.Types.ModelBlobType, Shap.Types.MatrixType(FloatType)], Shap.Types.ShapResultType, ($, model, X) => {
|
|
2878
|
+
* // Create explainer
|
|
2879
|
+
* const explainer = $.let(Shap.treeExplainerCreate(model));
|
|
2880
|
+
*
|
|
2881
|
+
* // Compute SHAP values
|
|
2882
|
+
* const feature_names = $.let(["feature1", "feature2"]);
|
|
2883
|
+
* const result = $.let(Shap.computeValues(explainer, X, feature_names));
|
|
2884
|
+
*
|
|
2885
|
+
* return $.return(result);
|
|
2886
|
+
* });
|
|
2887
|
+
* ```
|
|
2888
|
+
*/
|
|
2889
|
+
export declare const Shap: {
|
|
2890
|
+
/**
|
|
2891
|
+
* Create a SHAP TreeExplainer for tree-based models (XGBoost, LightGBM).
|
|
2892
|
+
*
|
|
2893
|
+
* Two modes:
|
|
2894
|
+
* - `path_dependent`: Uses tree split paths. Tells you how the tree used features.
|
|
2895
|
+
* - `interventional`: Uses background data to break correlations. Tells you how
|
|
2896
|
+
* changing a feature would change the prediction.
|
|
2897
|
+
*
|
|
2898
|
+
* @example
|
|
2899
|
+
* ```ts
|
|
2900
|
+
* import { East, FloatType, variant } from "@elaraai/east";
|
|
2901
|
+
* import { Shap, XGBoost } from "@elaraai/east-py-datascience";
|
|
2902
|
+
*
|
|
2903
|
+
* // Path-dependent mode (default SHAP behavior)
|
|
2904
|
+
* const explainPD = East.function(
|
|
2905
|
+
* [XGBoost.Types.ModelBlobType],
|
|
2906
|
+
* Shap.Types.ShapModelBlobType,
|
|
2907
|
+
* ($, model) => {
|
|
2908
|
+
* return $.return(Shap.treeExplainerCreate(
|
|
2909
|
+
* variant('path_dependent', { model })
|
|
2910
|
+
* ));
|
|
2911
|
+
* }
|
|
2912
|
+
* );
|
|
2913
|
+
*
|
|
2914
|
+
* // Interventional mode (causal, uses background data)
|
|
2915
|
+
* const explainIV = East.function(
|
|
2916
|
+
* [XGBoost.Types.ModelBlobType, Shap.Types.MatrixType(FloatType)],
|
|
2917
|
+
* Shap.Types.ShapModelBlobType,
|
|
2918
|
+
* ($, model, background) => {
|
|
2919
|
+
* return $.return(Shap.treeExplainerCreate(
|
|
2920
|
+
* variant('interventional', { model, background })
|
|
2921
|
+
* ));
|
|
2922
|
+
* }
|
|
2923
|
+
* );
|
|
2924
|
+
* ```
|
|
2925
|
+
*/
|
|
2926
|
+
readonly treeExplainerCreate: import("@elaraai/east").PlatformDefinition<[VariantType<{
|
|
2927
|
+
/** Path-dependent mode: uses tree structure only (default SHAP behavior) */
|
|
2928
|
+
readonly path_dependent: StructType<{
|
|
2929
|
+
/** Tree-based model blob */
|
|
2930
|
+
readonly model: VariantType<{
|
|
2931
|
+
/** XGBoost regressor */
|
|
2932
|
+
readonly xgboost_regressor: StructType<{
|
|
2933
|
+
readonly data: BlobType;
|
|
2934
|
+
readonly n_features: IntegerType;
|
|
2935
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2936
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2937
|
+
}>;
|
|
2938
|
+
/** XGBoost classifier */
|
|
2939
|
+
readonly xgboost_classifier: StructType<{
|
|
2940
|
+
readonly data: BlobType;
|
|
2941
|
+
readonly n_features: IntegerType;
|
|
2942
|
+
readonly n_classes: IntegerType;
|
|
2943
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2944
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2945
|
+
}>;
|
|
2946
|
+
/** XGBoost quantile regressor (uses median quantile for explanations) */
|
|
2947
|
+
readonly xgboost_quantile: StructType<{
|
|
2948
|
+
readonly data: BlobType;
|
|
2949
|
+
readonly quantiles: VectorType<FloatType>;
|
|
2950
|
+
readonly n_features: IntegerType;
|
|
2951
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2952
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2953
|
+
}>;
|
|
2954
|
+
/** MAPIE split conformal regressor with XGBoost base */
|
|
2955
|
+
readonly mapie_split: StructType<{
|
|
2956
|
+
readonly data: VariantType<{
|
|
2957
|
+
readonly xgboost: VariantType<{
|
|
2958
|
+
readonly xgboost_regressor: StructType<{
|
|
2959
|
+
readonly data: BlobType;
|
|
2960
|
+
readonly n_features: IntegerType;
|
|
2961
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2962
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2963
|
+
}>;
|
|
2964
|
+
readonly xgboost_classifier: StructType<{
|
|
2965
|
+
readonly data: BlobType;
|
|
2966
|
+
readonly n_features: IntegerType;
|
|
2967
|
+
readonly n_classes: IntegerType;
|
|
2968
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2969
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2970
|
+
}>;
|
|
2971
|
+
readonly xgboost_quantile: StructType<{
|
|
2972
|
+
readonly data: BlobType;
|
|
2973
|
+
readonly quantiles: VectorType<FloatType>;
|
|
2974
|
+
readonly n_features: IntegerType;
|
|
2975
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
2976
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
2977
|
+
}>;
|
|
2978
|
+
}>;
|
|
2979
|
+
readonly lightgbm: VariantType<{
|
|
2980
|
+
readonly lightgbm_regressor: StructType<{
|
|
2981
|
+
readonly data: BlobType;
|
|
2982
|
+
readonly n_features: IntegerType;
|
|
2983
|
+
}>;
|
|
2984
|
+
readonly lightgbm_classifier: StructType<{
|
|
2985
|
+
readonly data: BlobType;
|
|
2986
|
+
readonly n_features: IntegerType;
|
|
2987
|
+
readonly n_classes: IntegerType;
|
|
2988
|
+
}>;
|
|
2989
|
+
}>;
|
|
2990
|
+
readonly histogram: BlobType;
|
|
2991
|
+
}>;
|
|
2992
|
+
readonly n_features: IntegerType;
|
|
2993
|
+
readonly confidence_level: FloatType;
|
|
2994
|
+
}>;
|
|
2995
|
+
/** MAPIE cross conformal regressor with XGBoost base */
|
|
2996
|
+
readonly mapie_cross: StructType<{
|
|
2997
|
+
readonly data: VariantType<{
|
|
2998
|
+
readonly xgboost: VariantType<{
|
|
2999
|
+
readonly xgboost_regressor: StructType<{
|
|
3000
|
+
readonly data: BlobType;
|
|
3001
|
+
readonly n_features: IntegerType;
|
|
3002
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
3003
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
3004
|
+
}>;
|
|
3005
|
+
readonly xgboost_classifier: StructType<{
|
|
3006
|
+
readonly data: BlobType;
|
|
3007
|
+
readonly n_features: IntegerType;
|
|
3008
|
+
readonly n_classes: IntegerType;
|
|
3009
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
3010
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
3011
|
+
}>;
|
|
3012
|
+
readonly xgboost_quantile: StructType<{
|
|
3013
|
+
readonly data: BlobType;
|
|
3014
|
+
readonly quantiles: VectorType<FloatType>;
|
|
3015
|
+
readonly n_features: IntegerType;
|
|
3016
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
3017
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
3018
|
+
}>;
|
|
3019
|
+
}>;
|
|
3020
|
+
readonly lightgbm: VariantType<{
|
|
3021
|
+
readonly lightgbm_regressor: StructType<{
|
|
3022
|
+
readonly data: BlobType;
|
|
3023
|
+
readonly n_features: IntegerType;
|
|
3024
|
+
}>;
|
|
3025
|
+
readonly lightgbm_classifier: StructType<{
|
|
3026
|
+
readonly data: BlobType;
|
|
3027
|
+
readonly n_features: IntegerType;
|
|
3028
|
+
readonly n_classes: IntegerType;
|
|
3029
|
+
}>;
|
|
3030
|
+
}>;
|
|
3031
|
+
readonly histogram: BlobType;
|
|
3032
|
+
}>;
|
|
3033
|
+
readonly n_features: IntegerType;
|
|
3034
|
+
readonly confidence_level: FloatType;
|
|
3035
|
+
}>;
|
|
3036
|
+
/** MAPIE CQR conformal regressor with XGBoost base */
|
|
3037
|
+
readonly mapie_cqr: StructType<{
|
|
3038
|
+
readonly data: VariantType<{
|
|
3039
|
+
readonly xgboost: VariantType<{
|
|
3040
|
+
readonly xgboost_regressor: StructType<{
|
|
3041
|
+
readonly data: BlobType;
|
|
3042
|
+
readonly n_features: IntegerType;
|
|
3043
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
3044
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
3045
|
+
}>;
|
|
3046
|
+
readonly xgboost_classifier: StructType<{
|
|
3047
|
+
readonly data: BlobType;
|
|
3048
|
+
readonly n_features: IntegerType;
|
|
3049
|
+
readonly n_classes: IntegerType;
|
|
3050
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
3051
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
3052
|
+
}>;
|
|
3053
|
+
readonly xgboost_quantile: StructType<{
|
|
3054
|
+
readonly data: BlobType;
|
|
3055
|
+
readonly quantiles: VectorType<FloatType>;
|
|
3056
|
+
readonly n_features: IntegerType;
|
|
3057
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
3058
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
3059
|
+
}>;
|
|
3060
|
+
}>;
|
|
3061
|
+
readonly lightgbm: VariantType<{
|
|
3062
|
+
readonly lightgbm_regressor: StructType<{
|
|
3063
|
+
readonly data: BlobType;
|
|
3064
|
+
readonly n_features: IntegerType;
|
|
3065
|
+
}>;
|
|
3066
|
+
readonly lightgbm_classifier: StructType<{
|
|
3067
|
+
readonly data: BlobType;
|
|
3068
|
+
readonly n_features: IntegerType;
|
|
3069
|
+
readonly n_classes: IntegerType;
|
|
3070
|
+
}>;
|
|
3071
|
+
}>;
|
|
3072
|
+
readonly histogram: BlobType;
|
|
3073
|
+
}>;
|
|
3074
|
+
readonly n_features: IntegerType;
|
|
3075
|
+
readonly confidence_level: FloatType;
|
|
3076
|
+
}>;
|
|
3077
|
+
/** MAPIE conformal classifier with XGBoost base */
|
|
3078
|
+
readonly mapie_classifier: StructType<{
|
|
3079
|
+
readonly data: VariantType<{
|
|
3080
|
+
readonly xgboost: VariantType<{
|
|
3081
|
+
readonly xgboost_regressor: StructType<{
|
|
3082
|
+
readonly data: BlobType;
|
|
3083
|
+
readonly n_features: IntegerType;
|
|
3084
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
3085
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
3086
|
+
}>;
|
|
3087
|
+
readonly xgboost_classifier: StructType<{
|
|
3088
|
+
readonly data: BlobType;
|
|
3089
|
+
readonly n_features: IntegerType;
|
|
3090
|
+
readonly n_classes: IntegerType;
|
|
3091
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
3092
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
3093
|
+
}>;
|
|
3094
|
+
readonly xgboost_quantile: StructType<{
|
|
3095
|
+
readonly data: BlobType;
|
|
3096
|
+
readonly quantiles: VectorType<FloatType>;
|
|
3097
|
+
readonly n_features: IntegerType;
|
|
3098
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
3099
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
3100
|
+
}>;
|
|
3101
|
+
}>;
|
|
3102
|
+
readonly lightgbm: VariantType<{
|
|
3103
|
+
readonly lightgbm_regressor: StructType<{
|
|
3104
|
+
readonly data: BlobType;
|
|
3105
|
+
readonly n_features: IntegerType;
|
|
3106
|
+
}>;
|
|
3107
|
+
readonly lightgbm_classifier: StructType<{
|
|
3108
|
+
readonly data: BlobType;
|
|
3109
|
+
readonly n_features: IntegerType;
|
|
3110
|
+
readonly n_classes: IntegerType;
|
|
3111
|
+
}>;
|
|
3112
|
+
}>;
|
|
3113
|
+
readonly histogram: BlobType;
|
|
3114
|
+
}>;
|
|
3115
|
+
readonly n_features: IntegerType;
|
|
3116
|
+
readonly n_classes: IntegerType;
|
|
3117
|
+
readonly classes: VectorType<IntegerType>;
|
|
3118
|
+
readonly confidence_level: FloatType;
|
|
3119
|
+
}>;
|
|
3120
|
+
}>;
|
|
3121
|
+
}>;
|
|
3122
|
+
/** Interventional mode: uses background data to break feature correlations */
|
|
3123
|
+
readonly interventional: StructType<{
|
|
3124
|
+
/** Tree-based model blob */
|
|
3125
|
+
readonly model: VariantType<{
|
|
3126
|
+
/** XGBoost regressor */
|
|
3127
|
+
readonly xgboost_regressor: StructType<{
|
|
3128
|
+
readonly data: BlobType;
|
|
3129
|
+
readonly n_features: IntegerType;
|
|
3130
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
3131
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
3132
|
+
}>;
|
|
3133
|
+
/** XGBoost classifier */
|
|
3134
|
+
readonly xgboost_classifier: StructType<{
|
|
3135
|
+
readonly data: BlobType;
|
|
3136
|
+
readonly n_features: IntegerType;
|
|
3137
|
+
readonly n_classes: IntegerType;
|
|
3138
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
3139
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
3140
|
+
}>;
|
|
3141
|
+
/** XGBoost quantile regressor (uses median quantile for explanations) */
|
|
3142
|
+
readonly xgboost_quantile: StructType<{
|
|
3143
|
+
readonly data: BlobType;
|
|
3144
|
+
readonly quantiles: VectorType<FloatType>;
|
|
3145
|
+
readonly n_features: IntegerType;
|
|
3146
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
3147
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
3148
|
+
}>;
|
|
3149
|
+
/** MAPIE split conformal regressor with XGBoost base */
|
|
3150
|
+
readonly mapie_split: StructType<{
|
|
3151
|
+
readonly data: VariantType<{
|
|
3152
|
+
readonly xgboost: VariantType<{
|
|
3153
|
+
readonly xgboost_regressor: StructType<{
|
|
3154
|
+
readonly data: BlobType;
|
|
3155
|
+
readonly n_features: IntegerType;
|
|
3156
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
3157
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
3158
|
+
}>;
|
|
3159
|
+
readonly xgboost_classifier: StructType<{
|
|
3160
|
+
readonly data: BlobType;
|
|
3161
|
+
readonly n_features: IntegerType;
|
|
3162
|
+
readonly n_classes: IntegerType;
|
|
3163
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
3164
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
3165
|
+
}>;
|
|
3166
|
+
readonly xgboost_quantile: StructType<{
|
|
3167
|
+
readonly data: BlobType;
|
|
3168
|
+
readonly quantiles: VectorType<FloatType>;
|
|
3169
|
+
readonly n_features: IntegerType;
|
|
3170
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
3171
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
3172
|
+
}>;
|
|
3173
|
+
}>;
|
|
3174
|
+
readonly lightgbm: VariantType<{
|
|
3175
|
+
readonly lightgbm_regressor: StructType<{
|
|
3176
|
+
readonly data: BlobType;
|
|
3177
|
+
readonly n_features: IntegerType;
|
|
3178
|
+
}>;
|
|
3179
|
+
readonly lightgbm_classifier: StructType<{
|
|
3180
|
+
readonly data: BlobType;
|
|
3181
|
+
readonly n_features: IntegerType;
|
|
3182
|
+
readonly n_classes: IntegerType;
|
|
3183
|
+
}>;
|
|
3184
|
+
}>;
|
|
3185
|
+
readonly histogram: BlobType;
|
|
3186
|
+
}>;
|
|
3187
|
+
readonly n_features: IntegerType;
|
|
3188
|
+
readonly confidence_level: FloatType;
|
|
3189
|
+
}>;
|
|
3190
|
+
/** MAPIE cross conformal regressor with XGBoost base */
|
|
3191
|
+
readonly mapie_cross: StructType<{
|
|
3192
|
+
readonly data: VariantType<{
|
|
3193
|
+
readonly xgboost: VariantType<{
|
|
3194
|
+
readonly xgboost_regressor: StructType<{
|
|
3195
|
+
readonly data: BlobType;
|
|
3196
|
+
readonly n_features: IntegerType;
|
|
3197
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
3198
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
3199
|
+
}>;
|
|
3200
|
+
readonly xgboost_classifier: StructType<{
|
|
3201
|
+
readonly data: BlobType;
|
|
3202
|
+
readonly n_features: IntegerType;
|
|
3203
|
+
readonly n_classes: IntegerType;
|
|
3204
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
3205
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
3206
|
+
}>;
|
|
3207
|
+
readonly xgboost_quantile: StructType<{
|
|
3208
|
+
readonly data: BlobType;
|
|
3209
|
+
readonly quantiles: VectorType<FloatType>;
|
|
3210
|
+
readonly n_features: IntegerType;
|
|
3211
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
3212
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
3213
|
+
}>;
|
|
3214
|
+
}>;
|
|
3215
|
+
readonly lightgbm: VariantType<{
|
|
3216
|
+
readonly lightgbm_regressor: StructType<{
|
|
3217
|
+
readonly data: BlobType;
|
|
3218
|
+
readonly n_features: IntegerType;
|
|
3219
|
+
}>;
|
|
3220
|
+
readonly lightgbm_classifier: StructType<{
|
|
3221
|
+
readonly data: BlobType;
|
|
3222
|
+
readonly n_features: IntegerType;
|
|
3223
|
+
readonly n_classes: IntegerType;
|
|
3224
|
+
}>;
|
|
3225
|
+
}>;
|
|
3226
|
+
readonly histogram: BlobType;
|
|
3227
|
+
}>;
|
|
3228
|
+
readonly n_features: IntegerType;
|
|
3229
|
+
readonly confidence_level: FloatType;
|
|
3230
|
+
}>;
|
|
3231
|
+
/** MAPIE CQR conformal regressor with XGBoost base */
|
|
3232
|
+
readonly mapie_cqr: StructType<{
|
|
3233
|
+
readonly data: VariantType<{
|
|
3234
|
+
readonly xgboost: VariantType<{
|
|
3235
|
+
readonly xgboost_regressor: StructType<{
|
|
3236
|
+
readonly data: BlobType;
|
|
3237
|
+
readonly n_features: IntegerType;
|
|
3238
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
3239
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
3240
|
+
}>;
|
|
3241
|
+
readonly xgboost_classifier: StructType<{
|
|
3242
|
+
readonly data: BlobType;
|
|
3243
|
+
readonly n_features: IntegerType;
|
|
3244
|
+
readonly n_classes: IntegerType;
|
|
3245
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
3246
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
3247
|
+
}>;
|
|
3248
|
+
readonly xgboost_quantile: StructType<{
|
|
3249
|
+
readonly data: BlobType;
|
|
3250
|
+
readonly quantiles: VectorType<FloatType>;
|
|
3251
|
+
readonly n_features: IntegerType;
|
|
3252
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
3253
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
3254
|
+
}>;
|
|
3255
|
+
}>;
|
|
3256
|
+
readonly lightgbm: VariantType<{
|
|
3257
|
+
readonly lightgbm_regressor: StructType<{
|
|
3258
|
+
readonly data: BlobType;
|
|
3259
|
+
readonly n_features: IntegerType;
|
|
3260
|
+
}>;
|
|
3261
|
+
readonly lightgbm_classifier: StructType<{
|
|
3262
|
+
readonly data: BlobType;
|
|
3263
|
+
readonly n_features: IntegerType;
|
|
3264
|
+
readonly n_classes: IntegerType;
|
|
3265
|
+
}>;
|
|
3266
|
+
}>;
|
|
3267
|
+
readonly histogram: BlobType;
|
|
3268
|
+
}>;
|
|
3269
|
+
readonly n_features: IntegerType;
|
|
3270
|
+
readonly confidence_level: FloatType;
|
|
3271
|
+
}>;
|
|
3272
|
+
/** MAPIE conformal classifier with XGBoost base */
|
|
3273
|
+
readonly mapie_classifier: StructType<{
|
|
3274
|
+
readonly data: VariantType<{
|
|
3275
|
+
readonly xgboost: VariantType<{
|
|
3276
|
+
readonly xgboost_regressor: StructType<{
|
|
3277
|
+
readonly data: BlobType;
|
|
3278
|
+
readonly n_features: IntegerType;
|
|
3279
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
3280
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
3281
|
+
}>;
|
|
3282
|
+
readonly xgboost_classifier: StructType<{
|
|
3283
|
+
readonly data: BlobType;
|
|
3284
|
+
readonly n_features: IntegerType;
|
|
3285
|
+
readonly n_classes: IntegerType;
|
|
3286
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
3287
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
3288
|
+
}>;
|
|
3289
|
+
readonly xgboost_quantile: StructType<{
|
|
3290
|
+
readonly data: BlobType;
|
|
3291
|
+
readonly quantiles: VectorType<FloatType>;
|
|
3292
|
+
readonly n_features: IntegerType;
|
|
3293
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
3294
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
3295
|
+
}>;
|
|
3296
|
+
}>;
|
|
3297
|
+
readonly lightgbm: VariantType<{
|
|
3298
|
+
readonly lightgbm_regressor: StructType<{
|
|
3299
|
+
readonly data: BlobType;
|
|
3300
|
+
readonly n_features: IntegerType;
|
|
3301
|
+
}>;
|
|
3302
|
+
readonly lightgbm_classifier: StructType<{
|
|
3303
|
+
readonly data: BlobType;
|
|
3304
|
+
readonly n_features: IntegerType;
|
|
3305
|
+
readonly n_classes: IntegerType;
|
|
3306
|
+
}>;
|
|
3307
|
+
}>;
|
|
3308
|
+
readonly histogram: BlobType;
|
|
3309
|
+
}>;
|
|
3310
|
+
readonly n_features: IntegerType;
|
|
3311
|
+
readonly n_classes: IntegerType;
|
|
3312
|
+
readonly classes: VectorType<IntegerType>;
|
|
3313
|
+
readonly confidence_level: FloatType;
|
|
3314
|
+
}>;
|
|
3315
|
+
}>;
|
|
3316
|
+
/** Background data for computing interventional expectations */
|
|
3317
|
+
readonly background: MatrixType<FloatType>;
|
|
3318
|
+
}>;
|
|
2091
3319
|
}>], VariantType<{
|
|
2092
3320
|
/** SHAP TreeExplainer for tree-based models */
|
|
2093
3321
|
readonly shap_tree_explainer: StructType<{
|
|
@@ -2731,6 +3959,401 @@ export declare const Shap: {
|
|
|
2731
3959
|
readonly confidence_level: FloatType;
|
|
2732
3960
|
}>;
|
|
2733
3961
|
}>;
|
|
3962
|
+
/** TreeExplainer configuration type (path_dependent | interventional) */
|
|
3963
|
+
readonly TreeExplainerConfigType: VariantType<{
|
|
3964
|
+
/** Path-dependent mode: uses tree structure only (default SHAP behavior) */
|
|
3965
|
+
readonly path_dependent: StructType<{
|
|
3966
|
+
/** Tree-based model blob */
|
|
3967
|
+
readonly model: VariantType<{
|
|
3968
|
+
/** XGBoost regressor */
|
|
3969
|
+
readonly xgboost_regressor: StructType<{
|
|
3970
|
+
readonly data: BlobType;
|
|
3971
|
+
readonly n_features: IntegerType;
|
|
3972
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
3973
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
3974
|
+
}>;
|
|
3975
|
+
/** XGBoost classifier */
|
|
3976
|
+
readonly xgboost_classifier: StructType<{
|
|
3977
|
+
readonly data: BlobType;
|
|
3978
|
+
readonly n_features: IntegerType;
|
|
3979
|
+
readonly n_classes: IntegerType;
|
|
3980
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
3981
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
3982
|
+
}>;
|
|
3983
|
+
/** XGBoost quantile regressor (uses median quantile for explanations) */
|
|
3984
|
+
readonly xgboost_quantile: StructType<{
|
|
3985
|
+
readonly data: BlobType;
|
|
3986
|
+
readonly quantiles: VectorType<FloatType>;
|
|
3987
|
+
readonly n_features: IntegerType;
|
|
3988
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
3989
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
3990
|
+
}>;
|
|
3991
|
+
/** MAPIE split conformal regressor with XGBoost base */
|
|
3992
|
+
readonly mapie_split: StructType<{
|
|
3993
|
+
readonly data: VariantType<{
|
|
3994
|
+
readonly xgboost: VariantType<{
|
|
3995
|
+
readonly xgboost_regressor: StructType<{
|
|
3996
|
+
readonly data: BlobType;
|
|
3997
|
+
readonly n_features: IntegerType;
|
|
3998
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
3999
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
4000
|
+
}>;
|
|
4001
|
+
readonly xgboost_classifier: StructType<{
|
|
4002
|
+
readonly data: BlobType;
|
|
4003
|
+
readonly n_features: IntegerType;
|
|
4004
|
+
readonly n_classes: IntegerType;
|
|
4005
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
4006
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
4007
|
+
}>;
|
|
4008
|
+
readonly xgboost_quantile: StructType<{
|
|
4009
|
+
readonly data: BlobType;
|
|
4010
|
+
readonly quantiles: VectorType<FloatType>;
|
|
4011
|
+
readonly n_features: IntegerType;
|
|
4012
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
4013
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
4014
|
+
}>;
|
|
4015
|
+
}>;
|
|
4016
|
+
readonly lightgbm: VariantType<{
|
|
4017
|
+
readonly lightgbm_regressor: StructType<{
|
|
4018
|
+
readonly data: BlobType;
|
|
4019
|
+
readonly n_features: IntegerType;
|
|
4020
|
+
}>;
|
|
4021
|
+
readonly lightgbm_classifier: StructType<{
|
|
4022
|
+
readonly data: BlobType;
|
|
4023
|
+
readonly n_features: IntegerType;
|
|
4024
|
+
readonly n_classes: IntegerType;
|
|
4025
|
+
}>;
|
|
4026
|
+
}>;
|
|
4027
|
+
readonly histogram: BlobType;
|
|
4028
|
+
}>;
|
|
4029
|
+
readonly n_features: IntegerType;
|
|
4030
|
+
readonly confidence_level: FloatType;
|
|
4031
|
+
}>;
|
|
4032
|
+
/** MAPIE cross conformal regressor with XGBoost base */
|
|
4033
|
+
readonly mapie_cross: StructType<{
|
|
4034
|
+
readonly data: VariantType<{
|
|
4035
|
+
readonly xgboost: VariantType<{
|
|
4036
|
+
readonly xgboost_regressor: StructType<{
|
|
4037
|
+
readonly data: BlobType;
|
|
4038
|
+
readonly n_features: IntegerType;
|
|
4039
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
4040
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
4041
|
+
}>;
|
|
4042
|
+
readonly xgboost_classifier: StructType<{
|
|
4043
|
+
readonly data: BlobType;
|
|
4044
|
+
readonly n_features: IntegerType;
|
|
4045
|
+
readonly n_classes: IntegerType;
|
|
4046
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
4047
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
4048
|
+
}>;
|
|
4049
|
+
readonly xgboost_quantile: StructType<{
|
|
4050
|
+
readonly data: BlobType;
|
|
4051
|
+
readonly quantiles: VectorType<FloatType>;
|
|
4052
|
+
readonly n_features: IntegerType;
|
|
4053
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
4054
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
4055
|
+
}>;
|
|
4056
|
+
}>;
|
|
4057
|
+
readonly lightgbm: VariantType<{
|
|
4058
|
+
readonly lightgbm_regressor: StructType<{
|
|
4059
|
+
readonly data: BlobType;
|
|
4060
|
+
readonly n_features: IntegerType;
|
|
4061
|
+
}>;
|
|
4062
|
+
readonly lightgbm_classifier: StructType<{
|
|
4063
|
+
readonly data: BlobType;
|
|
4064
|
+
readonly n_features: IntegerType;
|
|
4065
|
+
readonly n_classes: IntegerType;
|
|
4066
|
+
}>;
|
|
4067
|
+
}>;
|
|
4068
|
+
readonly histogram: BlobType;
|
|
4069
|
+
}>;
|
|
4070
|
+
readonly n_features: IntegerType;
|
|
4071
|
+
readonly confidence_level: FloatType;
|
|
4072
|
+
}>;
|
|
4073
|
+
/** MAPIE CQR conformal regressor with XGBoost base */
|
|
4074
|
+
readonly mapie_cqr: StructType<{
|
|
4075
|
+
readonly data: VariantType<{
|
|
4076
|
+
readonly xgboost: VariantType<{
|
|
4077
|
+
readonly xgboost_regressor: StructType<{
|
|
4078
|
+
readonly data: BlobType;
|
|
4079
|
+
readonly n_features: IntegerType;
|
|
4080
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
4081
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
4082
|
+
}>;
|
|
4083
|
+
readonly xgboost_classifier: StructType<{
|
|
4084
|
+
readonly data: BlobType;
|
|
4085
|
+
readonly n_features: IntegerType;
|
|
4086
|
+
readonly n_classes: IntegerType;
|
|
4087
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
4088
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
4089
|
+
}>;
|
|
4090
|
+
readonly xgboost_quantile: StructType<{
|
|
4091
|
+
readonly data: BlobType;
|
|
4092
|
+
readonly quantiles: VectorType<FloatType>;
|
|
4093
|
+
readonly n_features: IntegerType;
|
|
4094
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
4095
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
4096
|
+
}>;
|
|
4097
|
+
}>;
|
|
4098
|
+
readonly lightgbm: VariantType<{
|
|
4099
|
+
readonly lightgbm_regressor: StructType<{
|
|
4100
|
+
readonly data: BlobType;
|
|
4101
|
+
readonly n_features: IntegerType;
|
|
4102
|
+
}>;
|
|
4103
|
+
readonly lightgbm_classifier: StructType<{
|
|
4104
|
+
readonly data: BlobType;
|
|
4105
|
+
readonly n_features: IntegerType;
|
|
4106
|
+
readonly n_classes: IntegerType;
|
|
4107
|
+
}>;
|
|
4108
|
+
}>;
|
|
4109
|
+
readonly histogram: BlobType;
|
|
4110
|
+
}>;
|
|
4111
|
+
readonly n_features: IntegerType;
|
|
4112
|
+
readonly confidence_level: FloatType;
|
|
4113
|
+
}>;
|
|
4114
|
+
/** MAPIE conformal classifier with XGBoost base */
|
|
4115
|
+
readonly mapie_classifier: StructType<{
|
|
4116
|
+
readonly data: VariantType<{
|
|
4117
|
+
readonly xgboost: VariantType<{
|
|
4118
|
+
readonly xgboost_regressor: StructType<{
|
|
4119
|
+
readonly data: BlobType;
|
|
4120
|
+
readonly n_features: IntegerType;
|
|
4121
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
4122
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
4123
|
+
}>;
|
|
4124
|
+
readonly xgboost_classifier: StructType<{
|
|
4125
|
+
readonly data: BlobType;
|
|
4126
|
+
readonly n_features: IntegerType;
|
|
4127
|
+
readonly n_classes: IntegerType;
|
|
4128
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
4129
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
4130
|
+
}>;
|
|
4131
|
+
readonly xgboost_quantile: StructType<{
|
|
4132
|
+
readonly data: BlobType;
|
|
4133
|
+
readonly quantiles: VectorType<FloatType>;
|
|
4134
|
+
readonly n_features: IntegerType;
|
|
4135
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
4136
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
4137
|
+
}>;
|
|
4138
|
+
}>;
|
|
4139
|
+
readonly lightgbm: VariantType<{
|
|
4140
|
+
readonly lightgbm_regressor: StructType<{
|
|
4141
|
+
readonly data: BlobType;
|
|
4142
|
+
readonly n_features: IntegerType;
|
|
4143
|
+
}>;
|
|
4144
|
+
readonly lightgbm_classifier: StructType<{
|
|
4145
|
+
readonly data: BlobType;
|
|
4146
|
+
readonly n_features: IntegerType;
|
|
4147
|
+
readonly n_classes: IntegerType;
|
|
4148
|
+
}>;
|
|
4149
|
+
}>;
|
|
4150
|
+
readonly histogram: BlobType;
|
|
4151
|
+
}>;
|
|
4152
|
+
readonly n_features: IntegerType;
|
|
4153
|
+
readonly n_classes: IntegerType;
|
|
4154
|
+
readonly classes: VectorType<IntegerType>;
|
|
4155
|
+
readonly confidence_level: FloatType;
|
|
4156
|
+
}>;
|
|
4157
|
+
}>;
|
|
4158
|
+
}>;
|
|
4159
|
+
/** Interventional mode: uses background data to break feature correlations */
|
|
4160
|
+
readonly interventional: StructType<{
|
|
4161
|
+
/** Tree-based model blob */
|
|
4162
|
+
readonly model: VariantType<{
|
|
4163
|
+
/** XGBoost regressor */
|
|
4164
|
+
readonly xgboost_regressor: StructType<{
|
|
4165
|
+
readonly data: BlobType;
|
|
4166
|
+
readonly n_features: IntegerType;
|
|
4167
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
4168
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
4169
|
+
}>;
|
|
4170
|
+
/** XGBoost classifier */
|
|
4171
|
+
readonly xgboost_classifier: StructType<{
|
|
4172
|
+
readonly data: BlobType;
|
|
4173
|
+
readonly n_features: IntegerType;
|
|
4174
|
+
readonly n_classes: IntegerType;
|
|
4175
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
4176
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
4177
|
+
}>;
|
|
4178
|
+
/** XGBoost quantile regressor (uses median quantile for explanations) */
|
|
4179
|
+
readonly xgboost_quantile: StructType<{
|
|
4180
|
+
readonly data: BlobType;
|
|
4181
|
+
readonly quantiles: VectorType<FloatType>;
|
|
4182
|
+
readonly n_features: IntegerType;
|
|
4183
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
4184
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
4185
|
+
}>;
|
|
4186
|
+
/** MAPIE split conformal regressor with XGBoost base */
|
|
4187
|
+
readonly mapie_split: StructType<{
|
|
4188
|
+
readonly data: VariantType<{
|
|
4189
|
+
readonly xgboost: VariantType<{
|
|
4190
|
+
readonly xgboost_regressor: StructType<{
|
|
4191
|
+
readonly data: BlobType;
|
|
4192
|
+
readonly n_features: IntegerType;
|
|
4193
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
4194
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
4195
|
+
}>;
|
|
4196
|
+
readonly xgboost_classifier: StructType<{
|
|
4197
|
+
readonly data: BlobType;
|
|
4198
|
+
readonly n_features: IntegerType;
|
|
4199
|
+
readonly n_classes: IntegerType;
|
|
4200
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
4201
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
4202
|
+
}>;
|
|
4203
|
+
readonly xgboost_quantile: StructType<{
|
|
4204
|
+
readonly data: BlobType;
|
|
4205
|
+
readonly quantiles: VectorType<FloatType>;
|
|
4206
|
+
readonly n_features: IntegerType;
|
|
4207
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
4208
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
4209
|
+
}>;
|
|
4210
|
+
}>;
|
|
4211
|
+
readonly lightgbm: VariantType<{
|
|
4212
|
+
readonly lightgbm_regressor: StructType<{
|
|
4213
|
+
readonly data: BlobType;
|
|
4214
|
+
readonly n_features: IntegerType;
|
|
4215
|
+
}>;
|
|
4216
|
+
readonly lightgbm_classifier: StructType<{
|
|
4217
|
+
readonly data: BlobType;
|
|
4218
|
+
readonly n_features: IntegerType;
|
|
4219
|
+
readonly n_classes: IntegerType;
|
|
4220
|
+
}>;
|
|
4221
|
+
}>;
|
|
4222
|
+
readonly histogram: BlobType;
|
|
4223
|
+
}>;
|
|
4224
|
+
readonly n_features: IntegerType;
|
|
4225
|
+
readonly confidence_level: FloatType;
|
|
4226
|
+
}>;
|
|
4227
|
+
/** MAPIE cross conformal regressor with XGBoost base */
|
|
4228
|
+
readonly mapie_cross: StructType<{
|
|
4229
|
+
readonly data: VariantType<{
|
|
4230
|
+
readonly xgboost: VariantType<{
|
|
4231
|
+
readonly xgboost_regressor: StructType<{
|
|
4232
|
+
readonly data: BlobType;
|
|
4233
|
+
readonly n_features: IntegerType;
|
|
4234
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
4235
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
4236
|
+
}>;
|
|
4237
|
+
readonly xgboost_classifier: StructType<{
|
|
4238
|
+
readonly data: BlobType;
|
|
4239
|
+
readonly n_features: IntegerType;
|
|
4240
|
+
readonly n_classes: IntegerType;
|
|
4241
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
4242
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
4243
|
+
}>;
|
|
4244
|
+
readonly xgboost_quantile: StructType<{
|
|
4245
|
+
readonly data: BlobType;
|
|
4246
|
+
readonly quantiles: VectorType<FloatType>;
|
|
4247
|
+
readonly n_features: IntegerType;
|
|
4248
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
4249
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
4250
|
+
}>;
|
|
4251
|
+
}>;
|
|
4252
|
+
readonly lightgbm: VariantType<{
|
|
4253
|
+
readonly lightgbm_regressor: StructType<{
|
|
4254
|
+
readonly data: BlobType;
|
|
4255
|
+
readonly n_features: IntegerType;
|
|
4256
|
+
}>;
|
|
4257
|
+
readonly lightgbm_classifier: StructType<{
|
|
4258
|
+
readonly data: BlobType;
|
|
4259
|
+
readonly n_features: IntegerType;
|
|
4260
|
+
readonly n_classes: IntegerType;
|
|
4261
|
+
}>;
|
|
4262
|
+
}>;
|
|
4263
|
+
readonly histogram: BlobType;
|
|
4264
|
+
}>;
|
|
4265
|
+
readonly n_features: IntegerType;
|
|
4266
|
+
readonly confidence_level: FloatType;
|
|
4267
|
+
}>;
|
|
4268
|
+
/** MAPIE CQR conformal regressor with XGBoost base */
|
|
4269
|
+
readonly mapie_cqr: StructType<{
|
|
4270
|
+
readonly data: VariantType<{
|
|
4271
|
+
readonly xgboost: VariantType<{
|
|
4272
|
+
readonly xgboost_regressor: StructType<{
|
|
4273
|
+
readonly data: BlobType;
|
|
4274
|
+
readonly n_features: IntegerType;
|
|
4275
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
4276
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
4277
|
+
}>;
|
|
4278
|
+
readonly xgboost_classifier: StructType<{
|
|
4279
|
+
readonly data: BlobType;
|
|
4280
|
+
readonly n_features: IntegerType;
|
|
4281
|
+
readonly n_classes: IntegerType;
|
|
4282
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
4283
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
4284
|
+
}>;
|
|
4285
|
+
readonly xgboost_quantile: StructType<{
|
|
4286
|
+
readonly data: BlobType;
|
|
4287
|
+
readonly quantiles: VectorType<FloatType>;
|
|
4288
|
+
readonly n_features: IntegerType;
|
|
4289
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
4290
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
4291
|
+
}>;
|
|
4292
|
+
}>;
|
|
4293
|
+
readonly lightgbm: VariantType<{
|
|
4294
|
+
readonly lightgbm_regressor: StructType<{
|
|
4295
|
+
readonly data: BlobType;
|
|
4296
|
+
readonly n_features: IntegerType;
|
|
4297
|
+
}>;
|
|
4298
|
+
readonly lightgbm_classifier: StructType<{
|
|
4299
|
+
readonly data: BlobType;
|
|
4300
|
+
readonly n_features: IntegerType;
|
|
4301
|
+
readonly n_classes: IntegerType;
|
|
4302
|
+
}>;
|
|
4303
|
+
}>;
|
|
4304
|
+
readonly histogram: BlobType;
|
|
4305
|
+
}>;
|
|
4306
|
+
readonly n_features: IntegerType;
|
|
4307
|
+
readonly confidence_level: FloatType;
|
|
4308
|
+
}>;
|
|
4309
|
+
/** MAPIE conformal classifier with XGBoost base */
|
|
4310
|
+
readonly mapie_classifier: StructType<{
|
|
4311
|
+
readonly data: VariantType<{
|
|
4312
|
+
readonly xgboost: VariantType<{
|
|
4313
|
+
readonly xgboost_regressor: StructType<{
|
|
4314
|
+
readonly data: BlobType;
|
|
4315
|
+
readonly n_features: IntegerType;
|
|
4316
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
4317
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
4318
|
+
}>;
|
|
4319
|
+
readonly xgboost_classifier: StructType<{
|
|
4320
|
+
readonly data: BlobType;
|
|
4321
|
+
readonly n_features: IntegerType;
|
|
4322
|
+
readonly n_classes: IntegerType;
|
|
4323
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
4324
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
4325
|
+
}>;
|
|
4326
|
+
readonly xgboost_quantile: StructType<{
|
|
4327
|
+
readonly data: BlobType;
|
|
4328
|
+
readonly quantiles: VectorType<FloatType>;
|
|
4329
|
+
readonly n_features: IntegerType;
|
|
4330
|
+
readonly categorical_features: OptionType<VectorType<IntegerType>>;
|
|
4331
|
+
readonly categorical_n: OptionType<VectorType<IntegerType>>;
|
|
4332
|
+
}>;
|
|
4333
|
+
}>;
|
|
4334
|
+
readonly lightgbm: VariantType<{
|
|
4335
|
+
readonly lightgbm_regressor: StructType<{
|
|
4336
|
+
readonly data: BlobType;
|
|
4337
|
+
readonly n_features: IntegerType;
|
|
4338
|
+
}>;
|
|
4339
|
+
readonly lightgbm_classifier: StructType<{
|
|
4340
|
+
readonly data: BlobType;
|
|
4341
|
+
readonly n_features: IntegerType;
|
|
4342
|
+
readonly n_classes: IntegerType;
|
|
4343
|
+
}>;
|
|
4344
|
+
}>;
|
|
4345
|
+
readonly histogram: BlobType;
|
|
4346
|
+
}>;
|
|
4347
|
+
readonly n_features: IntegerType;
|
|
4348
|
+
readonly n_classes: IntegerType;
|
|
4349
|
+
readonly classes: VectorType<IntegerType>;
|
|
4350
|
+
readonly confidence_level: FloatType;
|
|
4351
|
+
}>;
|
|
4352
|
+
}>;
|
|
4353
|
+
/** Background data for computing interventional expectations */
|
|
4354
|
+
readonly background: MatrixType<FloatType>;
|
|
4355
|
+
}>;
|
|
4356
|
+
}>;
|
|
2734
4357
|
/** Any model blob type for kernel explainer */
|
|
2735
4358
|
readonly AnyModelBlobType: VariantType<{
|
|
2736
4359
|
readonly xgboost_regressor: StructType<{
|