-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
71 lines (63 loc) · 3.01 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
<!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.0">
<link rel="stylesheet" href="https://pyscript.net/releases/2023.05.1/pyscript.css" />
<script defer src="https://pyscript.net/releases/2023.05.1/pyscript.js"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="./app.css">
<link rel="icon" href="favicon.png" type="image/png">
<title>Iris Classification</title>
</head>
<body>
<py-config src="./pyscript.toml"></py-config>
<py-script src="./main.py"></py-script>
<div align="center">
<h1> Iris Classification </h1>
<br>
<div class="container" align="left">
I have taken Dataset from
<a target="_blank" href="https://scikit-learn.org/stable/auto_examples/datasets/plot_iris_dataset.html">
here
</a>.
<br>
The Iris Dataset contains four features (length and width of sepals and petals) of 50 samples of three
species of Iris (Iris setosa, Iris virginica and Iris versicolor).
I have used the dataset to improve my skills in Machine Learning.
</div>
<br>
<img id="iris_image" src="./images/iris_with_labels.jpg" alt="IRIS Image">
<br>
<div id="prediction_result"></div>
<br>
<form method="dialog" action="">
<div>
<div class="sepal d-lg-flex justify-content-center">
<div class="mx-3 mb-3">
<label for="sl" class="form-label">Sepal Length(cm)</label>
<input required type="number" step="0.01" class="form-control" id="sl" name="sl">
</div>
<div class="mx-3 mb-3">
<label for="sw" class="form-label">Sepal Width(cm)</label>
<input required type="number" step="0.01" class="form-control" id="sw" name="sw">
</div>
</div>
<div class="petal d-lg-flex justify-content-center">
<div class="mx-3 mb-3">
<label for="pl" class="form-label">Petal Length(cm)</label>
<input required type="number" step="0.01" class="form-control" id="pl" name="pl">
</div>
<div class="mx-3 mb-3">
<label for="pw" class="form-label">Petal Width(cm)</label>
<input required type="number" step="0.01" class="form-control" id="pw" name="pw">
</div>
</div>
</div>
<button py-click="get_predictions()" class="btn btn-primary">Submit</button>
</form>
</div>
</body>
</html>