Main Content

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

模型度量

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

您可以使用模型度量来评估模型和代码是否符合大小、复杂度和可读性要求。使用模型度量 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(To be removed) Specify metric data categories and custom metric families
slmetric.config.ThresholdConfiguration(To be removed) Specify metric and slmetric.metric.Result property for thresholding
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 (To be removed) Widget for holding slmetric.dashboard.Widget and slmetric.dashboard.CustomWidget objects in Metrics Dashboard
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.ComponentCreate component for metric analysis
Advisor.component.Types创建指定组件类型的 enum
slmetric.metric.Metric(To be removed) Abstract class for creating model metrics

函数

全部展开

metricsdashboard(将删除)打开度量仪表板
slmetric.metric.getAvailableMetrics(将删除)获取可用度量
slmetric.config.getActiveConfiguration(To be removed) Obtain file path and name of XML file containing active Metrics Dashboard custom configuration
slmetric.config.setActiveConfiguration激活自定义配置以供度量引擎使用
slmetric.dashboard.setActiveConfiguration激活自定义度量仪表板布局
slmetric.dashboard.getActiveConfiguration(To be removed) Obtain file path and name of XML file containing active Metrics Dashboard layout
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(To be removed) Unregister a custom model metric from the model metric repository
slmetric.metric.refresh更新可用的模型度量

主题

探查度量数据

自定义度量和仪表板功能