|
1 | 1 | const KB = [
|
2 | 2 | {
|
3 | 3 | premises: [
|
4 |
| - 'risk tolerance is high', |
5 |
| - 'preference is stocks', |
6 |
| - 'preference is technology', |
7 |
| - 'preference is dividends' |
| 4 | + { attribute: 'class', value: 'bond' }, |
| 5 | + { attribute: 'category', value: 'treasury' }, |
| 6 | + { attribute: 'risk', value: 'low' }, |
| 7 | + { attribute: 'dividend', value: 'yes' } |
8 | 8 | ],
|
9 |
| - conclusion: 'VYM' |
| 9 | + conclusion: { attribute: 'fund', value: 'BND' } |
10 | 10 | },
|
11 | 11 | {
|
12 | 12 | premises: [
|
13 |
| - 'risk tolerance is high', |
14 |
| - 'preference is stocks', |
15 |
| - 'preference is technology' |
| 13 | + { attribute: 'class', value: 'bond' }, |
| 14 | + { attribute: 'category', value: 'treasury' }, |
| 15 | + { attribute: 'risk', value: 'high' }, |
| 16 | + { attribute: 'dividend', value: 'yes' } |
16 | 17 | ],
|
17 |
| - conclusion: 'QQQ' |
| 18 | + conclusion: { attribute: 'fund', value: 'JNK' } |
18 | 19 | },
|
19 | 20 | {
|
20 | 21 | premises: [
|
21 |
| - 'risk tolerance is high', |
22 |
| - 'preference is stocks', |
23 |
| - 'preference is dividends' |
| 22 | + { attribute: 'class', value: 'bond' }, |
| 23 | + { attribute: 'risk', value: 'low' }, |
| 24 | + { attribute: 'dividend', value: 'yes' } |
24 | 25 | ],
|
25 |
| - conclusion: 'DVY' |
| 26 | + conclusion: { attribute: 'fund', value: 'MUB' } |
26 | 27 | },
|
27 | 28 | {
|
28 | 29 | premises: [
|
29 |
| - 'risk tolerance is high', |
30 |
| - 'preference is stocks', |
| 30 | + { attribute: 'class', value: 'bond' }, |
| 31 | + { attribute: 'category', value: 'municipal' }, |
| 32 | + { attribute: 'risk', value: 'low' }, |
| 33 | + { attribute: 'dividend', value: 'yes' } |
31 | 34 | ],
|
32 |
| - conclusion: 'SPY' |
| 35 | + conclusion: { attribute: 'fund', value: 'HYD' } |
33 | 36 | },
|
34 | 37 | {
|
35 | 38 | premises: [
|
36 |
| - 'risk tolerance is moderate', |
37 |
| - 'preference is stocks', |
38 |
| - 'preference is dividends' |
| 39 | + { attribute: 'class', value: 'stock' }, |
| 40 | + { attribute: 'category', value: 'large blend' }, |
| 41 | + { attribute: 'risk', value: 'high' }, |
| 42 | + { attribute: 'size', value: 'large' }, |
| 43 | + { attribute: 'valuation', value: 'blend' } |
39 | 44 | ],
|
40 |
| - conclusion: 'SDY' |
| 45 | + conclusion: { attribute: 'fund', value: 'SPY' } |
41 | 46 | },
|
42 | 47 | {
|
43 | 48 | premises: [
|
44 |
| - 'risk tolerance is moderate', |
45 |
| - 'preference is stocks' |
| 49 | + { attribute: 'class', value: 'stock' }, |
| 50 | + { attribute: 'category', value: 'large value' }, |
| 51 | + { attribute: 'risk', value: 'moderate' }, |
| 52 | + { attribute: 'size', value: 'large' }, |
| 53 | + { attribute: 'valuation', value: 'value' } |
46 | 54 | ],
|
47 |
| - conclusion: 'VTI' |
| 55 | + conclusion: { attribute: 'fund', value: 'SDY' } |
48 | 56 | },
|
49 | 57 | {
|
50 | 58 | premises: [
|
51 |
| - 'risk tolerance is high', |
52 |
| - 'preference is bonds', |
53 |
| - 'preference is dividends', |
54 |
| - 'tax efficiency' |
| 59 | + { attribute: 'fund', value: 'MUB' } |
55 | 60 | ],
|
56 |
| - conclusion: 'HYD' |
| 61 | + conclusion: { attribute: 'tolerance', value: 'low' } |
57 | 62 | },
|
58 | 63 | {
|
59 | 64 | premises: [
|
60 |
| - 'risk tolerance is high', |
61 |
| - 'preference is bonds', |
62 |
| - 'preference is dividends' |
| 65 | + { attribute: 'fund', value: 'MUB' } |
63 | 66 | ],
|
64 |
| - conclusion: 'TLT' |
| 67 | + conclusion: { attribute: 'category', value: 'municipal' } |
65 | 68 | },
|
66 | 69 | {
|
67 | 70 | premises: [
|
68 |
| - 'risk tolerance is moderate', |
69 |
| - 'preference is bonds', |
70 |
| - 'preference is dividends' |
| 71 | + { attribute: 'fund', value: 'SPY' } |
71 | 72 | ],
|
72 |
| - conclusion: 'JNK' |
73 |
| - }, |
74 |
| - { |
75 |
| - premises: [ |
76 |
| - 'risk tolerance is low', |
77 |
| - 'preference is bonds', |
78 |
| - 'tax efficiency' |
79 |
| - ], |
80 |
| - conclusion: 'MUB' |
81 |
| - }, |
82 |
| - { |
83 |
| - premises: [ |
84 |
| - 'risk tolerance is low', |
85 |
| - 'preference is bonds' |
86 |
| - ], |
87 |
| - conclusion: 'BND' |
88 |
| - }, |
89 |
| - /*{ |
90 |
| - premises: [ |
91 |
| - 'risk tolerance is moderate', |
92 |
| - 'VTI' |
93 |
| - ], |
94 |
| - conclusion: 'BND' |
95 |
| - }, |
96 |
| - { |
97 |
| - premises: [ |
98 |
| - 'risk tolerance is moderate', |
99 |
| - 'BND' |
100 |
| - ], |
101 |
| - conclusion: 'VTI' |
102 |
| - }, |
103 |
| - { |
104 |
| - premises: [ |
105 |
| - 'QQQ' |
106 |
| - ], |
107 |
| - conclusion: 'preference is technology' |
108 |
| - }, |
109 |
| - { |
110 |
| - premises: [ |
111 |
| - 'VYM' |
112 |
| - ], |
113 |
| - conclusion: 'preference is dividends' |
114 |
| - }, |
115 |
| - { |
116 |
| - premises: [ |
117 |
| - 'JNK' |
118 |
| - ], |
119 |
| - conclusion: 'preference is dividends' |
120 |
| - }, |
121 |
| - { |
122 |
| - premises: [ |
123 |
| - 'MUB' |
124 |
| - ], |
125 |
| - conclusion: 'tax efficiency' |
126 |
| - }, |
127 |
| - { |
128 |
| - premises: [ |
129 |
| - 'HYD' |
130 |
| - ], |
131 |
| - conclusion: 'tax efficiency' |
132 |
| - }, |
133 |
| - { |
134 |
| - premises: [ |
135 |
| - 'BND' |
136 |
| - ], |
137 |
| - conclusion: 'preference is bonds' |
138 |
| - }, |
139 |
| - { |
140 |
| - premises: [ |
141 |
| - 'VTI', |
142 |
| - 'BND' |
143 |
| - ], |
144 |
| - conclusion: 'risk tolerence is moderate' |
145 |
| - }*/ |
| 73 | + conclusion: { attribute: 'tolerance', value: 'high' } |
| 74 | + } |
146 | 75 | ];
|
147 | 76 |
|
148 | 77 | module.exports = KB;
|
0 commit comments