Update sample_data.py
Browse files- sample_data.py +100 -182
sample_data.py
CHANGED
@@ -3,119 +3,84 @@ COMPLEX_SAMPLE_JSON = """
|
|
3 |
"central_node": "Artificial Intelligence (AI)",
|
4 |
"nodes": [
|
5 |
{
|
6 |
-
"id": "
|
7 |
-
"label": "Machine Learning
|
8 |
-
"relationship": "
|
9 |
"subnodes": [
|
10 |
{
|
11 |
-
"id": "
|
12 |
-
"label": "
|
13 |
-
"relationship": "
|
14 |
"subnodes": [
|
15 |
{
|
16 |
-
"id": "
|
17 |
-
"label": "
|
18 |
-
"relationship": "
|
19 |
-
"subnodes": [
|
20 |
-
{
|
21 |
-
"id": "nbc",
|
22 |
-
"label": "Naive Bayes Classifier",
|
23 |
-
"relationship": "Algorithm Example",
|
24 |
-
"subnodes": [
|
25 |
-
{"id": "text_class", "label": "Text Classification", "relationship": "Application"},
|
26 |
-
{"id": "spam_det", "label": "Spam Detection", "relationship": "Application"}
|
27 |
-
]
|
28 |
-
},
|
29 |
-
{
|
30 |
-
"id": "lda",
|
31 |
-
"label": "Linear Discriminant Analysis",
|
32 |
-
"relationship": "Algorithm Example",
|
33 |
-
"subnodes": [
|
34 |
-
{"id": "dim_red_lda", "label": "Dimensionality Reduction", "relationship": "Use Case"},
|
35 |
-
{"id": "face_recog", "label": "Face Recognition", "relationship": "Use Case"}
|
36 |
-
]
|
37 |
-
}
|
38 |
-
]
|
39 |
},
|
40 |
{
|
41 |
-
"id": "
|
42 |
-
"label": "
|
43 |
-
"relationship": "
|
44 |
-
"subnodes": [
|
45 |
-
{
|
46 |
-
"id": "svm",
|
47 |
-
"label": "Support Vector Machines (SVM)",
|
48 |
-
"relationship": "Algorithm Example",
|
49 |
-
"subnodes": [
|
50 |
-
{"id": "image_recog", "label": "Image Recognition", "relationship": "Application"},
|
51 |
-
{"id": "bioinfo", "label": "Bioinformatics", "relationship": "Application"}
|
52 |
-
]
|
53 |
-
},
|
54 |
-
{
|
55 |
-
"id": "dt",
|
56 |
-
"label": "Decision Trees",
|
57 |
-
"relationship": "Algorithm Example",
|
58 |
-
"subnodes": [
|
59 |
-
{"id": "credit_scoring", "label": "Credit Scoring", "relationship": "Application"},
|
60 |
-
{"id": "medical_diag", "label": "Medical Diagnosis", "relationship": "Application"}
|
61 |
-
]
|
62 |
-
}
|
63 |
-
]
|
64 |
}
|
65 |
]
|
66 |
},
|
67 |
{
|
68 |
-
"id": "
|
69 |
-
"label": "
|
70 |
-
"relationship": "
|
71 |
"subnodes": [
|
72 |
{
|
73 |
-
"id": "
|
74 |
-
"label": "
|
75 |
-
"relationship": "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
"subnodes": [
|
77 |
{
|
78 |
-
"id": "
|
79 |
-
"label": "
|
80 |
-
"relationship": "
|
81 |
-
"subnodes": [
|
82 |
-
{"id": "customer_seg", "label": "Customer Segmentation", "relationship": "Application"},
|
83 |
-
{"id": "document_analysis", "label": "Document Analysis", "relationship": "Application"}
|
84 |
-
]
|
85 |
-
},
|
86 |
-
{
|
87 |
-
"id": "dbscan",
|
88 |
-
"label": "DBSCAN",
|
89 |
-
"relationship": "Algorithm Example",
|
90 |
-
"subnodes": [
|
91 |
-
{"id": "anomaly_det", "label": "Anomaly Detection", "relationship": "Application"},
|
92 |
-
{"id": "spatial_data", "label": "Spatial Data Analysis", "relationship": "Application"}
|
93 |
-
]
|
94 |
}
|
95 |
]
|
96 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
{
|
98 |
-
"id": "
|
99 |
-
"label": "
|
100 |
-
"relationship": "
|
101 |
"subnodes": [
|
102 |
{
|
103 |
-
"id": "
|
104 |
-
"label": "
|
105 |
-
"relationship": "
|
106 |
-
"subnodes": [
|
107 |
-
{"id": "feature_ext", "label": "Feature Extraction", "relationship": "Use Case"},
|
108 |
-
{"id": "noise_red", "label": "Noise Reduction", "relationship": "Use Case"}
|
109 |
-
]
|
110 |
-
},
|
111 |
-
{
|
112 |
-
"id": "tsne",
|
113 |
-
"label": "t-SNE",
|
114 |
-
"relationship": "Algorithm Example",
|
115 |
-
"subnodes": [
|
116 |
-
{"id": "data_viz", "label": "Data Visualization", "relationship": "Application"},
|
117 |
-
{"id": "genomics", "label": "Genomics", "relationship": "Application"}
|
118 |
-
]
|
119 |
}
|
120 |
]
|
121 |
}
|
@@ -124,119 +89,72 @@ COMPLEX_SAMPLE_JSON = """
|
|
124 |
]
|
125 |
},
|
126 |
{
|
127 |
-
"id": "
|
128 |
-
"label": "
|
129 |
-
"relationship": "
|
130 |
"subnodes": [
|
131 |
{
|
132 |
-
"id": "
|
133 |
-
"label": "
|
134 |
-
"relationship": "
|
135 |
"subnodes": [
|
136 |
{
|
137 |
-
"id": "
|
138 |
-
"label": "
|
139 |
-
"relationship": "
|
140 |
"subnodes": [
|
141 |
{
|
142 |
-
"id": "
|
143 |
-
"label": "
|
144 |
-
"relationship": "
|
145 |
-
"subnodes": [
|
146 |
-
{"id": "imagenet", "label": "ImageNet Challenge", "relationship": "Milestone"},
|
147 |
-
{"id": "gpu_accel", "label": "GPU Acceleration", "relationship": "Enabling Factor"}
|
148 |
-
]
|
149 |
},
|
150 |
{
|
151 |
-
"id": "
|
152 |
-
"label": "
|
153 |
-
"relationship": "
|
154 |
-
"subnodes": [
|
155 |
-
{"id": "residual_con", "label": "Residual Connections", "relationship": "Key Feature"},
|
156 |
-
{"id": "deeper_nets", "label": "Deeper Networks", "relationship": "Benefit"}
|
157 |
-
]
|
158 |
-
}
|
159 |
-
]
|
160 |
-
},
|
161 |
-
{
|
162 |
-
"id": "obj_det_cnn",
|
163 |
-
"label": "Object Detection",
|
164 |
-
"relationship": "Primary Use",
|
165 |
-
"subnodes": [
|
166 |
-
{
|
167 |
-
"id": "yolo",
|
168 |
-
"label": "YOLO (You Only Look Once)",
|
169 |
-
"relationship": "Real-time Algorithm",
|
170 |
-
"subnodes": [
|
171 |
-
{"id": "speed", "label": "High Speed", "relationship": "Advantage"},
|
172 |
-
{"id": "single_pass", "label": "Single Pass Detection", "relationship": "Mechanism"}
|
173 |
-
]
|
174 |
-
},
|
175 |
-
{
|
176 |
-
"id": "faster_rcnn",
|
177 |
-
"label": "Faster R-CNN",
|
178 |
-
"relationship": "Region-based Algorithm",
|
179 |
-
"subnodes": [
|
180 |
-
{"id": "region_props", "label": "Region Proposals", "relationship": "Mechanism"},
|
181 |
-
{"id": "accuracy", "label": "High Accuracy", "relationship": "Advantage"}
|
182 |
-
]
|
183 |
}
|
184 |
]
|
185 |
}
|
186 |
]
|
187 |
},
|
188 |
{
|
189 |
-
"id": "
|
190 |
-
"label": "
|
191 |
-
"relationship": "
|
192 |
"subnodes": [
|
193 |
{
|
194 |
-
"id": "
|
195 |
-
"label": "
|
196 |
-
"relationship": "
|
197 |
"subnodes": [
|
198 |
{
|
199 |
-
"id": "
|
200 |
-
"label": "
|
201 |
-
"relationship": "
|
202 |
-
"subnodes": [
|
203 |
-
{"id": "text_gen_rnn", "label": "Text Generation", "relationship": "Specific Task"},
|
204 |
-
{"id": "sentiment_rnn", "label": "Sentiment Analysis", "relationship": "Specific Task"}
|
205 |
-
]
|
206 |
},
|
207 |
{
|
208 |
-
"id": "
|
209 |
-
"label": "
|
210 |
-
"relationship": "
|
211 |
-
"subnodes": [
|
212 |
-
{"id": "voice_assist", "label": "Voice Assistants", "relationship": "Product Example"},
|
213 |
-
{"id": "transcription", "label": "Audio Transcription", "relationship": "Task"}
|
214 |
-
]
|
215 |
}
|
216 |
]
|
217 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
218 |
{
|
219 |
-
"id": "
|
220 |
-
"label": "
|
221 |
-
"relationship": "
|
222 |
"subnodes": [
|
223 |
{
|
224 |
-
"id": "
|
225 |
-
"label": "
|
226 |
-
"relationship": "
|
227 |
-
"subnodes": [
|
228 |
-
{"id": "vanishing_grad", "label": "Solves Vanishing Gradients", "relationship": "Benefit"},
|
229 |
-
{"id": "memory_cells", "label": "Internal Memory Cells", "relationship": "Mechanism"}
|
230 |
-
]
|
231 |
-
},
|
232 |
-
{
|
233 |
-
"id": "gru",
|
234 |
-
"label": "Gated Recurrent Unit (GRU)",
|
235 |
-
"relationship": "Variant Type",
|
236 |
-
"subnodes": [
|
237 |
-
{"id": "simpler_than_lstm", "label": "Simpler Architecture", "relationship": "Characteristic"},
|
238 |
-
{"id": "comparable_perf", "label": "Comparable Performance", "relationship": "Characteristic"}
|
239 |
-
]
|
240 |
}
|
241 |
]
|
242 |
}
|
|
|
3 |
"central_node": "Artificial Intelligence (AI)",
|
4 |
"nodes": [
|
5 |
{
|
6 |
+
"id": "ml_fundamental",
|
7 |
+
"label": "Machine Learning",
|
8 |
+
"relationship": "is essential for",
|
9 |
"subnodes": [
|
10 |
{
|
11 |
+
"id": "dl_branch",
|
12 |
+
"label": "Deep Learning",
|
13 |
+
"relationship": "for example",
|
14 |
"subnodes": [
|
15 |
{
|
16 |
+
"id": "cnn_example",
|
17 |
+
"label": "CNNs",
|
18 |
+
"relationship": "for example"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
},
|
20 |
{
|
21 |
+
"id": "rnn_example",
|
22 |
+
"label": "RNNs",
|
23 |
+
"relationship": "for example"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
}
|
25 |
]
|
26 |
},
|
27 |
{
|
28 |
+
"id": "rl_branch",
|
29 |
+
"label": "Reinforcement Learning",
|
30 |
+
"relationship": "for example",
|
31 |
"subnodes": [
|
32 |
{
|
33 |
+
"id": "qlearning_example",
|
34 |
+
"label": "Q-Learning",
|
35 |
+
"relationship": "example"
|
36 |
+
},
|
37 |
+
{
|
38 |
+
"id": "pg_example",
|
39 |
+
"label": "Policy Gradients",
|
40 |
+
"relationship": "example"
|
41 |
+
}
|
42 |
+
]
|
43 |
+
}
|
44 |
+
]
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"id": "ai_types",
|
48 |
+
"label": "Types",
|
49 |
+
"relationship": "formed by",
|
50 |
+
"subnodes": [
|
51 |
+
{
|
52 |
+
"id": "agi_type",
|
53 |
+
"label": "AGI",
|
54 |
+
"relationship": "this is",
|
55 |
+
"subnodes": [
|
56 |
+
{
|
57 |
+
"id": "strong_ai",
|
58 |
+
"label": "Strong AI",
|
59 |
+
"relationship": "provoked by",
|
60 |
"subnodes": [
|
61 |
{
|
62 |
+
"id": "human_intel",
|
63 |
+
"label": "Human-level Intel.",
|
64 |
+
"relationship": "of"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
}
|
66 |
]
|
67 |
+
}
|
68 |
+
]
|
69 |
+
},
|
70 |
+
{
|
71 |
+
"id": "ani_type",
|
72 |
+
"label": "ANI",
|
73 |
+
"relationship": "this is",
|
74 |
+
"subnodes": [
|
75 |
{
|
76 |
+
"id": "weak_ai",
|
77 |
+
"label": "Weak AI",
|
78 |
+
"relationship": "provoked by",
|
79 |
"subnodes": [
|
80 |
{
|
81 |
+
"id": "narrow_tasks",
|
82 |
+
"label": "Narrow Tasks",
|
83 |
+
"relationship": "of"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
}
|
85 |
]
|
86 |
}
|
|
|
89 |
]
|
90 |
},
|
91 |
{
|
92 |
+
"id": "ai_capabilities",
|
93 |
+
"label": "Capabilities",
|
94 |
+
"relationship": "change",
|
95 |
"subnodes": [
|
96 |
{
|
97 |
+
"id": "data_proc",
|
98 |
+
"label": "Data Processing",
|
99 |
+
"relationship": "can",
|
100 |
"subnodes": [
|
101 |
{
|
102 |
+
"id": "big_data",
|
103 |
+
"label": "Big Data",
|
104 |
+
"relationship": "as",
|
105 |
"subnodes": [
|
106 |
{
|
107 |
+
"id": "analysis_example",
|
108 |
+
"label": "Data Analysis",
|
109 |
+
"relationship": "example"
|
|
|
|
|
|
|
|
|
110 |
},
|
111 |
{
|
112 |
+
"id": "prediction_example",
|
113 |
+
"label": "Prediction",
|
114 |
+
"relationship": "example"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
}
|
116 |
]
|
117 |
}
|
118 |
]
|
119 |
},
|
120 |
{
|
121 |
+
"id": "decision_making",
|
122 |
+
"label": "Decision Making",
|
123 |
+
"relationship": "can be",
|
124 |
"subnodes": [
|
125 |
{
|
126 |
+
"id": "automation",
|
127 |
+
"label": "Automation",
|
128 |
+
"relationship": "as",
|
129 |
"subnodes": [
|
130 |
{
|
131 |
+
"id": "robotics_example",
|
132 |
+
"label": "Robotics",
|
133 |
+
"relationship": "example"
|
|
|
|
|
|
|
|
|
134 |
},
|
135 |
{
|
136 |
+
"id": "autonomous_example",
|
137 |
+
"label": "Autonomous Vehicles",
|
138 |
+
"relationship": "of one"
|
|
|
|
|
|
|
|
|
139 |
}
|
140 |
]
|
141 |
+
}
|
142 |
+
]
|
143 |
+
},
|
144 |
+
{
|
145 |
+
"id": "problem_solving",
|
146 |
+
"label": "Problem Solving",
|
147 |
+
"relationship": "can",
|
148 |
+
"subnodes": [
|
149 |
{
|
150 |
+
"id": "optimization",
|
151 |
+
"label": "Optimization",
|
152 |
+
"relationship": "as is",
|
153 |
"subnodes": [
|
154 |
{
|
155 |
+
"id": "algorithms_example",
|
156 |
+
"label": "Algorithms",
|
157 |
+
"relationship": "for example"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
}
|
159 |
]
|
160 |
}
|