Main Content

本页翻译不是最新的。点击此处可查看最新英文版本。

模型指标

收集模型合规性指标数据并创建自定义模型指标

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

全部展开

slmetric.Engine(To be removed) Collect metric data on models or model components
slmetric.metric.MetaInformation Set metadata for custom 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 Access metric data thresholds results
slmetric.config.Configuration Specify metric data categories and custom metric families
slmetric.config.ThresholdConfiguration Specify metric and slmetric.metric.Result property for thresholding
slmetric.config.Threshold Object for holding metric result thresholds
slmetric.config.ClassificationSpecify categorical metric data ranges
slmetric.config.MetricRangeSpecify metric data threshold values
slmetric.dashboard.ConfigurationObject containing information on Metrics Dashboard layout and widgets
slmetric.dashboard.Container Widget for holding slmetric.dashboard.Widget and slmetric.dashboard.CustomWidget objects in Metrics Dashboard
slmetric.dashboard.CustomWidgetObject for holding custom Metrics Dashboard widgets
slmetric.dashboard.Group Widget for holding slmetric.dashboard.Container, slmetric.dashboard.Widget and slmetric.dashboard.CustomWidget objects on Metrics Dashboard
slmetric.dashboard.Layout Create object for holding Metrics Dashboard customizations
slmetric.dashboard.WidgetObject for holding Actual/Potential Reuse, System Interface, or System Info widgets
Advisor.component.ComponentCreate component for metric analysis
Advisor.component.Types创建指定组件类型的 enum
slmetric.metric.MetricAbstract class for creating model metrics

函数

全部展开

metricsdashboard(将删除)打开指标仪表板
slmetric.metric.getAvailableMetrics(将删除)获取可用指标
slmetric.config.getActiveConfigurationObtain file path and name of XML file containing active Metrics Dashboard custom configuration
slmetric.config.setActiveConfiguration激活自定义配置以供指标引擎使用
slmetric.dashboard.setActiveConfiguration激活自定义指标仪表板布局
slmetric.dashboard.getActiveConfigurationObtain file path and name of XML file containing active Metrics Dashboard layout
slmetric.metric.createNewMetricClassCreate new metric class for a custom model metric
slmetric.metric.registerMetricRegister a custom model metric with the model metric repository
slmetric.metric.unregisterMetricUnregister a custom model metric from the model metric repository
slmetric.metric.refresh更新可用的模型指标

主题

探查指标数据

自定义指标和仪表板功能