-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathindex.html
More file actions
115 lines (94 loc) · 3.92 KB
/
Copy pathindex.html
File metadata and controls
115 lines (94 loc) · 3.92 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
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>RealityStream - Run Models: Industry Features</title>
<link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript" src="/localsite/js/d3.v5.min.js" id="/localsite/js/d3.v5.min.js"></script>
<script type="text/javascript" src="/localsite/js/jquery.min.js" id="/localsite/js/jquery.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/tabulator-tables/dist/js/tabulator.min.js"></script>
<script type="text/javascript" src="/localsite/js/earthscape.js" id="/localsite/js/earthscape.js"></script>
<link type="text/css" rel="stylesheet" href="https://unpkg.com/tabulator-tables/dist/css/tabulator.min.css">
<link type="text/css" rel="stylesheet" href="/localsite/css/base.css" id="/localsite/css/base.css">
<link type="text/css" rel="stylesheet" href="/localsite/css/base-tabulator.css" id="/localsite/css/base-tabulator.css">
<script type="text/javascript" src="/localsite/js/localsite.js?showheader=true"></script>
<script>
loadMarkdown("README.md", "readmeDiv", "_parent");
</script>
</head>
<body>
<div class="content contentpadding">
<div id="readmeDiv"></div>
<div id="pathDiv"></div>
<!-- For D3 Embedded CSV Sheet -->
<br>
TO DO: Find visualization tools that compare multiple model outcomes. Example:
<a href="img/chatgpt-model-with-agents.png"><img src="img/chatgpt-model-with-agents.png" style="width:100%;max-width:600px;border: 1px solid #ccc;"></a><br>
<span style="font-size: .8em;">With agents applied, ChatGPT 3.5 surges from 48% accuracy to over 94%.</span>
<br><br>
<h2>Random Bits Forest Classifier</h2>
Example from Blinks
<div style="overflow:scroll; max-width:100%;">
<div class="eTable" id="forestTable"></div>
</div>
Generated by <a href="../../models/random-bits-forest/">Random Bits Forest</a><br><br>
<!--Values are per 1,000 individuals.-->
Disclaimer: Data is based on projections which are prone to error.<br><br>
</div>
<style>
.eTable table {
border-collapse: collapse;
border: 2px black solid;
font: 12px sans-serif;
min-height: 10px;
}
.eTable th {
padding: 5px;
}
.eTable td {
border: 1px black solid;
padding: 5px;
}
</style>
<script type="text/javascript" charset="utf-8">
loadScript(theroot + 'js/d3.v5.min.js', function(results) { // For getScale
waitForVariable('customD3loaded', function() {
$(document).ready(function () {
const csvFile = "../../output/blinks/blinks-rbforest-output.csv";
// SyntaxError: await is only valid in async functions and the top level bodies of modules
//const data = await FileAttachment(csvFile).csv();
//function displayTable(data) {
d3.csv(csvFile).then(function(data) {
//alert(data)
const table = document.createElement("table");
const thead = document.createElement("thead");
const tbody = document.createElement("tbody");
const headerRow = data[0];
for (const key in headerRow) {
const th = document.createElement("th");
th.textContent = key;
thead.appendChild(th);
}
for (const row of data) {
const tr = document.createElement("tr");
for (const key in row) {
const td = document.createElement("td");
td.textContent = row[key];
tr.appendChild(td);
}
tbody.appendChild(tr);
}
const container = document.getElementById("forestTable");
container.appendChild(table);
table.appendChild(thead);
table.appendChild(tbody);
});
});
});
});
</script>
<!-- End D3 Embedded CSV Sheet -->
</body>
</html>