ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Aide
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plateforme cartographique de votre organisation

ArcGIS Desktop

Un SIG professionnel complet

ArcGIS Enterprise

SIG dans votre entreprise

ArcGIS Developers

Outils de création d'applications de localisation

ArcGIS Solutions

Modèles d'applications et de cartes gratuits pour votre secteur d'activité

ArcGIS Marketplace

Téléchargez des applications et des données pour votre organisation.

  • Documentation
  • Support
Esri
  • Se connecter
user
  • Mon profil
  • Déconnexion

ArcMap

  • Accueil
  • Commencer
  • Carte
  • Analyser
  • Gérer les données
  • Outils
  • Extensions

CrossValidationResult

  • Résumé
  • Discussion
  • Propriétés
  • Vue d’ensemble des méthodes
  • Méthodes
  • Exemple de code

Résumé

The CrossValidationResult class is returned by the Cross Validation tool and contains access to the cross-validation results that can be generated for any geostatistical layer.

Discussion

The CrossValidationResult class is similar to the Result class except for the additional read-only properties that it contains. For detailed help, see the Cross Validation tool.

Only the mean and root mean square error results are available for IDW, Global Polynomial Interpolation, Radial Basis Functions, Diffusion Interpolation With Barriers, and Kernel Interpolation With Barriers.

Propriétés

PropriétéExplicationType de données
averageStandard
(Lecture seule)

The average of the prediction standard errors.

Double
count
(Lecture seule)

The number of input samples.

Long
inputCount
(Lecture seule)

Returns the number of inputs.

Integer
maxSeverity
(Lecture seule)

Returns the maximum severity of the messages.

  • 0 —If the tool produced only informative messages.
  • 1 — If the tool produced a warning message, but no error messages.
  • 2 — If the tool produced an error message.
Integer
meanError
(Lecture seule)

The averaged difference between the measured and the predicted values.

Double
meanStandardized
(Lecture seule)

Mean standardized error.

Double
messageCount
(Lecture seule)

Returns the number of messages.

Integer
outputCount
(Lecture seule)

Returns the number of outputs.

Integer
resultID
(Lecture seule)

Gets the job ID. If the tool is not a geoprocessing service, the resultID will be "".

String
rootMeanSquare
(Lecture seule)

The root mean square error.

Double
rootMeanSquareStandardized
(Lecture seule)

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
(Lecture seule)

Gets the job status.

  • 0 —New
  • 1 —Submitted
  • 2 —Waiting
  • 3 —Executing
  • 4 —Succeeded
  • 5 —Failed
  • 6 —Timed out
  • 7 —Cancelling
  • 8 —Cancelled
  • 9 —Deleting
  • 10 —Deleted
Integer

Vue d’ensemble des méthodes

MéthodeExplication
cancel ()

Cancels an associated job

getInput (index)

Returns a given input, either as a recordset or string.

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

Returns a map service image for a given output, if one exists.

getMessage (index)

Returns a specific message by index position.

getMessages ({severity})

Returns the geoprocessing tool messages.

getOutput (index)

Returns a given output, either as a string or a RecordSet.

If the output of the tool, such as Make Feature Layer, is a layer, getOutput will return a Layer object.

getSeverity (index)

Returns the severity of a specific message.

Méthodes

cancel ()
getInput (index)
ParamètreExplicationType de données
index

The index position of the input.

Integer

Valeur renvoyée

Type de donnéesExplication
Object

The input, either as a recordset or string.

getMapImageURL ({parameter_list}, {height}, {width}, {resolution})
ParamètreExplicationType de données
parameter_list

The parameters on which the map service image will be based.

Integer
height

The height of the image.

Double
width

The width of the image.

Double
resolution

The resolution of the image.

Double

Valeur renvoyée

Type de donnéesExplication
String

The URL of the map image.

getMessage (index)
ParamètreExplicationType de données
index

The index position of the message.

Integer

Valeur renvoyée

Type de donnéesExplication
String

The geoprocessing message.

getMessages ({severity})
ParamètreExplicationType de données
severity

The type of messages to be returned.

  • 0 —Informative, warning, and error messages are returned.
  • 1 —Only warning messages are returned.
  • 2 —Only error messages are returned.

Not specifying a severity level will return all types of messages.

(La valeur par défaut est 0)

Integer

Valeur renvoyée

Type de donnéesExplication
String

The geoprocessing tool messages.

getOutput (index)
ParamètreExplicationType de données
index

The index position of the outputs.

Integer

Valeur renvoyée

Type de donnéesExplication
Object

The output, either as a recordset or a string.

If the output of the tool, such as Make Feature Layer, is a layer, getOutput will return a Layer object.

Result outputs can also be accessed by index, so result.getOutput(0) and result[0] are equivalent.

getSeverity (index)
ParamètreExplicationType de données
index

The message index position.

Integer

Valeur renvoyée

Type de donnéesExplication
Integer

The severity of the specific message.

  • 0 —Informative, warning, and error messages are returned.
  • 1 —Only warning messages are returned.
  • 2 —Only error messages are returned.

Exemple de code

CrossValidation (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 (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)

ArcGIS Desktop

  • Accueil
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

A propos d'Esri

  • A propos de la société
  • Carrières
  • Blog d’Esri
  • Conférence des utilisateurs
  • Sommet des développeurs
Esri
Donnez-nous votre avis.
Copyright © 2021 Esri. | Confidentialité | Légal