Row 2124

Row ID: 2124 | Dataset Entry | Axioma AXP Content Repository

Content Data

This page contains data entry 2124 from the Axioma AXP content repository. The structured data below represents the complete record for this entry.

I am building a XO (tic tac toe) AI to grasp the basics of tensorflow keras on python. So far I have made the xo environment, and created the model like this:

model = tf.keras.models.Sequential() model.add(tf.keras.layers.Dense(9, activation="relu")) model.add(tf.keras.layers.Dense(50, activation="relu")) model.add(tf.keras.layers.Dense(9)) model.compile(optimizer="adam", loss="mse")

I have this (incomplete) function

def ai_move(board): pass

that makes a move based on this board input:

board = [0, 0, 0, 0, 0, 0, 0, 0, 0]

The question is: How do I train this AI by having 2 instances(?) of it play against each other? What's a smart way to set the rewards?

FieldValue
text I am building a XO (tic tac toe) AI to grasp the basics of tensorflow keras on python. So far I have made the xo environment, and created the model like this: model = tf.keras.models.Sequential() model.add(tf.keras.layers.Dense(9, activation="relu")) model.add(tf.keras.layers.Dense(50, activation="relu")) model.add(tf.keras.layers.Dense(9)) model.compile(optimizer="adam", loss="mse") I have this (incomplete) function def ai_move(board): pass that makes a move ba…
label r/tensorflow
dataType post
communityName r/tensorflow
datetime 2023-06-28
username_encoded Z0FBQUFBQm5LakwwVGFocjFwTmdwalp2WVhUYVRORXJLTmNKSGFzWnR4QjJfaHdVcC1zcXltYXNoUW1rcnVLcFg4ZEZLb2Zkc29FLXprTnVmbEdJenF3b3ZEcWRhaHJSRkE9PQ==
url_encoded Z0FBQUFBQm5Lak9FRGdzWGpUVUtBcFgwWHJMLXhQY29xMkZFR1ItTzlPUkpvTThUTUZJWVFndHpVT1hwVjYzOWllZ1AwTGNXX2NvUXBrM0UxNmxUZGFySXN6V0FRVGlUV3BHVFowVDBPdlZ0Y2lpSXladnpxUXdLT0c4aTFTZFVXUW04a0lTRFlhaElyY3J3aG5CS25tanB4ekd6R3JpbGZWbVJ3TkZXV3JuWU11ZFZHMDB6WG1qeVN2RUd0QkN4NnI2SmxwblZpZkky

Raw Record

{
  "text": "I am building a XO (tic tac toe) AI to grasp the basics of tensorflow keras on python. So far I have made the xo environment, and created the model like this:\n\n    model = tf.keras.models.Sequential()\n    model.add(tf.keras.layers.Dense(9, activation=\"relu\"))\n    model.add(tf.keras.layers.Dense(50, activation=\"relu\"))\n    model.add(tf.keras.layers.Dense(9))\n    \n    model.compile(optimizer=\"adam\", loss=\"mse\")\n\nI have this (incomplete) function\n\n    def ai_move(board):\n pass\n\nthat makes a move based on this board input:  \n\n    board = [0, 0, 0, 0, 0, 0, 0, 0, 0]\n\nThe question is: How do I train this AI by having 2 instances(?) of it play against each other? What's a smart way to set the rewards?",
  "label": "r/tensorflow",
  "dataType": "post",
  "communityName": "r/tensorflow",
  "datetime": "2023-06-28",
  "username_encoded": "Z0FBQUFBQm5LakwwVGFocjFwTmdwalp2WVhUYVRORXJLTmNKSGFzWnR4QjJfaHdVcC1zcXltYXNoUW1rcnVLcFg4ZEZLb2Zkc29FLXprTnVmbEdJenF3b3ZEcWRhaHJSRkE9PQ==",
  "url_encoded": "Z0FBQUFBQm5Lak9FRGdzWGpUVUtBcFgwWHJMLXhQY29xMkZFR1ItTzlPUkpvTThUTUZJWVFndHpVT1hwVjYzOWllZ1AwTGNXX2NvUXBrM0UxNmxUZGFySXN6V0FRVGlUV3BHVFowVDBPdlZ0Y2lpSXladnpxUXdLT0c4aTFTZFVXUW04a0lTRFlhaElyY3J3aG5CS25tanB4ekd6R3JpbGZWbVJ3TkZXV3JuWU11ZFZHMDB6WG1qeVN2RUd0QkN4NnI2SmxwblZpZkky"
}

Entry Information