ee.Model.fromAiPlatformPredictor

Returns an ee.Model from a description of an AI Platform prediction model. (See https://cloud.google.com/ml-engine/).
UsageReturns
ee.Model.fromAiPlatformPredictor(projectName, projectId, modelName, version, region, inputProperties, inputTypeOverride, inputShapes, proj, fixInputProj, inputTileSize, inputOverlapSize, outputTileSize, outputBands, outputProperties, outputMultiplier)Model
ArgumentTypeDetails
projectNameObject, default: nullThe Google Cloud project that owns the model. Deprecated: use "projectId" instead.
projectIdString, default: nullThe ID of the Google Cloud project that owns the model.
modelNameString, default: nullThe name of the model.
versionString, default: nullThe model version. Defaults to the AI Platform default model version.
regionString, default: nullThe model deployment region. Defaults to "us-central1".
inputPropertiesList, default: nullProperties passed with each prediction instance. Image predictions are tiled, so these properties will be replicated into each image tile instance. Defaults to no properties.
inputTypeOverrideDictionary, default: nullTypes to which model inputs will be coerced if specified. Both Image bands and Image/Feature properties are valid.
inputShapesDictionary, default: nullThe fixed shape of input array bands. For each array band not specified, the fixed array shape will be automatically deduced from a non-masked pixel.
projProjection, default: nullThe input projection at which to sample all bands. Defaults to the default projection of an image's first band.
fixInputProjBoolean, default: nullIf true, pixels will be sampled in a fixed projection specified by 'proj'. The output projection is used otherwise. Defaults to false.
inputTileSizeList, default: nullRectangular dimensions of pixel tiles passed in to prediction instances. Required for image predictions.
inputOverlapSizeList, default: nullAmount of adjacent-tile overlap in X/Y along each edge of pixel tiles passed in to prediction instances. Defaults to [0, 0].
outputTileSizeList, default: nullRectangular dimensions of pixel tiles returned from AI Platform. Defaults to the value in 'inputTileSize'.
outputBandsDictionary, default: nullA map from output band names to a dictionary of output band info. Valid band info fields are 'type' and 'dimensions'. 'type' should be a ee.PixelType describing the output band, and 'dimensions' is an optional integer with the number of dimensions in that band e.g.: "outputBands: {'p': {'type': ee.PixelType.int8(), 'dimensions': 1}}". Required for image predictions.
outputPropertiesDictionary, default: nullA map from output property names to a dictionary of output property info. Valid property info fields are 'type' and 'dimensions'. 'type' should be a ee.PixelType describing the output property, and 'dimensions' is an optional integer with the number of dimensions for that property if it is an array e.g.: "outputBands: {'p': {'type': ee.PixelType.int8(), 'dimensions': 1}}". Required for predictions from FeatureCollections.
outputMultiplierFloat, default: nullAn approximation to the increase in data volume for the model outputs over the model inputs. If specified this must be >= 1. This is only needed if the model produces more data than it consumes, e.g. a model that takes 5 bands and produces 10 outputs per pixel.