Skip to content

Commit

Permalink
Create ai_model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Jul 20, 2024
1 parent 7f68129 commit 5fcdba7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions models/ai_model.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# ai_model.py
import tensorflow as tf

# Define the AI model
model = tf.keras.models.Sequential([
tf.keras.layers.Dense(64, activation="relu", input_shape=(1,)),
tf.keras.layers.Dense(64, activation="relu"),
tf.keras.layers.Dense(1)
])

# Compile the model
model.compile(optimizer="adam", loss="mean_squared_error")

# Train the model
model.fit(X_train, y_train, epochs=10)

0 comments on commit 5fcdba7

Please sign in to comment.