-
Notifications
You must be signed in to change notification settings - Fork 4
/
training.html
77 lines (71 loc) · 2.46 KB
/
training.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>ML Classification application with Gramex</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../style.css">
<link rel="stylesheet" href="../ui/bootstrap-select/dist/css/bootstrap-select.min.css">
</head>
<body>
{% set base = '..' %}
{% include 'navbar.html' %}
<!-- upload component -->
<div class="container py-4">
<div class="card-deck">
<div class="card">
<div class="card-body">
<form action="../upload" method="POST" enctype="multipart/form-data">
<input name="file" type="file">
<button type="buton" id="file_upload_btn">Submit</button>
<input type="hidden" name="_xsrf" value="{{ handler.xsrf_token }}">
<input type="hidden" name="save" value="data.csv">
</form>
</div>
</div>
</div><!-- .card -->
</div><!-- .container -->
<!-- data table component -->
<div class="container py-4">
<div class="formhandler" data-src="../data"></div>
</div>
<div class="container">
<div class="row">
<div class="col-6">
<h3>Tweak the parameters</h3>
<div class="container py-4" id="mlSection">
<div class="form-group row">
<label for="targetCol" class="col-sm-4 col-form-label">Select Target Column:</label>
<div class="col-sm-8">
<div id="targetCol"></div>
</div>
</div>
<div class="form-group row">
<label for="testSize" class="col-sm-4 col-form-label">Select Test Size:</label>
<div class="col-8">
<input id="testSize" type="range" class="custom-range" name="testSize" value="33">
</div>
<div id="testSizeDisplay" class="col-sm"><p>33 %</p></div>
</div>
<div class="form-group row">
<label for="algorithm" class="col-sm-4 col-form-label">Select Algorithm:</label>
<div class="col-sm-8">
<div id="algorithm"></div>
</div>
</div>
<div class="form-group">
<button class="btn btn-primary" id="train">Train</button>
</div>
</div>
</div>
<div id="report" class="col-6"></div>
</div>
</div>
{% include 'scripts.html' %}
</body>
<script>
$('.formhandler').formhandler({
pageSize: 5
})
</script>