This topic describes how to use graph algorithms to manage financial risks.
Graph algorithms are used in relationship analysis scenarios. Graph algorithms arrange data into a relationship graph that contains connections between vertices. The connections are represented as edges. Machine Learning Platform for AI (PAI) provides several graph algorithm components, including K-Core, Maximum Connected Subgraph, and Label Propagation Classification.
|start_point||Start vertex of an edge||STRING||The name of a person.|
|end_point||End vertex of an edge||STRING||The name of a person.|
|count||Closeness||DOUBLE||The closeness between two persons. A greater value indicates a closer relationship between the two persons.|
- Go to the Machine Learning Studio console.
- Log on to the PAI console.
- In the left-side navigation pane, choose .
- On the PAI Visualization Modeling page, find the project in which you want to create an experiment and click Machine Learning in the Operation column.
- Create an experiment.
- In the left-side navigation pane, click Home.
- In the Templates section, click Create below [Chart Algorithms] Financial Risk Management.
- In the New Experiment dialog box, set the experiment parameters. You can use the default values of the
Parameter Description Name The name of the experiment. Default value: [Chart Algorithms] Financial Risk Management. The name must be 1 to 32 characters in length. Enter a name that meets this requirement, for example, Financial Risk Management. Project The project in which you want to create the experiment. You cannot change the value of this parameter. Description The description of the experiment. Default value: Use chart algorithms to resolve manage financial issues based on customer credit. Save To The directory for storing the experiment. Default value: My Experiments.
- Click OK.
- Optional:Wait about 10 seconds. Then, click Experiments in the left-side navigation pane.
- Optional:Click Financial Risk Management_XX under My Experiments. The canvas of the experiment appears.My Experiments is the directory for storing the experiment that you created and Financial Risk Management_XX is the name of the experiment. In the experiment name, _XX is the ID that the system automatically creates for the experiment.
- View the components of the experiment on the canvas, as shown in the following figure.
The system automatically creates the experiment based on the preset template.
Area No. Description 1
The Maximum Connected Subgraph-1 component classifies the people in the relationship graph into two groups, and assigns an ID to each group. Then, the SQL Script-1 and Join-1 components remove unrelated people in the relationship graph.The Maximum Connected Subgraph-1 component can find the set that contains the largest number of interlinked people and remove unrelated people, as shown in the following figure.
2 The component in this area explores the distance between two vertices. In the output of the Single-source Shortest Path-1 component, the distance field indicates the number of people that Enoch must contact to reach the target, as shown in the following figure. 3The Provided data component imports the labeled data. The weight field indicates the probability of a person being a fraudster. Then, the Label Propagation Classification-1 component predicts the labels of unlabeled vertices. Finally, the fraudulent weight_SQL script component filters results and shows the probability of each person being a fraudster.
Label propagation classification is a semi-supervised classification algorithm. It uses a relationship graph and labeled data as its input and predicts the labels of unlabeled vertices based on the labels of labeled ones. Label propagation classification propagates the label of each vertex to the vertices next to the vertex.
- Run the experiment and view the result.
- In the top toolbar of the canvas, click Run.
- After the experiment is run, right-click fraudulent weight_SQL script on the canvas and select View Data. In the dialog box that appears, view the probability of each person being a fraudster.