Final Challenge
Welcome to the final challenge of this course! This challenge is designed to test your understanding of the concepts and skills you’ve learned throughout the modules.
Tweak and improve your model based on the feedback and insights you’ve gathered so far. Once you’re satisfied with your model’s performance, submit it for validation.
Tip
While building your model, several variables have been left to be used for tweaking. For Example:
max_tokensmax_lenbatch_sizeff_dimdropout_rateepochs
Tasks
- Review the course material and tasks
- Tweak and improve your model
- Upload your final model to get validated
How to Submit Your Model
To submit your final model for validation, please use the following code snippet within your Colab notebook:
#@title Submit Final Model for Validation
import requests, zipfile, os, json, time
PROVISIONER = "http://ml-workshop.ftntlab.tech/claim"
claim = requests.post(PROVISIONER, timeout=20).json()
submit_url = claim["submit_url"]
token = claim["submit_token"]
print("[*] Your submit URL:", submit_url)
print("[*] Your token:", token)
model.save("submission.keras")
!zip submission.zip submission.keras
print("[*] Model saved and zipped.")
time.sleep(5)
with open("submission.zip", "rb") as f:
r = requests.post(
submit_url,
files={"file": f},
headers={"X-Submit-Token": token},
timeout=180
)
print("[*] Your Result:\n")
if r.headers.get("content-type","").startswith("application/json"):
print(json.dumps(r.json(), indent=2))