11 Star 55 Fork 20

MindSpore / xai

 / 详情

[finic] Modify the LIMETabular interface

DONE
RFC 拥有者
创建于  
2022-02-23 15:32

Modify the LIMETabular interface to :

class LIMETabular:
    def __init__(self, 
                 predictor,
                 train_feat_stats,
                 feature_names=None,
                 categorical_features=None,
                 class_names=None,
                 num_perturbs=5000,
                 max_features=10):
        ...
    def __call__(self,
                 inputs,
                 targets=0,
                 show=None):
        ...
    @staticmethod
    def to_feat_stats(features, feature_names=None, categorical_features=None):
        ...
    @staticmethod
    def save_feat_stats(stats, file):
        ...

** Other Modifications **

  • expect predictor is Callable only, do not expect type nn.Cell
  • do not call set_train() nor set_grad() or any other functions (except call()) of the predictor

评论 (0)

TonyNG 创建了RFC
TonyNG 修改了描述
TonyNG 修改了描述
TonyNG 修改了描述
TonyNG 修改了描述
TonyNG 修改了描述
TonyNG 修改了描述
TonyNG 任务类型RFC 修改为Task-Tracking
TonyNG 修改了描述
TonyNG 修改了描述
TonyNG 修改了描述
TonyNG 修改了描述
fujianzhao 计划开始日期设置为2022-02-24
fujianzhao 计划截止日期设置为2022-02-24
TonyNG 任务类型Task-Tracking 修改为RFC
fujianzhao 通过mindspore/xai Pull Request !47任务状态TODO 修改为DONE
fujianzhao 关联分支finic 修改为未关联
展开全部操作日志

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(1)
Python
1
https://gitee.com/mindspore/xai.git
git@gitee.com:mindspore/xai.git
mindspore
xai
xai

搜索帮助