image_output_1.png
from tensorflow import keras

import pandas as pd

import tensorflow as tf

sample_submission = pd.read_csv('../input/rsna-miccai-brain-tumor-radiogenomic-classification/sample_submission.csv')
test = sample_submission
test['BraTS21ID5'] = [format(x, '05d') for x in test.BraTS21ID]

test_dataset = Dataset(test, is_train=False)

model = keras.Model()
model = tf.keras.models.load_model('../input/brain-tumor-3d-weights-l/Brain_3d_cls_FLAIR.h5')

preds = model.predict(test_dataset)
preds = preds.reshape(-1)

preds