Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequestGcsTrainingInput
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequestGcsTrainingInput
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb
Overview
Cloud Storage training data input.
Instance Attribute Summary collapse
-
#corpus_data_path ⇒ String
The Cloud Storage corpus data which could be associated in train data.
-
#query_data_path ⇒ String
The gcs query data which could be associated in train data.
-
#test_data_path ⇒ String
Cloud Storage test data.
-
#train_data_path ⇒ String
Cloud Storage training data path whose format should be
gs:///
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequestGcsTrainingInput
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequestGcsTrainingInput.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequestGcsTrainingInput
Returns a new instance of GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequestGcsTrainingInput.
13302 13303 13304 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 13302 def initialize(**args) update!(**args) end |
Instance Attribute Details
#corpus_data_path ⇒ String
The Cloud Storage corpus data which could be associated in train data. The
data path format is gs:///
. A newline delimited jsonl/ndjson file. For
search-tuning model, each line should have the _id, title and text. Example:
"_id": "doc1", title: "relevant doc", "text": "relevant text"
Corresponds to the JSON property corpusDataPath
13276 13277 13278 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 13276 def corpus_data_path @corpus_data_path end |
#query_data_path ⇒ String
The gcs query data which could be associated in train data. The data path
format is gs:///
. A newline delimited jsonl/ndjson file. For search-tuning
model, each line should have the _id and text. Example: "_id": "query1", "
text": "example query"
Corresponds to the JSON property queryDataPath
13284 13285 13286 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 13284 def query_data_path @query_data_path end |
#test_data_path ⇒ String
Cloud Storage test data. Same format as train_data_path. If not provided, a
random 80/20 train/test split will be performed on train_data_path.
Corresponds to the JSON property testDataPath
13290 13291 13292 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 13290 def test_data_path @test_data_path end |
#train_data_path ⇒ String
Cloud Storage training data path whose format should be gs:///
. The file
should be in tsv format. Each line should have the doc_id and query_id and
score (number). For search-tuning model, it should have the query-id corpus-id
score as tsv file header. The score should be a number in [0, inf+)
. The
larger the number is, the more relevant the pair is. Example: * query-id\
tcorpus-id\tscore
* query1\tdoc1\t1
Corresponds to the JSON property trainDataPath
13300 13301 13302 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 13300 def train_data_path @train_data_path end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13307 13308 13309 13310 13311 13312 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 13307 def update!(**args) @corpus_data_path = args[:corpus_data_path] if args.key?(:corpus_data_path) @query_data_path = args[:query_data_path] if args.key?(:query_data_path) @test_data_path = args[:test_data_path] if args.key?(:test_data_path) @train_data_path = args[:train_data_path] if args.key?(:train_data_path) end |