Cross Validation (Geostatisical Analyst)

Niveau de licence :BasicStandardAdvanced

Récapitulatif

Removes one data location then predicts the associated data using the data at the rest of the locations. The primary use for this tool is to compare the predicted value to the observed value in order to obtain useful information about some of your model parameters.

Utilisation

Syntaxe

CrossValidation_ga (in_geostat_layer, {out_point_feature_class})
ParamètreExplicationType de données
in_geostat_layer

The geostatistical layer to be analyzed.

Geostatistical Layer
out_point_feature_class
(Facultatif)

Stores the cross-validation statistics at each location in the geostatistical layer.

Feature Class

Exemple de code

CrossValidation example 1 (Python window)

Perform cross validation on an input geostatistical layer.

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 example 2 (stand-alone script)

Perform cross validation on an input geostatistical layer.

# 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)

Environnements

Thèmes connexes

Informations de licence

ArcGIS for Desktop Basic: Requis Geostatistical Analyst
ArcGIS for Desktop Standard: Requis Geostatistical Analyst
ArcGIS for Desktop Advanced: Requis Geostatistical Analyst
4/26/2014