This repository has been archived by the owner on Dec 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from prasanna08/add-proto-files
Add proto files
- Loading branch information
Showing
3 changed files
with
67 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
.vscode/* | ||
third_party/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// coding: utf-8 | ||
// | ||
// Copyright 2020 The Oppia Authors. All Rights Reserved. | ||
// | ||
// 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. | ||
|
||
syntax = "proto3"; | ||
|
||
message TextClassifierFrozenModel { | ||
// The parameters of a trained text classifier model which are necessary | ||
// for inference. | ||
string model_json = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// coding: utf-8 | ||
// | ||
// Copyright 2020 The Oppia Authors. All Rights Reserved. | ||
// | ||
// 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. | ||
|
||
syntax = "proto3"; | ||
|
||
import "text_classifier.proto"; | ||
|
||
// Training job response payload contains job result of the training job | ||
// along with other metadata items such as vm_id (to identify which VM executed | ||
// this job) and signature of the payload for security purpose. | ||
message TrainingJobResponsePayload { | ||
// Job result of the training job. Job result contains the ID of the Job and | ||
// trained model (frozen model) of the job. | ||
message JobResult { | ||
// Id of the training job whose data is being stored. | ||
string job_id = 1; | ||
|
||
// Each of the classifier algorithms' proto message must be present in | ||
// the oneof classifier_data field. | ||
oneof classifier_frozen_model { | ||
TextClassifierFrozenModel text_classifier = 2; | ||
} | ||
} | ||
JobResult job_result = 1; | ||
|
||
// Id of the VM instance that trained the job. | ||
string vm_id = 2; | ||
|
||
// Signature of the job data for authenticated communication. | ||
string signature = 3; | ||
} |