-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
158 lines (106 loc) · 5.38 KB
/
index.html
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Document</title>
<!-- BOOTSTRAP CSS: https://getbootstrap.com/docs/5.0/getting-started/introduction/ -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<!-- BOOTSTRAP ICONS: https://getbootstrap.com/docs/5.0/getting-started/introduction/ -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
</head>
<body>
<div class="container">
<h1>OpenAI Embeddings 2023</h1>
<p class="lead">Can ChatGPT help detect Twitter bots, based on their tweet content?</h2>
<section>
<h3><a href="results/reduction/index.html">Dimensionality Reduction Results</a></h3>
</section>
<section>
<h3><a href="results/classification/index.html">Classification Results</a></h3>
</section>
<section>
<h3><a href="results/reduced_classification/index.html">Classification Results (Reduced Dataset)</a></h3>
</section>
<hr>
<h1>Word2Vec Embeddings 2023</h1>
<p class="lead">How about embeddings from Word2Vec?</h2>
<section>
<h3><a href="results/word2vec_embeddings/index.html#user-embeddings-container">Dimensionality Reduction Results</a></h3>
</section>
<section>
<h3><a href="results/word2vec_classification/index.html">Classification Results</a></h3>
</section>
<hr>
<h1>TF-IDF Embeddings 2023</h1>
<p class="lead">How about more basic embeddings from TF-IDF?</h2>
<section>
<h3><a href="results/tfidf_embeddings/index.html">Dimensionality Reduction Results</a></h3>
</section>
<section>
<h3><a href="results/tfidf_classification_1500/index.html">Classification Results</a></h3>
</section>
<hr>
<footer>
<a href="https://github.com/s2t2/openai-embeddings-2023">source code</a>
</footer>
</div>
<!-- BOOTSTRAP JS https://getbootstrap.com/docs/5.0/getting-started/introduction/ -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<script type="text/javascript">
var methodsMap = {"pca": "PCA", "tsne": "T-SNE", "umap": "UMAP"}
var groupsMap = {
"bot_label": "Bot Status",
"bom_overall_label": "Botometer Overall Label",
"bom_astroturf_label": "Botometer Astroturf Label",
"opinion_label": "Opinion Community",
"q_label": "Qanon Status",
"fourway_label": "Four Group Label",
"sixway_label": "Six Group Label"
}
//var table = document.getElementById("results-table")
//var tableBody = table.tBodies[0]
var tbody2 = document.querySelector("#results-table-2 tbody")
var tbody3 = document.querySelector("#results-table-3 tbody")
function createRow(tbody, reduction_method, n_components, groupby) {
console.log("ROW:", reduction_method, n_components, groupby)
// Create a new row
var row = document.createElement("tr")
// Create a new cell for each column and add the data to it
var numComponentsCell = document.createElement("td")
numComponentsCell.textContent = n_components;
row.appendChild(numComponentsCell);
var reductionMethodCell = document.createElement("td")
reductionMethodCell.textContent = methodsMap[reduction_method]
row.appendChild(reductionMethodCell)
var embeddingsCell = document.createElement("td")
//embeddingsCell.textContent = "results/____.html";
var embeddingsLink = document.createElement("a")
embeddingsLink.href = `results/reduction/${groupby}/${reduction_method}_${n_components}.html`
embeddingsLink.textContent = `${groupsMap[groupby]} Embeddings`
embeddingsCell.appendChild(embeddingsLink)
row.appendChild(embeddingsCell)
var centroidsCell = document.createElement("td")
var centroidsLink = document.createElement("a")
centroidsLink.href = `results/reduction/${groupby}/${reduction_method}_${n_components}_centroids.html`
centroidsLink.textContent = `${groupsMap[groupby]} Centroids`
centroidsCell.appendChild(centroidsLink)
row.appendChild(centroidsCell)
tbody.appendChild(row)
}
var REDUCTION_METHODS = ["pca", "tsne", "umap"]
var GROUPS = ["bot_label",
"bom_overall_label", "bom_astroturf_label",
"opinion_label",
"fourway_label", //"sixway_label"
]
REDUCTION_METHODS.forEach(function(reduction_method){
GROUPS.forEach(function(groupby){
createRow(tbody2, reduction_method, 2, groupby)
createRow(tbody3, reduction_method, 3, groupby)
})
})
</script>
</body>
</html>