-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
109 lines (91 loc) · 3.91 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<title>Perceptron</title>
</head>
<body>
<div id="app">
<div class="container">
<div class="row mt-2">
<div class="col-6">
<div class="font-weight-bold">Zona A</div>
<div class="row">
<div class="col">
<div class="form-group">
<label for="zona-a-x1">X1</label>
<input class="form-control" type="number" name='zona-a-x1' v-model="zoneA.x1" id="zona-a-x1">
</div>
<div class="form-group">
<label for="zona-a-x2">X2</label>
<input class="form-control" type="number" name='zona-a-x2' v-model="zoneA.x2" id="zona-a-x2">
</div>
</div>
<div class="col">
<div class="form-group">
<label for="zona-a-y1">Y1</label>
<input class="form-control" type="number" name='zona-a-y1' v-model="zoneA.y1" id="zona-b-y1">
</div>
<div class="form-group">
<label for="zona-a-y2">Y2</label>
<input class="form-control" type="number" name='zona-a-y2' v-model="zoneA.y2" id="zona-b-y2">
</div>
</div>
</div>
</div>
<div class="col-6">
<div class="font-weight-bold">Zona B</div>
<div class="row">
<div class="col">
<div class="form-group">
<label for="zona-b-x1">X1</label>
<input class="form-control" type="number" name='zona-b-x1' v-model="zoneB.x1" id="zona-b-x1">
</div>
<div class="form-group">
<label for="zona-b-x2">X2</label>
<input class="form-control" type="number" name='zona-b-x2' v-model="zoneB.x2" id="zona-b-x2">
</div>
</div>
<div class="col">
<div class="form-group">
<label for="zona-b-y1">Y1</label>
<input class="form-control" type="number" name='zona-b-y1' v-model="zoneB.y1" id="zona-b-y1">
</div>
<div class="form-group">
<label for="zona-b-y2">Y2</label>
<input class="form-control" type="number" name='zona-b-y2' v-model="zoneB.y2" id="zona-b-y2">
</div>
</div>
</div>
</div>
</div>
<hr>
<div class="row">
<div class="col-6">
<div class="form-group">
<label for="numberZ">Número de datos por clases</label>
<input class="form-control" type="number" name="numberZ" id="numberZ" v-model="numberZ">
</div>
<div class="form-group">
<label for="coeffient">Coeficiente de Aprendizaje</label>
<input class="form-control" type="number" name="coeffient" id="coeffient" v-model="coeffient">
</div>
<div>
<button v-on:click="run" :disabled='disabled' class="btn btn-primary">Ejecutar</button>
</div>
</div>
</div>
<div class="row">
<div class="col mt-2">
<canvas width="600" height="600" id="plano"></canvas>
</div>
</div>
</div>
</div>
</body>
</html>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script>
<script src="index.js"></script>