-
Notifications
You must be signed in to change notification settings - Fork 216
Expand file tree
/
Copy pathflow_scorecard.yaml
More file actions
107 lines (107 loc) · 1.97 KB
/
flow_scorecard.yaml
File metadata and controls
107 lines (107 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
key: flow_scorecard
version: 1.0
label: 评分卡决策流
metadata:
author: hepeng
group: github
decision_flow:
- flow_node:
node_name: start_1
node_kind: start
next_node_name: scorecard_1
next_node_kind: scorecard
- flow_node:
node_name: scorecard_1
node_kind: scorecard
next_node_name: end_1
next_node_kind: end
- flow_node:
node_name: end_1
node_kind: end
next_node_name:
next_node_kind:
scorecards:
- scorecard:
info:
id: 1
name: scorecard_1
tag: my_scorecard
label: 测试评分卡
kind: scorecard
depends: [num, sex, age]
strategy:
output_name: my_scorecard
output_kind: float
logic: sum
blocks:
- block:
name: num_block
feature: num
conditions:
- condition:
operator: LT
value: 20
result: 1
- condition:
operator: BETWEEN
value: [20,30]
result: 2
- condition:
operator: BETWEEN
value: [30,50]
result: 3
- condition:
operator: BETWEEN
value: [50,100]
result: 4
- condition:
operator: GT
value: 100
result: 5
- block:
name: sex_block
feature: sex
conditions:
- condition:
operator: EQ
value: M
result: 10
- condition:
operator: EQ
value: F
result: 30
- block:
name: age_block
feature: age
conditions:
- condition:
operator: LT
value: 18
result: 10
- condition:
operator: BETWEEN
value: [18,50]
result: 50
- condition:
operator: GT
value: 50
result: 20
features:
- feature:
id: 1
name: num
tag: aa
label: 数字
kind: float
- feature:
id: 2
name: sex
tag: aa
label: 性别
kind: string
- feature:
id: 3
name: age
tag: aa
label: 年龄
kind: int