Class: Google::Apis::LanguageV1::XpsTrainingObjectivePoint

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsTrainingObjectivePoint

Returns a new instance of XpsTrainingObjectivePoint.



4842
4843
4844
# File 'lib/google/apis/language_v1/classes.rb', line 4842

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

Instance Attribute Details

#create_timeString

The time at which this point was recorded. Corresponds to the JSON property createTime

Returns:

  • (String)


4835
4836
4837
# File 'lib/google/apis/language_v1/classes.rb', line 4835

def create_time
  @create_time
end

#valueFloat

The objective value when this point was recorded. Corresponds to the JSON property value

Returns:

  • (Float)


4840
4841
4842
# File 'lib/google/apis/language_v1/classes.rb', line 4840

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4847
4848
4849
4850
# File 'lib/google/apis/language_v1/classes.rb', line 4847

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @value = args[:value] if args.key?(:value)
end