-
Notifications
You must be signed in to change notification settings - Fork 12
1. Updating readme #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
snedamle
wants to merge
2
commits into
master
Choose a base branch
from
tribuo_classification
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -56,6 +56,14 @@ Micro Average | | | | | | |||||
| Macro Average | | | | | 0.500 | 0.186 | 0.271| | ||||||
| Balanced Error Rate | | | | | 0.500 | ||||||
|
|
||||||
| This sample demonstrates how you can integrate Tribuo and Conclave, to load and train a model. The model is evaluated based | ||||||
| off the testing data sent by the client. The evaluation result is sent back to the client, and we print it on the client's | ||||||
| screen. | ||||||
| This sample can be extended in a number of ways: | ||||||
| * The clients can tweak the model parameters, based off the evaluation result. The clients can then send | ||||||
| more training data to better train the model. | ||||||
| * The clients can further send out some input data, and the model can predict if the input data tumor is malignant or benign. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| ## How to run on a non-linux/mac system | ||||||
|
|
||||||
| Start the host on a non-Linux system, which will build the enclave and host by default in simulation mode. | ||||||
|
|
@@ -77,7 +85,7 @@ On other terminal, start a new client and pass in a new file name | |||||
| You can start as many clients as you want. Pass in the file names each time. Once all the clients pass in the training data, | ||||||
| train the model inside the enclave and retrieve the evaluation result. | ||||||
|
|
||||||
| ./gradlew client:run --args="EXECUTE <CONSTRAINT>" | ||||||
| ./gradlew client:run --args="EVALUATE <CONSTRAINT>" | ||||||
|
|
||||||
| ## How to run on a linux based system | ||||||
|
|
||||||
|
|
@@ -100,12 +108,16 @@ On other terminal, start a new client and pass in a new file name | |||||
| You can start as many clients as you want. Pass in the file names each time. Once all the clients pass in the training data, | ||||||
| train the model inside the enclave and retrieve the evaluation result. | ||||||
|
|
||||||
| ./gradlew client:run --args="EXECUTE <CONSTRAINT>" | ||||||
| ./gradlew client:run --args="EVALUATE <CONSTRAINT>" | ||||||
|
|
||||||
| To read more on Conclave go to the documentation site - https://docs.conclave.net | ||||||
|
|
||||||
|
|
||||||
| #### More about enclave constraint | ||||||
| The enclave constraint to be passed to the client arguments can be found printed during the build process as below: | ||||||
|
|
||||||
| Enclave code signer: AF89DF4211D742683C1CF940C78B7D5734CFAFA13EFAE65EC2A55643C0FE08CC | ||||||
|
|
||||||
| In this sample the `code signer` is used as enclave constraint, but you can also use the `code hash`. If you want to use it, remember to change the code of the client to: | ||||||
|
|
||||||
| `EnclaveConstraint.parse("C:"+ constraint +" SEC:INSECURE" ).check(attestation);` | ||||||
|
|
||||||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.