Our Services

Get 15% Discount on your First Order

[rank_math_breadcrumb]

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 ?

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

sssssss

新机器加域与V账号无法登陆问题解决 1. 请先给新员工申请file1文件夹权限, 发至安全组[email protected] 2. 新员工拿到V账号和密码后,先在其他可以登录的电脑上登录自己的V账号和密码,进行密码的修改 3. 请在新机器中安装Global Protect,安装包在 \\10.63.4.11\员工须知\VPN\Global Protect 4. 安装好后请运行Global Protect,并用有电话验证的员工的V账号登录 5. GP连接成功后,请给电脑正常加域fareast.corp.microsoft.com,并用本机需要使用人的V账号验证. 6. 加完域后重启电脑 7. 重启电脑后继续用administrator登录,连接GP,然后把本机需要使用人的V账号加为管理员 8. 左下角search,输入IE,然后右键IE,选择open file location 9. shift+右键IE,选择 run as a different user,然后用本机使用人V账号验证 10. 验证成功后sign out管理员,用V账号登录即可。 每一步都需要按照教程来,一步出错就可能导致V账号登录不进去,请各位相互转告

Social psychology

see attached  Discussion Forum Instructions: 1. Research the following theories: · Attribution theory · Schema theory · Cognitive dissonance · Self-verification theory · Social comparison theory · Social exchange theory · Social identity theory · Social-Emotional selectivity theory 2. Then, choose four of the concepts from the list and  answer

12345

1 LTEA 120C Hong Kong Films Hong Kong Cinema Through a Global Lens Spring 2024 Midterm Paper: Comparative Analysis (25%) For your Midterm Paper, please write a well-organized essay of about 800-1000 words that presents a clear argument and comparative analysis of two primary sources. Please focus on doing a

Healthcare Financial Solution: Tailored Financial Strategies for Medical Professionals

 <a href=” Financial Solution</a>  offers specialized financial services designed for medical professionals. Our comprehensive approach includes practice management, insurance optimization, tax planning, and retirement strategies. We understand the unique financial needs of the healthcare industry, providing tailored solutions to ensure your financial stability and success throughout your career and beyond.

hgb

   Top đầu những mẹo hay chơi xổ số miền Bắc – Trúng độc đắc dễ dàng  Dưới đây là cách tìm hiểu kết quả xổ số kiến thiết miền Bắc hôm nay và các chiến thuật để chọn bộ số KQXSMB may mắn nhất cho bạn. Trong rất nhiều

Gene Manipulation and Genetic Engineering

Discuss how gene transfer is an essential part of the natural world.  How do organisms benefit from gene transfer?  Choose at least two applications of genetic engineering and describe what beneficial products are produced using this technology.  What, if any, are the negatives associated with genetic engineering?  

script

For this Assignment 7, I would like you all to read over the in-class preliminary script you started collectively ( SEE recent Announcement covering this) , and refine and continue it by ADDING A SCENE WITH DIALOGUE as you see fit which renders the overall (imagined) narrative in a logical

Biology – Ecology Assignment 3

Analysis Paper 3: The Social Construction of Sexual Bodies Paper Format & Deadline: For this assignment, you will write a 2-3-page (double-spaced) paper and upload it to WebCourses in Word (.doc/.docx) format.  The paper will have double-spaced text and use standard 12-point font and 1-inch margins. There is no need for a

this week

Questions from the Readings assigned from the PDF-book text (AF&CC: Ch 9, “Analyzing Television Commercials”) Questions to Respond to, in a half-to-full page writeup in TOTAL (i.e., NOT a half-to-full page writeup for each), answering your choice of TWO below: 1. Name three of the elements that should be considered

egwqv

wqruiqwqbqwuiqwj qjkw eqkr qwu r kqwr kqjh dwqwq wd In this Topic, you learned about personal management style through self-awareness. Following the steps below, take the self-assessment and then submit a paper that includes all the information in Steps 1-2.   Conflict Management Styles: What They Are and Why They Matter (g2.com)

uty

Review the assigned topics listed by the first letter of your first name. For example, if your first name is G, your assigned topic is norepinephrine. The First Letter of Your First Name Topic A – D acetylcholine E – H norepinephrine I – L dopamine M – P serotonin

630-1

 Discuss the differences in the historic development of Public Health and Global Health (minimum 2). Offer reasoning as to why these differences exist, if any. 

635-1

   Topic Option 1 – U.S. Long Term Care Industry: Demographics, Consumers, Trends, Services, Models, and Future of Long-term Care. Topic Option 2 – Affordable Care Act (ACA) and the U.S. LTC Industry: Impact, Programs, Access to Services, Reform, Value-Based Care Models, Quality, and Future Opportunities. Topic Option 3 –

Unit 3 DB: Conducting an Observation

Sample Checklist #1 Student Engagement Observation Checklist References Cassar, A. G., & Jang, E. E. (2010). Investigating the effects of a game-based approach in teaching word recognition and spelling to students with reading disabilities and Attention deficits. Australian Journal of Learning Difficulties, 15(2), 193–211. Sample Checklist #2 References Koth, C.

Biology Assignment 1 Ju

Analysis Paper 1: The Social Construction of Sexuality Paper Format & Deadline: For this assignment, you will write a 2-3-page (double-spaced) paper and upload it to WebCourses in Word (.doc/.docx) format.  The paper will have double-spaced text and use standard 12-point font and 1-inch margins. There is no need for a separate

BIOLOGY

Biology test assignment Word Limit: 1000 WC Referencing Style: MLA Critically analyze the following: Discuss Methicillin Resistant Staphylococcus Aureus (MRSA) Your write up must be based: -Identify and describe the structure of MRSA and its virulence factors in human host; -Examine the mechanism causing the antimicrobial resistance associated with MRSA

Biology Microbiology assignment

How much and when can you finish it Dr. Yahya Aldawood CLLS 406, Spring 2023-24 Clinical Rotation in Microbiology “CLLS 406” Student Name :_________________________ Student ID :_________ List pathogens cause UTI? Bacteria Fungi parasites Viruses List of pathogens cause Lower respiratory infections: Bacteria Fungi parasites Viruses List of pathogens cause