Spaces:
Running
Running
Update index.html
Browse files- index.html +57 -16
index.html
CHANGED
|
@@ -4,22 +4,65 @@
|
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>Time Calculation for Dataset Training</title>
|
| 7 |
-
<script src="https://
|
| 8 |
<style>
|
| 9 |
body {
|
| 10 |
font-family: Arial, sans-serif;
|
| 11 |
-
margin:
|
| 12 |
-
padding:
|
| 13 |
-
background-color: #
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
border-radius: 5px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
}
|
| 17 |
.output {
|
| 18 |
margin-top: 20px;
|
| 19 |
-
padding:
|
| 20 |
-
border: 1px solid #
|
| 21 |
border-radius: 4px;
|
| 22 |
-
background-color: #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
}
|
| 24 |
</style>
|
| 25 |
</head>
|
|
@@ -27,16 +70,16 @@
|
|
| 27 |
|
| 28 |
<h1>Time Calculation for Dataset Training</h1>
|
| 29 |
<label for="dataset_size">Dataset Size (kB):</label>
|
| 30 |
-
<input type="number" id="dataset_size" value="67.4" step="0.1"><br
|
| 31 |
|
| 32 |
<label for="epochs">Number of Epochs:</label>
|
| 33 |
-
<input type="number" id="epochs" value="1"><br
|
| 34 |
|
| 35 |
<button id="calculate_btn">Calculate</button>
|
| 36 |
|
| 37 |
<div class="output">
|
| 38 |
<h3 id="result_text"></h3>
|
| 39 |
-
<div id="result_latex"></div>
|
| 40 |
</div>
|
| 41 |
|
| 42 |
<script>
|
|
@@ -50,19 +93,17 @@
|
|
| 50 |
const totalTime = timePerEpoch * epochs;
|
| 51 |
|
| 52 |
// Create LaTeX representation
|
| 53 |
-
const latexEquation =
|
| 54 |
-
const latexOutput = `Total Time: ${totalTime.toFixed(4)} minutes<br>LaTeX Equation: ${latexEquation}`;
|
| 55 |
|
| 56 |
// Update HTML elements
|
| 57 |
document.getElementById("result_text").innerText = `Total Time: ${totalTime.toFixed(4)} minutes`;
|
| 58 |
document.getElementById("result_latex").innerHTML = latexOutput;
|
| 59 |
|
| 60 |
// Render LaTeX
|
| 61 |
-
MathJax.
|
| 62 |
};
|
| 63 |
</script>
|
| 64 |
|
| 65 |
-
<!-- Include MathJax for LaTeX rendering -->
|
| 66 |
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS_HTML"></script>
|
| 67 |
</body>
|
| 68 |
</html>
|
|
|
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>Time Calculation for Dataset Training</title>
|
| 7 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS_HTML"></script>
|
| 8 |
<style>
|
| 9 |
body {
|
| 10 |
font-family: Arial, sans-serif;
|
| 11 |
+
margin: 0;
|
| 12 |
+
padding: 0;
|
| 13 |
+
background-color: #121212; /* Dark background */
|
| 14 |
+
color: #e0e0e0; /* Light text color */
|
| 15 |
+
display: flex;
|
| 16 |
+
flex-direction: column;
|
| 17 |
+
align-items: center;
|
| 18 |
+
justify-content: center;
|
| 19 |
+
height: 100vh;
|
| 20 |
+
transition: background-color 0.3s;
|
| 21 |
+
}
|
| 22 |
+
h1 {
|
| 23 |
+
margin-bottom: 20px;
|
| 24 |
+
}
|
| 25 |
+
label {
|
| 26 |
+
margin-top: 10px;
|
| 27 |
+
}
|
| 28 |
+
input[type="number"] {
|
| 29 |
+
padding: 10px;
|
| 30 |
+
margin: 10px 0;
|
| 31 |
+
border: none;
|
| 32 |
+
border-radius: 5px;
|
| 33 |
+
background-color: #1f1f1f; /* Darker input background */
|
| 34 |
+
color: #e0e0e0; /* Input text color */
|
| 35 |
+
width: 200px;
|
| 36 |
+
transition: background-color 0.3s;
|
| 37 |
+
}
|
| 38 |
+
input[type="number"]:focus {
|
| 39 |
+
background-color: #272727; /* Input focus color */
|
| 40 |
+
outline: none;
|
| 41 |
+
}
|
| 42 |
+
button {
|
| 43 |
+
padding: 10px 20px;
|
| 44 |
+
border: none;
|
| 45 |
border-radius: 5px;
|
| 46 |
+
background-color: #6200ea; /* Button color */
|
| 47 |
+
color: white;
|
| 48 |
+
cursor: pointer;
|
| 49 |
+
transition: background-color 0.3s;
|
| 50 |
+
}
|
| 51 |
+
button:hover {
|
| 52 |
+
background-color: #3700b3; /* Button hover color */
|
| 53 |
}
|
| 54 |
.output {
|
| 55 |
margin-top: 20px;
|
| 56 |
+
padding: 15px;
|
| 57 |
+
border: 1px solid #444; /* Output border */
|
| 58 |
border-radius: 4px;
|
| 59 |
+
background-color: #1f1f1f; /* Output background */
|
| 60 |
+
width: 300px; /* Set width for output */
|
| 61 |
+
text-align: center;
|
| 62 |
+
}
|
| 63 |
+
.latex {
|
| 64 |
+
margin-top: 10px;
|
| 65 |
+
color: #90caf9; /* LaTeX output color */
|
| 66 |
}
|
| 67 |
</style>
|
| 68 |
</head>
|
|
|
|
| 70 |
|
| 71 |
<h1>Time Calculation for Dataset Training</h1>
|
| 72 |
<label for="dataset_size">Dataset Size (kB):</label>
|
| 73 |
+
<input type="number" id="dataset_size" value="67.4" step="0.1"><br>
|
| 74 |
|
| 75 |
<label for="epochs">Number of Epochs:</label>
|
| 76 |
+
<input type="number" id="epochs" value="1"><br>
|
| 77 |
|
| 78 |
<button id="calculate_btn">Calculate</button>
|
| 79 |
|
| 80 |
<div class="output">
|
| 81 |
<h3 id="result_text"></h3>
|
| 82 |
+
<div id="result_latex" class="latex"></div>
|
| 83 |
</div>
|
| 84 |
|
| 85 |
<script>
|
|
|
|
| 93 |
const totalTime = timePerEpoch * epochs;
|
| 94 |
|
| 95 |
// Create LaTeX representation
|
| 96 |
+
const latexEquation = `T = \\frac{S}{405} \\times n`;
|
| 97 |
+
const latexOutput = `Total Time: ${totalTime.toFixed(4)} minutes<br>LaTeX Equation: \\[${latexEquation}\\]`;
|
| 98 |
|
| 99 |
// Update HTML elements
|
| 100 |
document.getElementById("result_text").innerText = `Total Time: ${totalTime.toFixed(4)} minutes`;
|
| 101 |
document.getElementById("result_latex").innerHTML = latexOutput;
|
| 102 |
|
| 103 |
// Render LaTeX
|
| 104 |
+
MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
|
| 105 |
};
|
| 106 |
</script>
|
| 107 |
|
|
|
|
|
|
|
| 108 |
</body>
|
| 109 |
</html>
|