Python編程語言學習:輸出一個類或者實例化對象的所有屬性和方法名
目錄
輸出一個類或者實例化對象的所有屬性和方法名
輸出結果
實現代碼
ActionOptimizer
AdditiveExplainer
Cohorts
DeepExplainer
Explainer
Explanation
GPUTreeExplainer
GradientExplainer
KernelExplainer
LinearExplainer
PartitionExplainer
PermutationExplainer
SamplingExplainer
TreeExplainer
__builtins__
__cached__
__doc__
__file__
__loader__
__name__
__package__
__path__
__spec__
__version__
_cext
_explanation
_serializable
actions
approximate_interactions
bar_plot
datasets
decision_plot
dependence_plot
embedding_plot
explainers
force_plot
getjs
group_difference_plot
have_matplotlib
image_plot
initjs
kmeans
links
maskers
matplotlib
models
monitoring_plot
multioutput_decision_plot
other
partial_dependence_plot
plots
sample
save_html
summary_plot
sys
text_plot
unsupported
utils
warnings
waterfall_plot
import shap
for item in dir(shap): # shap 是某類的一個實例化對象
print(item)