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.



524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
# File 'proto_docs/google/cloud/aiplatform/v1/explanation.rb', line 524

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:



524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
# File 'proto_docs/google/cloud/aiplatform/v1/explanation.rb', line 524

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