Privacy-Preserving Network_Getting Started

Kiki.Chen

Privacy-Preserving Network_Getting Started

Introduction

The Privacy-Preserving Network is a platform to establish the capability for managing the full life cycle of Privacy-Preserving AI, and to suit the requirements of multiple applications, so as to realize the seamless collaboration of technologies (privacy-preserving, blockchain,artificial intelligence, etc) , resources(computing power, data, algorithms, etc) and economic model. It will tackle the problems of data silos, lower the barriers to privacy-preserving AI adoption, and build the next-generation infrastructure of artificial intelligence and digital economy .

Quick Start

Building a privacy-preserving AI project on the Privacy-Preserving Network platform mainly includes the following steps:

  • Login
  • [Data Preparation](#Data Preparation)
  • [Create a Project](#Create a Project)
  • [Create a Workflow](#Create a Workflow)
  • [Model Training](#Model Training)
  • [Model Prediction](#Model Prediction)
  • [Create a Job](#Create a Job)

Logging in

The privacy-preserving platform adopts a decentralized way to manage users. You only need a blockchain wallet that supports MetaMask extension to log in , without registering additional accounts. The steps are as follows:

1、Open the public beta address of the privacy-preserving platform in the Chrome browser: https://39.103.230.158:8443/moirae. Firstly, you need to skip the security verification , please click “Advanced”, and then click “Proceed to 39.103.230.158 (unsafe) “;

Chrome安全验证1_En
Chrome安全验证2_En

2、After entering the page Data Market , and click “Connect Wallet” in the upper right corner ;

数据市场_En

3、As the MetaMask installing window pops up, click the button “Install”, follow the prompts to create or import a wallet. You can skip this step if you have already installed it;

安装MetaMask扩展_En
  • Note: Metamask extension currently only supports Chrome browser.

4、Click “Connect Wallet” again, after the pop-up window appears, select “I have read and agreed to the “Term of Use” and “Privacy Policy”, then click “MetaMask”;

MetaMask钱包登录弹窗_En

5、When the “Signature” window pops up, click “Signature” to log in.

Data Preparation

At present, all the available data on the platform is for testing. Users only need to apply for the authorities of the data, which can be used after the data owners accept. Steps as follows:

1、After Logging in, enter the Data Market page, select any data and click “Apply” , then click the “Signature” button after the “Signature” window pops up ;

数据市场-已授权_En

2、Enter the “Data Application” page, choose the authorization method “Usage Period” or “Usage Count”, select the correspongding value, and then click “Apply”;

数据申请授权_En

3、Open the page”My Resources-Data”, you can view the list and authorization status of the data you have applied;

我的资源-数据_En

4、When the status changes to “Authorized”, it means the data authorization has succeeded, and the status on the Data Market page will also change to “Authorized”. Now you can use it for [Model Training](#Model Training)。

数据市场-已授权_En
  • Note: In Privacy-Preserving Computation tasks, it is generally necessary to apply at least two collaborators’ data, one as the “data initiator” (or “data queryer”) and the other as the “data responder” (or “data server”).

Create a Project

“Project” is a module for users to manage Privacy-Preserving Computation tasks. The platform users can create projects based on the Templates page, or independently create a project on the [Projects](https://39.103.230.158:8443/moirae/ project/all) page. The following are steps:

Create on the “Templates” page

1、After entering the Templates page, select one template and click “New Project”;

案例页_En

2、After the “New Project” page is loaded, the corresponding template has been selected by default, enter a project name and a description (not required), and click the “Submit” button to create a new project;

创建项目页_En

3、On the page” Projects “, click one project name to view its details, the “workflows” page will be loaded defaultly;

项目列表页_En

4、After the page “Workflows” is displayed, you will see one template has already existed。

工作流列表页_En

Create on the “Projects” page

1、Enter the page ” Projects “and click the button “New Project”;

项目列表页_En

2、Select one template (blank template will create a project without any entities), enter a project name and a description (not required), and click the “Submit” button to create a new project;

创建项目页_En

3、On the page” Projects “, click one project name to view its details, the “workflows” page will be loaded defaultly;

项目列表页_En

4、After the page “Workflows” is displayed, you can click “New Workflow” to start construct your project.

工作流列表页_En

Create a Workflow

“Workflow” is the main workspace for constructing and debugging your privacy-preserving computation tasks. Steps as follows:

1、Open the “Workflows” page and click the “New Workflow” button;

工作流列表页_En


2、Enter a “workflow name” and a “workflow description” (not required) , and then click “Submit”.

创建工作流_En
  • Note: You can also edit the workflow based on the templates directly.

Model Training

You can train privacy-preserving models without any codes in the workflows. The steps are as follows:

1、Click the workflow name selected on the page “Workflows” to view the details;

工作流列表页_En

2、After the page opens, click “Machine Learning” in “My Algorithms” module on the left, expand the list, and click the “Logistic Regression Training” button;

选择逻辑回归训练节点_En

3、The “Logistic Regression Training” node will appear in the center of the page, click it to open its configuration window on the right side;

逻辑回归训练节点配置-概述_En

4、In the node configuration window, click “Input” option, select the “Data Initiator” and “Data responders”, configure the corresponding ID column, labels, features, etc.

逻辑回归训练节点配置-输入_En
  • Note: In privacy logistic regression (vertical) model, the features of the data initiator and the data responders are generally different.

5、Click the “Output” option and choose whether to save to “Data Responders”;

逻辑回归训练节点配置-输出_En

6、Click the “Code” option to view the algorithm codes executed by the current node;

逻辑回归训练节点配置-代码_En

7、Click the “Environment” option, select the minimum requirements for computing resources, including CPU, memory, bandwidth, etc., and then select the “Max Duration”;

逻辑回归训练节点配置-环境_En
  • Note: The system will automatically allocate the best resources to run the task

8、After completing the configuration, click “Start” in the upper right corner of the page, and click “Signature”, then the workflow will start up;

启动工作流_En

9、After the workflow is completed, you can right-click the node “Logistic Regression Training” and click “Result” to view the training result;

逻辑回归训练-右键_En

10、In the pop-up window, you can view the result storage information.

逻辑回归训练-结果预览_En
  • Note: The result storage authorization is configured in the node [Output] option. If you are not the data collaborator, there will be no permission to view the result for you.

Model Prediction

You can use the trained privacy-preserving models to predict without any codes in the workflows. The steps are as follows:

1、After completing the [Model Training](#Model Training) step, click the “Logistic Regression Prediction” algorithm;

选择逻辑回归模型预测节点_En

2、The “Logistic Regression Prediction” node will appear in the center of the page, click it to open its configuration window on the right side;

逻辑回归预测节点配置-概述_En

3、In the node configuration window, click “Input” option, select the “Model” (default is the pre-node output model), “Data Initiator” and “Data Responders”, and configure the corresponding ID column, labels(not required), features, etc;

逻辑回归预测节点配置-输入_En

4、Click the “Output” option and choose whether to save to “Data Responders”;

逻辑回归预测节点配置-输出_En

5、Click the “Code” option to view the algorithm codes executed by the current node;

分类模型预测节点配置-代码_En

6、Click the “Environment” option, select the minimum requirements for computing resources, including CPU, memory, bandwidth, etc., and then select the “Max Duration”;;

逻辑回归预测节点配置-环境_En

7、After completing the configuration, click “Start” in the upper right corner of the page, and click “Signature”, then the workflow will start up;

启动工作流_En

8、After the workflow is completed, you can right-click the node “Logistic Regression Prediction” and click “Result” to view the prediction result;

逻辑回归预测-右键_En

9、In the pop-up window, you can view the result storage information。

逻辑回归预测-结果预览_En
  • Note: The result storage authorization is configured in the node [Output] option. If you are not the data collaborator, there will be no permission to view the result for you。

Create a Job

Jobs are used to execute and monitor schedule tasks. Steps as follows:

1、On the page ” Projects “, click any project name to enter its details pages (the “Workflow” page will be opened by default);

工作流列表页_En

2、Select “Jobs” option and Click “New Job”;

作业列表页_En

3、In the pop-up window,click “Associated Workflow”,and select a workflow for the schedule task;

创建作业-关联工作流_En

5、Select the “Basic Info.” configuration option, enter a “Name” and a “Description” (optional);

创建作业-基本信息_En

6、Select “Schedule” option, choose “Start Time”, “Repeat” Frequency, “End Time”, then click the “Create”button to start the job;

创建作业-调度_En

7、On the page ” Jobs “, select one job name, you can view the running status of its sub-jobs。

子作业列表页_En

This article is reproduced from https://forum.latticex.foundation/t/topic/5924

(0)
PlatONWorld-M6的头像PlatONWorld-M6Official
上一篇 23 12 月, 2021 10:32
下一篇 24 12 月, 2021 10:38

相关推荐

发表回复

登录后才能评论