Class: Google::Apis::LanguageV1beta2::XpsImageSegmentationTrainResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/language_v1beta2/classes.rb,
lib/google/apis/language_v1beta2/representations.rb,
lib/google/apis/language_v1beta2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsImageSegmentationTrainResponse

Returns a new instance of XpsImageSegmentationTrainResponse.



3002
3003
3004
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3002

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#color_mapsArray<Google::Apis::LanguageV1beta2::XpsColorMap>

Color map of the model. Corresponds to the JSON property colorMaps



2968
2969
2970
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2968

def color_maps
  @color_maps
end

#export_model_specGoogle::Apis::LanguageV1beta2::XpsImageExportModelSpec

Information of downloadable models that are pre-generated as part of training flow and will be persisted in AutoMl backend. Upon receiving ExportModel request from user, AutoMl backend can serve the pre-generated models to user if exists (by copying the files from internal path to user provided location), otherwise, AutoMl backend will call xPS ExportModel API to generate the model on the fly with the requesting format. Corresponds to the JSON property exportModelSpec



2978
2979
2980
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2978

def export_model_spec
  @export_model_spec
end

#model_artifact_specGoogle::Apis::LanguageV1beta2::XpsImageModelArtifactSpec

Stores the locations and related metadata of the model artifacts. Populated for uCAIP requests only. Corresponds to the JSON property modelArtifactSpec



2984
2985
2986
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2984

def model_artifact_spec
  @model_artifact_spec
end

#model_serving_specGoogle::Apis::LanguageV1beta2::XpsImageModelServingSpec

Serving specification for image models. Corresponds to the JSON property modelServingSpec



2989
2990
2991
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2989

def model_serving_spec
  @model_serving_spec
end

#stop_reasonString

Stop reason for training job, e.g. 'TRAIN_BUDGET_REACHED', 'MODEL_CONVERGED'. Corresponds to the JSON property stopReason

Returns:

  • (String)


2994
2995
2996
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2994

def stop_reason
  @stop_reason
end

#train_cost_node_secondsFixnum

The actual train cost of creating this model, expressed in node seconds, i.e. 3,600 value in this field means 1 node hour. Corresponds to the JSON property trainCostNodeSeconds

Returns:

  • (Fixnum)


3000
3001
3002
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3000

def train_cost_node_seconds
  @train_cost_node_seconds
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3007
3008
3009
3010
3011
3012
3013
3014
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3007

def update!(**args)
  @color_maps = args[:color_maps] if args.key?(:color_maps)
  @export_model_spec = args[:export_model_spec] if args.key?(:export_model_spec)
  @model_artifact_spec = args[:model_artifact_spec] if args.key?(:model_artifact_spec)
  @model_serving_spec = args[:model_serving_spec] if args.key?(:model_serving_spec)
  @stop_reason = args[:stop_reason] if args.key?(:stop_reason)
  @train_cost_node_seconds = args[:train_cost_node_seconds] if args.key?(:train_cost_node_seconds)
end