-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
41 lines (39 loc) · 1.48 KB
/
index.html
File metadata and controls
41 lines (39 loc) · 1.48 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Linear Regression Live</title>
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<div class="flex-cont">
<div>
<canvas id="c" style="border: 1px solid black" width="300" height="300"></canvas>
</div>
<div class="flex-cont-col">
<!-- ADD: Calculate RMSE score for a specific point -->
<div>
R^2 Score: <span id="rsquared-score"></span>
</div>
</div>
</div>
<div class="flex-cont-col">
<div>Click to add data point</div>
<div>or
<input type="file" id="upload-dataset" accept=".csv" style="display: none;">
<label for="upload-dataset"
style="border: 1px solid black; border-radius: 2px; padding: 5px;">upload csv file</label>.
</div>
<div>Minimum 2 data points are required.</div>
<div id="upload-dataset-controls-cont" class="flex-cont-col" style="display: none">
select X values: <select id="upload-dataset-controls-x">
</select>
select Y values: <select id="upload-dataset-controls-y">
</select>
<div>You can still click and add new data points!</div>
</div>
</div>
<script src="assets/js/script.js" type="module"></script>
</body>
</html>