-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
89 lines (86 loc) · 3.31 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Building ML applications 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 template-navbar.html %}
<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 -->
<div class="divider"></div>
{% import os %}
{% from modelhandler_demo import DIR %}
{% if os.path.exists(os.path.join(DIR, 'data.csv')) %}
<div class="container py-4">
<div class="formhandler" data-src="data"></div>
</div>
{% end %}
<div class="divider"></div>
<div class="container">
<div class="row">
<div class="col-6">
<h3>Tweak the parameters</h3>
<div class="container py-4 d-none" 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>
<script src="ui/jquery/dist/jquery.min.js"></script>
<script src="ui/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script src="ui/bootstrap-select/dist/js/bootstrap-select.min.js"></script>
<script src="ui/lodash/lodash.min.js"></script>
<script src="ui/g1/dist/g1.min.js"></script>
<script src="ui/vega/build/vega.min.js"></script>
<script src="ui/vega-lite/build/vega-lite.min.js"></script>
<script src="js/script.js"></script>
<!-- Commonly used libraries:
<script src="ui/d3v5/dist/d3.min.js"></script>
<script src="ui/morphdom/dist/morphdom-umd.min.js"></script>
<script src="ui/moment/min/moment-with-locales.min.js"></script>
<script src="ui/daterangepicker/daterangepicker.js"></script>
<script src="ui/leaflet/dist/leaflet.js"></script>
<script src="ui/topojson/dist/topojson.min.js"></script>
-->
</body>
</html>