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

159 lines
5.6 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_4
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 DataAnalysis
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
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_4::Input::Input, decorator: Google::Apis::PredictionV1_4::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_4::Output::OutputMulti, decorator: Google::Apis::PredictionV1_4::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 :data_analysis, as: 'dataAnalysis', class: Google::Apis::PredictionV1_4::Training::DataAnalysis, decorator: Google::Apis::PredictionV1_4::Training::DataAnalysis::Representation
property :id, as: 'id'
property :kind, as: 'kind'
property :model_info, as: 'modelInfo', class: Google::Apis::PredictionV1_4::Training::ModelInfo, decorator: Google::Apis::PredictionV1_4::Training::ModelInfo::Representation
property :self_link, as: 'selfLink'
property :storage_data_location, as: 'storageDataLocation'
property :storage_pmml_location, as: 'storagePMMLLocation'
property :storage_pmml_model_location, as: 'storagePMMLModelLocation'
property :training_status, as: 'trainingStatus'
collection :utility, as: 'utility'
end
class DataAnalysis
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :warnings, as: 'warnings'
end
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_instances, :numeric_string => true, as: 'numberInstances'
property :number_labels, :numeric_string => true, as: 'numberLabels'
end
end
end
class Update
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :csv_instance, as: 'csvInstance'
property :label, as: 'label'
property :output, as: 'output'
end
end
end
end
end