MCPcopy Create free account
hub / github.com/tensorflow/tfjs-examples / updatePredictionInputs

Function updatePredictionInputs

data-generator/ui.js:171–184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

169};
170
171export function updatePredictionInputs() {
172 const container = document.getElementById('prediction-input');
173 container.innerHTML = '';
174 for (let i = 0; i < game.GAME_STATE.num_cards_per_hand; i++) {
175 const newH4 = document.createElement('h4');
176 newH4.innerText = `card ${i} `;
177 const newInput = document.createElement('input');
178 newInput.type = 'number';
179 newInput.id = `input-card-${i}`;
180 newInput.value = 13;
181 newH4.appendChild(newInput);
182 container.appendChild(newH4);
183 }
184}
185
186export function enableTrainButton() {
187 document.getElementById('train-model-using-fit-dataset')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected