Class: Google::Cloud::AIPlatform::V1::Presets

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/aiplatform/v1/explanation.rb

Overview

Preset configuration for example-based explanations

Defined Under Namespace

Modules: Modality, Query

Instance Attribute Summary collapse

Instance Attribute Details

#modality::Google::Cloud::AIPlatform::V1::Presets::Modality

Returns The modality of the uploaded model, which automatically configures the distance measurement and feature normalization for the underlying example index and queries. If your model does not precisely fit one of these types, it is okay to choose the closest type.

Returns:

  • (::Google::Cloud::AIPlatform::V1::Presets::Modality)

    The modality of the uploaded model, which automatically configures the distance measurement and feature normalization for the underlying example index and queries. If your model does not precisely fit one of these types, it is okay to choose the closest type.



508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
# File 'proto_docs/google/cloud/aiplatform/v1/explanation.rb', line 508

class Presets
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Preset option controlling parameters for query speed-precision trade-off
  module Query
    # More precise neighbors as a trade-off against slower response.
    PRECISE = 0

    # Faster response as a trade-off against less precise neighbors.
    FAST = 1
  end

  # Preset option controlling parameters for different modalities
  module Modality
    # Should not be set. Added as a recommended best practice for enums
    MODALITY_UNSPECIFIED = 0

    # IMAGE modality
    IMAGE = 1

    # TEXT modality
    TEXT = 2

    # TABULAR modality
    TABULAR = 3
  end
end

#query::Google::Cloud::AIPlatform::V1::Presets::Query

Returns Preset option controlling parameters for speed-precision trade-off when querying for examples. If omitted, defaults to PRECISE.

Returns:



508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
# File 'proto_docs/google/cloud/aiplatform/v1/explanation.rb', line 508

class Presets
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Preset option controlling parameters for query speed-precision trade-off
  module Query
    # More precise neighbors as a trade-off against slower response.
    PRECISE = 0

    # Faster response as a trade-off against less precise neighbors.
    FAST = 1
  end

  # Preset option controlling parameters for different modalities
  module Modality
    # Should not be set. Added as a recommended best practice for enums
    MODALITY_UNSPECIFIED = 0

    # IMAGE modality
    IMAGE = 1

    # TEXT modality
    TEXT = 2

    # TABULAR modality
    TABULAR = 3
  end
end