google-api-ruby-client/generated/google/apis/prediction_v1_3/representations.rb

140 lines
4.8 KiB
Ruby

# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module PredictionV1_3
class Input
class Representation < Google::Apis::Core::JsonRepresentation; end
class Input
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class Output
class Representation < Google::Apis::Core::JsonRepresentation; end
class OutputMulti
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class Training
class Representation < Google::Apis::Core::JsonRepresentation; end
class ModelInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class Update
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Input
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :input, as: 'input', class: Google::Apis::PredictionV1_3::Input::Input, decorator: Google::Apis::PredictionV1_3::Input::Input::Representation
end
class Input
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :csv_instance, as: 'csvInstance'
end
end
end
class Output
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :kind, as: 'kind'
property :output_label, as: 'outputLabel'
collection :output_multi, as: 'outputMulti', class: Google::Apis::PredictionV1_3::Output::OutputMulti, decorator: Google::Apis::PredictionV1_3::Output::OutputMulti::Representation
property :output_value, as: 'outputValue'
property :self_link, as: 'selfLink'
end
class OutputMulti
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :label, as: 'label'
property :score, as: 'score'
end
end
end
class Training
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :kind, as: 'kind'
property :model_info, as: 'modelInfo', class: Google::Apis::PredictionV1_3::Training::ModelInfo, decorator: Google::Apis::PredictionV1_3::Training::ModelInfo::Representation
property :self_link, as: 'selfLink'
property :training_status, as: 'trainingStatus'
collection :utility, as: 'utility'
end
class ModelInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :class_weighted_accuracy, as: 'classWeightedAccuracy'
property :classification_accuracy, as: 'classificationAccuracy'
hash :confusion_matrix, as: 'confusionMatrix'
hash :confusion_matrix_row_totals, as: 'confusionMatrixRowTotals'
property :mean_squared_error, as: 'meanSquaredError'
property :model_type, as: 'modelType'
property :number_classes, :numeric_string => true, as: 'numberClasses'
property :number_instances, :numeric_string => true, as: 'numberInstances'
end
end
end
class Update
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :class_label, as: 'classLabel'
collection :csv_instance, as: 'csvInstance'
end
end
end
end
end