Machine learning and artificial intelligence for bioinformatics

Machine Learning and Ar.ficial Intelligence for Bioinforma.cs
Homework 5 – Due October 6th at 10am
Each of the 3 ques.ons below is worth 33.333 points (you get 0.001 free to reach 100).
This homework needs to be completed on the Google Collaboratory, and the results submi:ed as screenshots in a .doc or .pdf. Please include the completed run of the corresponding code the ques?on refers too along with your wri:en answer (you can include addi?onal code if you want). You will need to
Also you are welcome to run Tensorflow code outside of the Collaboratory, if you have such a setup, please note though that the submission need to follow the same format, meaning code cells –> output as shown on the Collaboratory (for example do not submit Python interac?ve command terminal code)
In prepara?on for the homework, you can review again the Google Collaboratory posted in the last lecture. Please watch the following videos in order to become familiar with the Collaboratory (feel free to watch any addi?onal on Youtube):
h:ps://www.youtube.com/watch?v=i-HnvsehuSw
h:ps://www.youtube.com/watch?v=RLYoEyIHL6A
For the codes in the ques?ons below, each shaded box showing a code can run in a separate Google Collaboratory cell. Note: You need to run cells from top to bo:om (since top code cells generate dependencies for the lower cells), so you have to copy-paste and run the code cells in your own Google Collaboratory, in the same order shown in the code each ques?on points you too. Then as the ques?ons request you to do (for example, adjus?ng the number of epochs), you have to edit the code in the corresponding cells and re-run each cell. If you are s?ll confused on how this works, re-watch the above videos with tutorials on the Google Collaboratory and also addi?onal videos.
Ques.on 1.
NOTE: Use instead of “from keras.layers.normaliza?on import BatchNormaliza?on” the “from keras.layers import BatchNormaliza?on”.
Run the following code on the Collaboratory. Tip: If you are logged in your Google account and click the “Copy to Drive” bu:on on the top. This will make a full copy of this Google Collaboratory sheet under your own account, and save you a lot of typing and copy-pas?ng compared to star?ng a new sheet and transferring everything over manually.
h:ps://colab.research.google.com/github/AviatorMoser/keras-mnist-tutorial/blob/master/MNIST in Keras.ipynb
a. How many different types of neural networks (and what kind of networks) are being used to classify the digits – show the corresponding part of the code where these networks are implemented.
b. Run the code with both types of neural networks that are in it, based on the metrics, which one does it classify the digits be:er ? Please explain your answer by also defining the metrics (so you understand what each metric means).
c. Could you try a different ac?va?on func?on instead of sobmax in the final layer and see what happens with the model predic?ons and its metrics ? Choose one from the list h:ps://www.tensorflow.org/api_docs/python/d/ keras/ac?va?ons
       Due March 13th 2024

Ques.on 2.
Run the following code on the Collaboratory (you can skip the part showing the images if you wish). You will need to copy this code in a new, clean sheet of the Google Collaboratory.
h:ps://www.tensorflow.org/tutorials/load_data/images
a. Modify the number of Convolu?onal and Max Pooling layers, for example add a pair or two, and remove a layer or two :
model = tf.keras.Sequential([ tf.keras.layers.experimental.preprocessing.Rescaling(1./255), tf.keras.layers.Conv2D(32, 3, activation=’relu’), tf.keras.layers.MaxPooling2D(), tf.keras.layers.Conv2D(32, 3, activation=’relu’), ….
Then rerun the training with the modifica?ons
model.compile( …
and also
model.fit( train_ds, ..
What do you observe changing in the metrics ? (just run it for 3 epochs as it is)
b. Modify the number of epochs increasing them gradually (you might reach a point where it gets too slow in the Google Collaboratory). What do you observe in the metrics as you increase the epochs, is there a point where the metrics plateau?
c. In which part of the code we split the dataset in training / valida?ons and what por?ons ? What is the purpose of doing this ?
d. Look at the structure of the Convolu?onal Neural Network as specified in the code for this image classifica?on example h:ps://www.tensorflow.org/tutorials/images/classifica?on. What are the differences ? Make those adjustments to modify the code you just made on a – c above, and re-run the model (use 5 epochs or so). What do you observe in the model metrics ?
Ques.on 3.
Run the following code on Deep Learning for genomics on the Google Collaboratory:

h:ps://colab.research.google.com/github/TankMermaid/1000-genomes-gene?c-maps/blob/master/ A_Primer_on_Deep_Learning_in_Genomics_Public.ipynb
a. Describe in a couple of sentences the overall func?on of this neural network for bioinforma?cs predic?ons – what the predic?ons taking place, what are the data used, and what type of neural network we are using ? From which parts of the code you can find the answers to each of these points ?
b. How many predic?on classes this neural network has, and describe what are these classes. In addi?on to finding this from the text cells in the code, please also point the parts of the actual code that would demonstrate the number of predic?on classes (it should be one of the final layers in the network).
c. What por?on of the data we use for training, valida?on and tes?ng ? Where do you see that in the code ?
d. Run the code in your Google Collaboratory up to the point where we have the model lost / accuracy graphs (including prin?ng these graphs). What do you observe in these graphs if you modify the tes?ng and valida?on por?ons of the datasets ? You would need to re-run the cells from all the way up (where we define the training / valida?on por?ons) up and including the cells genera?ng the graphs. Similarly if you reduce significantly the number of epochs, what do you observe in those graphs ?

QUALITY: 100% ORIGINAL PAPER NO ChatGPT.NO PLAGIARISMCUSTOM PAPER

Best Custom Essay Writing Services

Looking for unparalleled custom paper writing services? Our team of experienced professionals at AcademicWritersBay.com is here to provide you with top-notch assistance that caters to your unique needs.

We understand the importance of producing original, high-quality papers that reflect your personal voice and meet the rigorous standards of academia. That’s why we assure you that our work is completely plagiarism-free—we craft bespoke solutions tailored exclusively for you.

Why Choose AcademicWritersBay.com?

  • Our papers are 100% original, custom-written from scratch.
  • We’re here to support you around the clock, any day of the year.
  • You’ll find our prices competitive and reasonable.
  • We handle papers across all subjects, regardless of urgency or difficulty.
  • Need a paper urgently? We can deliver within 6 hours!
  • Relax with our on-time delivery commitment.
  • We offer money-back and privacy guarantees to ensure your satisfaction and confidentiality.
  • Benefit from unlimited amendments upon request to get the paper you envisioned.
  • We pledge our dedication to meeting your expectations and achieving the grade you deserve.

Our Process: Getting started with us is as simple as can be. Here’s how to do it:

  • Click on the “Place Your Order” tab at the top or the “Order Now” button at the bottom. You’ll be directed to our order form.
  • Provide the specifics of your paper in the “PAPER DETAILS” section.
  • Select your academic level, the deadline, and the required number of pages.
  • Click on “CREATE ACCOUNT & SIGN IN” to provide your registration details, then “PROCEED TO CHECKOUT.”
  • Follow the simple payment instructions and soon, our writers will be hard at work on your paper.

AcademicWritersBay.com is dedicated to expediting the writing process without compromising on quality. Our roster of writers boasts individuals with advanced degrees—Masters and PhDs—in a myriad of disciplines, ensuring that no matter the complexity or field of your assignment, we have the expertise to tackle it with finesse. Our quick turnover doesn’t mean rushed work; it means efficiency and priority handling, ensuring your deadlines are met with the excellence your academics demand.

ORDER NOW and experience the difference with AcademicWritersBay.com, where excellence meets timely delivery.

NO PLAGIARISM
error: Content is protected !!