Job Operations
Creating jobs
Creating a privacy computing job
POST
https://www.phoenix.global/sdk/computation/panel/createJobByInput
Create a privacy computing job. The computation data of the job is input through the keyboard.
Headers
token*
string
The token generated in the previous step
Request Body
computation*
string
Computation type. One of "Privacy Comparison", "Matrix Addition", and "Matrix Multiplication"
input*
string
Data used for computing, formatted as a matrix,such as "[[18,34,18.2]]"
jobName*
string
Job name that cannot be repeated
parties*
string array
Computation participants. The current version of the input type job has three parties. Participants need to provide computation data and can view the computation results on the phoenix blockchain.
The usage of curl and golang sdk is as follows:
Creating a machine learning classification job
POST
https://www.phoenix.global/sdk/computation/panel/createJobByFile
Create a machine learning classification job. The participant of the job is the creator.
Headers
token*
string
The token generated in the previous step
Request Body
computation*
string
Form data. Computation type. One of "Decision Tree", "Logistic Regression", "SVM" and "Deep Learning MLP"
jobName*
string
Form data. Job name
featureData*
file
Form data. Feature dataset in .CSV format, cannot contain special characters
targetData*
file
Form data. Target dataset in .CSV format, cannot contain special characters
testingData
file
Form data. Testing dataset in .CSV format, cannot contain special characters. The dimensions of testing dataset and feature dataset should be same
The usage of curl and golang sdk is as follows:
Creating a machine learning clustering job
POST
https://www.phoenix.global/sdk/computation/panel/createJobByFile
Create a machine learning clustering job, which only needs to upload a feature dataset file.
Headers
token*
string
The token generated in the previous step
Request Body
computation*
string
Form data. Computation type. One of "Birch Clustering", "K-Means Clustering", and "Spectral Clustering"
jobName*
string
Form data. Job name
featureData*
string
Form data. Feature dataset in .CSV format, cannot contain special characters
The usage of curl and golang sdk is as follows:
Filling data
Filling in the computation data for the job of input type
POST
https://www.phoenix.global/sdk/computation/panel/fillData
Fill data for job of input type. The user who fills in the data must be a participant of the job.
Headers
token*
string
The token generated in the previous step
Request Body
input*
string
Data used for computing, formatted as a matrix,such as "[[18,34,18.2]]"
jobID*
string
The job id returned when creating a job
The usage of curl and golang sdk is as follows:
Deleting job
Deleting job by job id
POST
https://www.phoenix.global/sdk/computation/panel/deleteJobByUser
Delete a job according to job id. Only the creator has permission to delete
Headers
token*
string
The token generated in the previous step
Request Body
jobID*
string
The job id returned when creating a job