AIGS1006 Assignment 2
.pdf
keyboard_arrow_up
School
Loyalist College *
*We aren’t endorsed by this school
Course
1003
Subject
Computer Science
Date
Dec 6, 2023
Type
Pages
3
Uploaded by DeaconMosquito4213
AIGS1006 - Deep Learning
Assignment 2
Collaboration Policy
After you have thought about the questions on your own, collaboration is strongly encouraged on
the assignments and it is also acceptable to get clarification (but not solutions) from books or online
resources.
Always ensure you cite your collaborators fully and completely (e.g., “Ada explained to me what
was asked in part a of Q1”).
Furthermore, write your solutions or coding implementations
independently.
Requirements for submission
Submit a single .ipynb file
via Canvas (Rename as FirstnameLastName.ipynb). Assignments
are to be completed individually, plagiarism will not be tolerated and will result in a mark of 0, at
the minimum. This assignment is worth 15% of your final grade.
Assignments are marked not only on your ability to solve the questions but also on your attention
to detail and ability to follow the instructions.
Question 1 [18 points]
You are given the neural network in Figure 1. Single-circled nodes denote variables (e.g.,
x
1
is an
input variable,
h
1
is an intermediate variable, ˆ
y
is an output variable), and double-circled nodes
denote functions (e.g.,
∑
takes the sum of its inputs, and
σ
denotes the logistic function, i.e.,
σ
(
z
) =
1
1+
e
−
z
. In Figure 1,
h
1
=
1
1+
e
−
w
1
x
1
−
w
2
x
2
. Suppose you have an L2 loss
L
(
y,
ˆ
y
) =
||
ˆ
y
−
y
||
2
.
You are also given a data point (
x
1
, x
2
, x
3
, x
4
) = (-0.7, 1.2, 1.1, -2) with true label as 0.5.
Use the
backpropagation algorithm to compute the partial derivative
∂L
∂w
1
. Note that the gradient
of an L2 loss function
||
ˆ
y
−
y
||
2
is 2
||
ˆ
y
−
y
||
. Show all workings!
1
Figure 1: Neural Network
Question 2 [32 points]
The goal of this question is to have you use TensorFlow to build some neural network, and to
experiment with the options and flexibility that TensorFlow offers.
Use TensorFlow to build a
feedforward neural network to predict occupancy. It comprises experimental data used for binary
classification of room occupancy (i.e., room is empty vs occupied) based on temperature, humidity,
light, and CO2 sensors. The training and test data sets are each collected over a week period.
The data set includes time stamps with date and hour/minute/second within the day. You are
not to use time stamp features for predicting occupancy. Since this is a commercial office building,
the time stamp is a strong predictor of occupancy.
Rather, the goal is to determine whether
occupancy can be sensed from:
1. temperature (
◦
C
)
2. relative humidity (%)
3. light (
lx
)
4. CO2 (
ppm
)
5. humidity ratio (this is derived from the temperature and the relative humidity)
The training data included as
trainData.txt
file and
testData.txt
is the test data file.
2
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
ER diagram for the following use cases:
Intro/Homepage: This first case will be used to give the user the first look at what the whole project is about. They see the beginning stage and interact with all the links to the movies, characters, and descriptions.
Browse MCU Shows: This case will be for the customers and users to be able to navigate through the feature and see what they are specifically. They can use it to find which exact Marvel Cinematic Universe movie/show they wish to watch and see what character they like.
View MCU Movie Details: This case will be for users to get more information about specific Marvel movies/shows. It will give more details like the cast, the run time, the review score, the characters involved and etc.
arrow_forward
Case Study – Personal Trainer
Personal Trainer, Inc.
Fact-Finding Summary
A typical center has 300-500 members, with two membership levels: full and limited. Full members have access to all activities. Limited members are restricted to activities they have selected, but they can participate in other activities by paying a usage fee. All members have charge privileges. Charges for merchandise and services are recorded on a charge slip, which is signed by the member. At the end of each day, cash sales and charges are entered into the BumbleBee accounting software, which runs on a computer workstation at each location.
Daily cash receipts are deposited in a local bank and credited to the corporate Personal Trainer account. The BumbleBee program produces a daily activity report with a listing of all sales transactions. At the end of the month, the local manager uses BumbleBee to transmit an accounts receivable summary to the Personal Trainer headquarters in Chicago, where member…
arrow_forward
Study the scenario and complete the question(s) that follow: MotorHub Inventory Application MotorHub is a new and upcoming car dealership based in South Africa. They will be selling new and second-hand cars of all types. When they receive stock of a new car to sell, they fill in an inventory form that consists of the car details, such as car model and year of manufacture. This is a tedious process as it involves a lot of paperwork. The MotorHub management have decided to digitise this process by implementing an application that will be used for the inventory process instead of the traditional paper process that they have been using. You have been contacted by the management team to assist them in developing this application. Source: Makura S.M (2021)
1.1 Create a C# application for MotorHub using Visual Studio. The application should be titled “MotorHub Car Inventory App”. It must consist of a car logo (see Figure 1). The application must allow the user to enter the car details and…
arrow_forward
Study the scenario and complete the question(s) that follow: MotorHub Inventory Application MotorHub is a new and upcoming car dealership based in South Africa. They will be selling new and second-hand cars of all types. When they receive stock of a new car to sell, they fill in an inventory form that consists of the car details, such as car model and year of manufacture. This is a tedious process as it involves a lot of paperwork. The MotorHub management have decided to digitise this process by implementing an application that will be used for the inventory process instead of the traditional paper process that they have been using. You have been contacted by the management team to assist them in developing this application. Source: Makura S.M (2021)
1.1 Create a C# application for MotorHub using Visual Studio. The application should be titled “MotorHub Car Inventory App”. It must consist of a car logo. The application must allow the user to enter the car details and store them. Your…
arrow_forward
Question Completion Status:
Moving to another question will save this response.
Question 3
is a leader of the steering team.
Team leader
Project sponsor
User
Project manager
A Moving to another question will save this response.
arrow_forward
Overview: A Sports Club is an organization formed in order to help its members develop interest in certainsports.Usually, members interested in the same sport are divided into groups and an expert trainer is responsible for training each group.In this TMA, it is required to help the head of a Sports Club for kids implement application to keep track of the kids (members of the club) and the sports they are interested in.Requirements:After a quick meeting with the head of the sports club, you got the following information: It is required to store the whole data (all groups of all sports) in one collection. Each group has a number, a trainer and they are interested in a certain sport (e.g. football). In addition, it contains many kids with flexibility of adding and removing kids within a given limit for the maximum number of kids who could be in the same group (where this limit is fixed and unified for all groups). Furthermore, there are other attributes (add at least 2attributes from…
arrow_forward
Assigning group access controls eliminates individual accountability.
Select one:
O True
O False
arrow_forward
Create an end of workshop evaluation form.
arrow_forward
Describe the activities and participant roleswithin a structured walkthrough
arrow_forward
SDLC - Requirement Analysis
For your course project you will specify the requirements. In this assignment you will produce the first deliverable for your course project, the requirements specification.
The purpose of this assignment is for you to learn how to write a complete and precise requirements specification, which is the first step in developing a large software system.
The teaching assistant is your customer, and he would like you to build a text editing system with the following features:
Text Editing System
A software system is desired for creating, storing, retrieving and modifying files of text.
The text editing system will be accessible through a full-screen interface for interactive editing.
The system will support a variety of editing commands, including inserting and deleting lines, modifying text in existing lines, and searching for text.
You as the supplier are responsible for building a software system that meets the needs of your customer. However, they…
arrow_forward
Chapter 4 Requirements Model
Case Study – Personal Trainer
Personal Trainer, Inc.
Fact-Finding Summary
A typical center has 300-500 members, with two membership levels: full and limited. Full members have access to all activities. Limited members are restricted to activities they have selected, but they can participate in other activities by paying a usage fee. All members have charge privileges. Charges for merchandise and services are recorded on a charge slip, which is signed by the member. At the end of each day, cash sales and charges are entered into the BumbleBee accounting software, which runs on a computer workstation at each location.
Daily cash receipts are deposited in a local bank and credited to the corporate Personal Trainer account. The BumbleBee program produces a daily activity report with a listing of all sales transactions. At the end of the month, the local manager uses BumbleBee to transmit an accounts receivable summary to the Personal Trainer headquarters…
arrow_forward
Define the objectives: Start by defining the objectives of the interview. What are the objectives of the interview?
arrow_forward
Checklist testing, what is it? Make the connection to your project using the real-world illustration you've chosen.
arrow_forward
Usability Testing is a term that you use to describe what you do.
arrow_forward
Create use case diagram based on the user story
arrow_forward
Object orentied Programming
Sports World is an Events Management Company that organizes the running of major sporting games, such as the Olympic Games.
Before being used to host a sporting event, venues are assessed by an Administrator who checks that they are fit for purpose. If the venue can hold more than 10,000 people, the Administrator conducts additional health and safety checks to ensure that the venue is safe.
A year before the games begin, a Team of Staff is appointed to run the day-to-day operations, including booking successfully assessed/safety-checked venues. Six months before the games begin, the Team of Staff produce a Program that lists the date, time and location of each sporting event. At this point, Athletes can register for an event by giving their name, address, date of birth and best time for their event. Some overseas athletes need to apply for a visa and the system needs to record whether they were successful.
A week before the games begin, a Team of Staff…
arrow_forward
Rule(s)
-AGENT can serve multiple CUSTOMERS. AGENT specifically assists CUSTOMERS who are in the same AREA.
Given the business rule(s) you wrote , create the basic Crow’s Foot ERD.( that i can visualize, use draw.io or any to illustrate)
arrow_forward
Systems Analysis Assignment (Microsoft Word and Excel)
You and your team have been hired to set up a computer classroom for Tech United, Inc. An up
and coming tech startup who will like to become a tech training company.
Tech United, Inc. wants to offer various different kinds of tech training at their new office location.
They have only one classroom space available that can accommodate up to 30 students. The
classroom is already equipped with tables and chairs. The classroom, however, does not have any
computers, routers, projectors, smartboard etc. This is where you come in. The company has
$40,000 as a starting budget and will like for you to determine for them what
computers/keyboards/mouse/router/printer/smartboard etc. they should buy. You determine
based on their budget, how many of each item should be purchased for the classroom.
Deliverables
Deliverable Part 1: A systems analysis report on what kind of computers and hardware the
company should use in their classroom,…
arrow_forward
Overview
This project involves a case study based on a fictional company, Healthy Home Care, Inc. You’ll assume the role of office manager, who is responsible for creating the literature for a Welcome Package. The promotional documents will be printed and placed in a folder to be mailed to the director of a senior center. For this project, you’ll complete four documents for the package:
A cover letter discussing your partnership with a senior center
A fact sheet highlighting the services and amenities you offer
A flier promoting the next wellness clinic
A pre-registration form
Instructions
Create the following documents. Your score will be based on the rubric found in the scoring guidelines.
Create and Edit a Cover Letter
The Welcome Package includes a letter to the director of a senior center.
Start Word and create a new document.
Change the style of the blank paragraph to No Spacing.
Type the text shown below, pressing Enter to place one blank line where indicated, four blank…
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
Related Questions
- ER diagram for the following use cases: Intro/Homepage: This first case will be used to give the user the first look at what the whole project is about. They see the beginning stage and interact with all the links to the movies, characters, and descriptions. Browse MCU Shows: This case will be for the customers and users to be able to navigate through the feature and see what they are specifically. They can use it to find which exact Marvel Cinematic Universe movie/show they wish to watch and see what character they like. View MCU Movie Details: This case will be for users to get more information about specific Marvel movies/shows. It will give more details like the cast, the run time, the review score, the characters involved and etc.arrow_forwardCase Study – Personal Trainer Personal Trainer, Inc. Fact-Finding Summary A typical center has 300-500 members, with two membership levels: full and limited. Full members have access to all activities. Limited members are restricted to activities they have selected, but they can participate in other activities by paying a usage fee. All members have charge privileges. Charges for merchandise and services are recorded on a charge slip, which is signed by the member. At the end of each day, cash sales and charges are entered into the BumbleBee accounting software, which runs on a computer workstation at each location. Daily cash receipts are deposited in a local bank and credited to the corporate Personal Trainer account. The BumbleBee program produces a daily activity report with a listing of all sales transactions. At the end of the month, the local manager uses BumbleBee to transmit an accounts receivable summary to the Personal Trainer headquarters in Chicago, where member…arrow_forwardStudy the scenario and complete the question(s) that follow: MotorHub Inventory Application MotorHub is a new and upcoming car dealership based in South Africa. They will be selling new and second-hand cars of all types. When they receive stock of a new car to sell, they fill in an inventory form that consists of the car details, such as car model and year of manufacture. This is a tedious process as it involves a lot of paperwork. The MotorHub management have decided to digitise this process by implementing an application that will be used for the inventory process instead of the traditional paper process that they have been using. You have been contacted by the management team to assist them in developing this application. Source: Makura S.M (2021) 1.1 Create a C# application for MotorHub using Visual Studio. The application should be titled “MotorHub Car Inventory App”. It must consist of a car logo (see Figure 1). The application must allow the user to enter the car details and…arrow_forward
- Study the scenario and complete the question(s) that follow: MotorHub Inventory Application MotorHub is a new and upcoming car dealership based in South Africa. They will be selling new and second-hand cars of all types. When they receive stock of a new car to sell, they fill in an inventory form that consists of the car details, such as car model and year of manufacture. This is a tedious process as it involves a lot of paperwork. The MotorHub management have decided to digitise this process by implementing an application that will be used for the inventory process instead of the traditional paper process that they have been using. You have been contacted by the management team to assist them in developing this application. Source: Makura S.M (2021) 1.1 Create a C# application for MotorHub using Visual Studio. The application should be titled “MotorHub Car Inventory App”. It must consist of a car logo. The application must allow the user to enter the car details and store them. Your…arrow_forwardQuestion Completion Status: Moving to another question will save this response. Question 3 is a leader of the steering team. Team leader Project sponsor User Project manager A Moving to another question will save this response.arrow_forwardOverview: A Sports Club is an organization formed in order to help its members develop interest in certainsports.Usually, members interested in the same sport are divided into groups and an expert trainer is responsible for training each group.In this TMA, it is required to help the head of a Sports Club for kids implement application to keep track of the kids (members of the club) and the sports they are interested in.Requirements:After a quick meeting with the head of the sports club, you got the following information: It is required to store the whole data (all groups of all sports) in one collection. Each group has a number, a trainer and they are interested in a certain sport (e.g. football). In addition, it contains many kids with flexibility of adding and removing kids within a given limit for the maximum number of kids who could be in the same group (where this limit is fixed and unified for all groups). Furthermore, there are other attributes (add at least 2attributes from…arrow_forward
- SDLC - Requirement Analysis For your course project you will specify the requirements. In this assignment you will produce the first deliverable for your course project, the requirements specification. The purpose of this assignment is for you to learn how to write a complete and precise requirements specification, which is the first step in developing a large software system. The teaching assistant is your customer, and he would like you to build a text editing system with the following features: Text Editing System A software system is desired for creating, storing, retrieving and modifying files of text. The text editing system will be accessible through a full-screen interface for interactive editing. The system will support a variety of editing commands, including inserting and deleting lines, modifying text in existing lines, and searching for text. You as the supplier are responsible for building a software system that meets the needs of your customer. However, they…arrow_forwardChapter 4 Requirements Model Case Study – Personal Trainer Personal Trainer, Inc. Fact-Finding Summary A typical center has 300-500 members, with two membership levels: full and limited. Full members have access to all activities. Limited members are restricted to activities they have selected, but they can participate in other activities by paying a usage fee. All members have charge privileges. Charges for merchandise and services are recorded on a charge slip, which is signed by the member. At the end of each day, cash sales and charges are entered into the BumbleBee accounting software, which runs on a computer workstation at each location. Daily cash receipts are deposited in a local bank and credited to the corporate Personal Trainer account. The BumbleBee program produces a daily activity report with a listing of all sales transactions. At the end of the month, the local manager uses BumbleBee to transmit an accounts receivable summary to the Personal Trainer headquarters…arrow_forwardDefine the objectives: Start by defining the objectives of the interview. What are the objectives of the interview?arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education