Artificial Neural Networks and Deep Learning 2022 - Homework 1 Forum

Go back to competition Back to thread list Post in this thread

> Submission error

We have the submission code:
import tensorflow as tf
import os
tfk = tf.keras
class model:
def __init__(self, path):
self.model = tfk.models.load_model(os.path.join(path, 'StandardModelDiego'))

def predict(self, X):
image_test = X/255
out = self.model.predict(image_test)
out = tf.argmax(out, axis=-1)

return out

When we send it to submission, we get an error stating:
ModuleNotFoundError: no module named 'model'.
And the filename is also called model

Posted by: Lasse @ Nov. 18, 2022, 11:48 a.m.
Post in this thread