ntt123 commited on
Commit
6f0a369
1 Parent(s): e610563

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +0 -4
index.html CHANGED
@@ -68,10 +68,7 @@
68
  if (this_.is_terminated()) return { "terminated": true, "action": -1 };
69
  const obs = tf.tensor(this_.board, [this_.num_rows, this_.num_cols], 'float32');
70
  const normalized_obs = tf.mul(obs, this_.ai_player);
71
- normalized_obs.print();
72
  const [action_logits, value] = this_.agent.predict(normalized_obs);
73
- action_logits.print();
74
- value.print();
75
  const action = await tf.argMax(action_logits).array();
76
  return {
77
  "terminated": false,
@@ -86,7 +83,6 @@
86
  this_.submit_board().then(
87
  function (info) {
88
  document.body.style.cursor = 'default';
89
- console.log(info);
90
  let x = info["action"];
91
  if (x != -1) {
92
  let [_, y] = this_.get_candidate(x);
 
68
  if (this_.is_terminated()) return { "terminated": true, "action": -1 };
69
  const obs = tf.tensor(this_.board, [this_.num_rows, this_.num_cols], 'float32');
70
  const normalized_obs = tf.mul(obs, this_.ai_player);
 
71
  const [action_logits, value] = this_.agent.predict(normalized_obs);
 
 
72
  const action = await tf.argMax(action_logits).array();
73
  return {
74
  "terminated": false,
 
83
  this_.submit_board().then(
84
  function (info) {
85
  document.body.style.cursor = 'default';
 
86
  let x = info["action"];
87
  if (x != -1) {
88
  let [_, y] = this_.get_candidate(x);