This task uploads a trained ENVI Machine Learning model package to an ENVI Repository.

Example


; Start the application
e = ENVI()
 
; Open a custom input file
File = Filepath('qb_boulder_msi', Subdir=['data'], $
Root_Dir=e.Root_Dir)
Raster = e.OpenRaster(File)
 
; Get the task from the catalog of ENVITasks
Task = ENVITask('PublishToRepository')
 
; Get URL for repository
;***Not sure what to suggest here***
 
; Define inputs
Task.INPUT_RASTER=Raster
Task.REPOSITORY_URL = Server_URL
 
; Run the task
Task.Execute

Syntax


Result = ENVITask('PublishMachineLearningModel')

Input parameters (Set, Get): INPUT_MODEL, PACKAGE_DESCRIPTION, PACKAGE_DISPLAY_NAME, PACKAGE_NAME, PACKAGE_VERSION, REPOSITORY_URL

Output parameters (Get only): LOG, UID

Parameters marked as "Set" are those that you can set to specific values. You can also retrieve their current values any time. Parameters marked as "Get" are those whose values you can retrieve but not set.

Input Parameters


INPUT_MODEL (optional)

If your input data type is not covered by any of the other parameters described below (e.g., Deep Learning models), specify the input using this parameter.

LOG (optional)

A log of all the upload transactions with the repository. Use this parameter for tracking and debugging purposes.

PACKAGE_DISPLAY_NAME (required)

Specify the human-readable name of the package to be displayed in the ENVI Repository. This name is used to identify and distinguish the package. The MODEL_NAME value will be used as the default if not overridden.

PACKAGE_DESCRIPTION (required)

Specify a comprehensive summary of the package being uploaded to the ENVI Repository, including its purpose, key features, and any relevant details about its application.

PACKAGE_NAME (required)

Specify the name of the package. This parameter serves as a human-readable identifier to distinguish between packages and provide contextual information.

PACKAGE_VERSION (required)

Specify the version for the package. This parameter is used to track the iteration or release of the package for documentation, debugging, and compatibility purposes.

REPOSITORY_URL (optional)

Specify the address of the ENVI Repository server to use. If not specified, a previously registered server in ENVI will be used by default.

Output Parameters


LOG

A log of all the upload transactions with the repository. Use this parameter for tracking and debugging purposes.

UID

The Universal Identifier(s) of the published package(s).

Methods


Execute

Parameter

ParameterNames

See ENVI Help for details on these ENVITask methods.

Properties


DESCRIPTION

DISPLAY_NAME

NAME

REVISION

See the ENVITask topic in ENVI Help for details.

Version History


Machine Learning 6.2

Introduced

See Also


Refer to ENVI Help for more details on the ENVI Repository.