主要内容

模型度量

收集模型合规性度量数据并创建自定义模型度量

注意

度量仪表板将在以后的版本中删除。

如果您目前仅使用度量仪表板来分析模型大小、架构和复杂性,则可以改用模型维护仪表板。有关信息,请参阅Migrating from Metrics Dashboard to Model Maintainability Dashboard

您可以使用模型度量来评估模型和代码是否符合大小、复杂度和可读性要求。使用模型度量 API 创建自定义模型度量,计算度量结果,并导出度量数据。使用度量仪表板来可视化模型的度量数据和合规性状态。要快速入门,请参阅使用度量仪表板收集和探查度量数据

全部展开

slmetric.Engine(To be removed) Collect metric data on models or model components
slmetric.metric.MetaInformation(To be removed) Access meta-information for metrics
slmetric.metric.Result(To be removed) Metric data for specified model component and metric algorithm
slmetric.metric.ResultCollection(To be removed) Metric data for specified model metric
slmetric.metric.ResultDetail(To be removed) Details about instances of slmetric.metric.Result objects
slmetric.metric.ResultClassification(To be removed) Access metric data thresholds results
slmetric.config.Configuration(即将删除)指定度量数据类别和自定义度量族别
slmetric.config.ThresholdConfiguration(即将删除)指定用于设置阈值的度量和 slmetric.metric.Result 属性
slmetric.config.Threshold(To be removed) Object for holding metric result thresholds
slmetric.config.Classification(将删除)指定分类度量数据范围
slmetric.config.MetricRange(To be removed) Specify metric data threshold values
slmetric.dashboard.Configuration(To be removed) Object containing information on Metrics Dashboard layout and widgets
slmetric.dashboard.Container (即将删除)在度量仪表板中用于承载 slmetric.dashboard.Widgetslmetric.dashboard.CustomWidget 对象的小组件
slmetric.dashboard.CustomWidget(To be removed) Object for holding custom Metrics Dashboard widgets
slmetric.dashboard.Group(To be removed) Widget for holding slmetric.dashboard.Container, slmetric.dashboard.Widget and slmetric.dashboard.CustomWidget objects on Metrics Dashboard
slmetric.dashboard.Layout(将删除)创建用于保留度量仪表板自定义的对象
slmetric.dashboard.Widget(To be removed) Object for holding Actual/Potential Reuse, System Interface, or System Info widgets
Advisor.component.Component创建用于度量分析的组件
Advisor.component.Types创建指定组件类型的 enum
slmetric.metric.Metric(To be removed) Abstract class for creating model metrics

函数

全部展开

metricsdashboard(将删除)打开度量仪表板
slmetric.metric.getAvailableMetrics(将删除)获取可用度量
slmetric.config.getActiveConfiguration(即将删除)获取包含活动度量仪表板自定义配置的 XML 文件的路径和名称
slmetric.config.setActiveConfiguration(将删除)激活自定义配置以供度量引擎使用
slmetric.dashboard.setActiveConfiguration(将删除)激活自定义度量仪表板布局
slmetric.dashboard.getActiveConfiguration(即将删除)获取包含当前度量仪表板布局的 XML 文件的路径和名称
slmetric.metric.createNewMetricClass(To be removed) Create new metric class for a custom model metric
slmetric.metric.registerMetric(To be removed) Register a custom model metric with the model metric repository
slmetric.metric.unregisterMetric(即将删除)从模型度量存储库中注销自定义模型度量
slmetric.metric.refresh(将删除)更新可用的模型度量

主题

迁移到模型维护仪表板A

探查度量数据

自定义度量和仪表板功能