ArcGIS Desktop

  • 文档
  • 支持

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS for Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

ArcMap

  • 主页
  • 入门
  • 地图
  • 分析
  • 管理数据
  • 工具
  • 扩展模块

CrossValidationResult

  • 摘要
  • 说明
  • 属性
  • 方法概述
  • 方法
  • 代码示例

摘要

CrossValidationResult 类由交叉验证工具返回,且具有访问为任何地统计图层生成的交叉验证结果的权限。

说明

CrossValidationResult 类除了包含附加只读属性外,与 Result 类相似。有关详细帮助信息,请参阅交叉验证工具。

对于反距离权重法、全局多项式插值法、径向基函数插值法、含障碍的扩散插值法和含障碍的核插值法,只提供平均误差和均方根误差结果。

属性

属性说明数据类型
averageStandard
(只读)

The average of the prediction standard errors.

Double
count
(只读)

The number of input samples.

Long
inputCount
(只读)

返回输入数目。

Integer
maxSeverity
(只读)

返回消息的最大严重性。

  • 0 —如果工具仅产生了信息性消息。
  • 1 — 如果工具产生了警告消息,但未出现错误消息。
  • 2 — 如果工具产生了错误消息。
Integer
meanError
(只读)

The averaged difference between the measured and the predicted values.

Double
meanStandardized
(只读)

Mean standardized error.

Double
messageCount
(只读)

返回消息数目。

Integer
outputCount
(只读)

返回输出数目。

Integer
resultID
(只读)

获得作业 ID。如果工具不是地理处理服务,resultID 将为 ""。

String
rootMeanSquare
(只读)

The root mean square error.

Double
rootMeanSquareStandardized
(只读)

The root mean square standardized error should be close to 1 if the prediction standard errors are valid. If the root mean square standardized error is greater than 1, you are underestimating the variability in your predictions. If the root mean square standardized error is less than 1, you are overestimating the variability in your predictions.

Double
status
(只读)

获得作业状态。

  • 0 —新建
  • 1 —已提交
  • 2 —正在等待
  • 3 —执行中
  • 4 —成功
  • 5 —失败
  • 6 —超时
  • 7 —正在取消
  • 8 —已取消
  • 9 —删除中
  • 10 —已删除
Integer

方法概述

方法说明
cancel ()

取消关联的作业

getInput (index)

以记录集或字符串的形式返回给定的输入。

getMapImageURL ({parameter_list}, {height}, {width}, {resolution})

获取给定输出的地图服务影像(如果存在)。

getMessage (index)

返回特定消息。

getMessages ({severity})

返回消息。

getOutput (index)

以记录集或者字符串形式返回给定的输出。

如果工具(如 MakeFeatureLayer)的输出是一个图层,则 getOutput 将返回 Layer 对象。

getSeverity (index)

返回特定消息的严重性。

方法

cancel ()
getInput (index)
参数说明数据类型
index

输入的索引位置。

Integer

返回值

数据类型说明
Object

记录集或者字符串形式的输入。

getMapImageURL ({parameter_list}, {height}, {width}, {resolution})
参数说明数据类型
parameter_list

地图服务影像所基于的参数。

Integer
height

影像的高度。

Double
width

影像的宽度。

Double
resolution

影像的分辨率。

Double

返回值

数据类型说明
String

地图影像的 URL。

getMessage (index)
参数说明数据类型
index

消息的索引位置。

Integer

返回值

数据类型说明
String

地理处理消息。

getMessages ({severity})
参数说明数据类型
severity

要返回的消息类型:0 = 消息,1 = 警告,2 = 错误。如果未指定值,则返回所有消息类型。

  • 0 —信息性消息
  • 1 —警告消息
  • 2 —错误消息

(默认值为 0)

Integer

返回值

数据类型说明
String

地理处理消息。

getOutput (index)
参数说明数据类型
index

The index position of the outputs.

Integer

返回值

数据类型说明
Object

输出为记录集或者字符串形式。

如果工具(如 MakeFeatureLayer)的输出是一个图层,则 getOutput 将返回 Layer 对象。

还可按索引访问结果输出,因此 result.getOutput(0) 和 result[0] 是等效的。

getSeverity (index)
参数说明数据类型
index

消息索引位置。

Integer

返回值

数据类型说明
Integer

特定消息的严重性。

  • 0 —信息性消息
  • 1 —警告消息
  • 2 —错误消息

代码示例

CrossValidation(Python 窗口)

对输入地统计图层执行交叉验证。

import arcpy
arcpy.env.workspace = "C:/gapyexamples/data"
cvResult = arcpy.CrossValidation_ga("C:/gapyexamples/data/kriging.lyr")
print "Root Mean Square error = " + str(cvResult.rootMeanSquare)
CrossValidation(独立脚本)

对输入地统计图层执行交叉验证。

# Name: CrossValidation_Example_02.py
# Description: Perform cross validation on an input geostatistical layer.
# Requirements: Geostatistical Analyst Extension

# Import system modules
import arcpy

# Set environment settings
arcpy.env.workspace = "C:/gapyexamples/data"

# Set local variables
inLayer = "C:/gapyexamples/data/kriging.lyr"

# Check out the ArcGIS Geostatistical Analyst extension license
arcpy.CheckOutExtension("GeoStats")

# Execute CrossValidation
cvResult = arcpy.CrossValidation_ga(inLayer)
print "Root Mean Square error = " + str(cvResult.rootMeanSquare)

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS 平台

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

  • 关于我们
  • 招贤纳士
  • 内部人员博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2018 Esri. | 隐私政策 | 法律声明