Lab#5
.docx
keyboard_arrow_up
School
Centennial College *
*We aren’t endorsed by this school
Course
123
Subject
Computer Science
Date
Jun 5, 2024
Type
docx
Pages
1
Uploaded by DukeOkapiPerson757
Programming III
COMP212
Lab#5
Page 1
of 2
Lab#5 – ML.NET
Due Date:
Midnight of April 12 (Friday)
Purpose:
The purpose of this assignment is to help you:
Understand the ML.NET pipeline
Identify the type of problems that can be solved with ML.NET Instructions
: Be sure to read the following general instructions carefully:
This assignment should be completed individually by all the students. You are encouraged to demonstrate your solution, and submit your solution through the dropbox
. You must name your submission according to the following rule: studentID(yourlastname)_Labnumber.zip
. e.g., 300123456(
smith)_Lab#5
.zip
Rubric
Functionality
Marks
Q1
1.1 Generate cost prediction regression model
3
1.2 Consume the generated model 2
Q2
2.1 Student class and ClusterPrediction class
1
2.2 Customize options for K-Means
1
2.3 Create the pipeline
1
2.4 Instantiate an instance of Student class
1 2.5 Create the prediction engine from the model and perform the prediction 1
Question 2 [5 marks]
Implement C# application to predict the medical cost by using ML.NET based on the dataset insurance.csv
Question 3 [5 marks]
Implement C# application to predict student’s knowledge level by using ML.NET based on the dataset Student.csv and readme.txt
[
Hint
] you can do it by mimicking the tutorial at https://docs.microsoft.com/en-us/dotnet/machine-
learning/tutorials/iris-clustering
Discover more documents: Sign up today!
Unlock a world of knowledge! Explore tailored content for a richer learning experience. Here's what you'll get:
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
Software development C#The application developed in Part 1 is already useful in terms of functionality, but it has a severe usability flaw: the data is not persisted, forcing the user to capture all the data from scratch if the application is executed again.For this part, you will continue working on the application you developed in Part 1. Remember to implement any feedback provided by your lecturer on Part 1 before working on Part 2. Marks will be awarded for this (see the rubric for details).All the requirements from Part 1 must still be met by the program, with the following changes and additions:1. The software shall persist the data in a SQL database.2. The user shall be able to register with a username and password.3. The software shall store only the hash of the password in the database.4. The user shall be able to log into the software with their username and password.5. The user shall only be able to see their own data and never that of other users.Non‐functional…
arrow_forward
Question 2
This question provides an opportunity for you to demonstrate your understanding of the problem-solving approach taught in TM112 and the patterns introduced in Block 1 Part 4 and Block 2 Part 2. You can find an overview of the problem-solving approach and a list of all the patterns TM112 teaches in the Problem solving and Python quick reference and you will need to refer to this document as you work on the question.
Important note: you do not need to get a working program in part a. in order to attempt part b.
A student wants to design and implement a Python program to convert any 6-bit unsigned binary number to its decimal equivalent. There are many ways of doing this, but here is their initial top-level decomposition:
> Convert binary to decimal
>> Input a list of six 1s and 0s corresponding to the binary number to be converted
>> Input a list of six column weightings consisting of powers of two
>> Create a new list that contains the decimal…
arrow_forward
Question 2
This question provides an opportunity for you to demonstrate your understanding of the problem-solving approach taught in TM112 and the patterns introduced in Block 1 Part 4 and Block 2 Part 2. You can find an overview of the problem-solving approach and a list of all the patterns TM112 teaches in the Problem solving and Python quick reference and you will need to refer to this document as you work on the question.
Important note: you do not need to get a working program in part a. in order to attempt part b.
A student wants to design and implement a Python program to convert any 6-bit unsigned binary number to its decimal equivalent. There are many ways of doing this, but here is their initial top-level decomposition:
• > Convert binary to decimal
o >> Input a list of six 1s and 0s corresponding to the binary number to be converted
o >> Input a list of six column weightings consisting of powers of two
o >> Create a new list that contains the…
arrow_forward
CODE USING C++
When dealing with problems, it is always best to find the "elephant" in the room. The elephant is basically the biggest issue.
Once this is resolved, it's almost always easier to move forward.
As a therapist, I know how to find the elephant in the room. However, I'm feeling sick today and the next client is coming. Could you please find the elephant for me?
Instructions:
In the code editor, you are provided with a function, findElephant() that accepts a 2D array and returns the largest element in the array. This function has already been implemented so do not edit this.
You are also provided with the 2D array in the main() function.
Your only task is to call the findElephant() function and pass the 2D array, and print the return value.
Output
Elephant:·10
arrow_forward
MCQ20: Component level design is concerned with
a.
Flow oriented analysis
b.
Class based analysis
c.
Both of the above
arrow_forward
Please help with this problem. Thanks in advance. Write in c/c++.
arrow_forward
Code in C programming only ( not C++ or Java or Python)
BeautifulPath
You are supposed to write production ready code with Proper Unit Test Cases, Modularizaton etc.
You need to write your test cases under user package in test folder. One sample test is created under same
package for reference.
Your code will be evaluated on the basis of code coverage, Code Quality, Best Practices and Bugs.
NOTE: Here, we use CMocka for writing test cases and GCC Compiler.
**PROBLEM:*
Given a directed graph with N nodes and M edges. Each node is associated with lowercase english alphabet.
Beauty of a path is defined as the number of most frequently occurring alphabet.
Find the most beautiful path and return the maximum beauty value it has.
*CONSTRAINTS:*
13->4->5) ie (aaca)
lonut.
Strictly Use the following Function :-
int beauty(int v, int e, String s, int[] x, int[] y)
arrow_forward
Programming and user contexts may be shown by using examples.
arrow_forward
Answer the given question with a proper explanation and step-by-step solution.
Instructions
Create a VS C++ project using the name format:
firstname_lastname_06
The program will ask for values (int, double, string, or any datatype that's in your class' attributes) to initialize an array of 5 objects of your Assignment 1's class.
Note: If you received feedback about Assignment 1 design, update it accordingly.
Then, sort the list using the insertion sort algorithm and display the content of the list.
Make sure to modify the insertion sort algorithm from your textbook to work with an array of your Assignment 1's class.
Your class may also need to be modified by implementing a few operator overloading functions.
Submission
Files to submit:
Project/solution-related files
Your class (.h and .cpp)
main file (.cpp)
Submit the project in a zip folder.
Assignment 1 Car.h
#pragma once#include <iostream>
using namespace std;class Car
{private: int maxSpeed; //maximum speed of the car…
arrow_forward
Please write the code in C language thank you
arrow_forward
in python
You are going to create a game or application that utilizes many of the features of the course. You are to build a single game or application that is built using an object-oriented paradigm and utilizes many of the features from the course. Most of these features you will come across naturally while building your game or application so picking the right project is the most important part early on. Not only will you code the project, but you will also develop a short video of you using the game or application and fill out a series of short written responses relating to your program and program code. You are to use our graphics library for this project. Using tKinter or other libraries will need written consent from your instructor and pyGame is off limits.
Project Code Requirements:1. Object Oriented: There is at least one class and one instance of that class created to simplify and encapsulate the actions of the program.2. Graphical: Interaction with the user must…
arrow_forward
7-2 Discussion: Interpreting Multiple Regression Models
Previous Next
In this discussion, you will apply the statistical concepts and techniques covered in this week's reading about multiple regression. You will not be completing work in Jupyter Notebook this week. Instead, you will be interpreting output from your Python scripts for the Module Six discussion. If you did not complete the Module Six discussion, please complete that before working on this assignment.
Last week's discussion involved development of a multiple regression model that used miles per gallon as a response variable. Weight and horsepower were predictor variables. You performed an overall F-test to evaluate the significance of your model. This week, you will evaluate the significance of individual predictors. You will use output of Python script from Module Six to perform individual t-tests for each predictor variable. Specifically, you will look at Step 5 of the Python script to answer…
arrow_forward
Which of the following is not a requirement of structured design?
A.
It should be made up of a hierarchy of modules
B.
It should use many GOTO statements
C.
The code should be executed in a top-to-bottom fashion within each module
D.
Each module should be as independent as possible of all other modules, except its parent
E.
None of the above
arrow_forward
Object Oriented Programming Using Java and JavaEx
I want a clear solution to this project in Java language, I want you to explain everything
through the comments inside the code, attach the text code, attach the output screenshots and
screenshots of the code, explaining everything, becanse the professor will discuss with us, so
make the solution very clear and explained through the comments.
The solution must be new and unique to me, not repeated by any student
Object Oriented Programming Using Java
Final Project
A simple Library Management System aims at developing a computerized system
to maintain all the day-to-day activity of a library. This functional project handles data
of books and their copies, users that can be either students or teachers as well as book
loans.
Each book has an id, title, publisher, author, year, number of copies, copies of the
book, financial value and status(true if at least one copy is available). Each copy has
id, status whether a copy is available to be…
arrow_forward
Computational thinking for a software developer/computer programmer is a critical skill that is consistently applied. This lab requires you to develop a solution using Java object-oriented programming that simulates creating and managing a collection of songs.
The system manages information about a collection of songs. The system stores the following information (for each attribute, choose any type that you think is appropriate--you must be able to justify the decisions you make):
Collection Name: the name for the collections of songs
Collection list of songs: the system allows you to create a collection with unlimited
songs. You can add the same song multiple times to any given collection. Hence, the collection allows songs to be duplicated
Note: other system functionalities can be inferred from the given JUnit test.
o NoSystem.out.printlnstatementsshouldappearinit.o NoScanneroperations(e.g.,input.nextInt())shouldappearinit.
Instead, declare the method's input parameters as indicated…
arrow_forward
Local declarations are those that are stored in the computer's memory, but how are they stored? Using local declarations is unnecessary if the same goal can be accomplished without them. When reference parameters may be used in any function, why bother with value parameters? When it comes to processing programme data, how important are value parameters?
arrow_forward
To start execution of a model
you can
keyboard shortcut, Ctrl+S
click the Start button on the model's
toolbar
keyboard shortcut, Ctrl+T
select Start from the model editor's
Simulation menu
arrow_forward
When should you generalize, overfit, and underfit?
arrow_forward
As noted above, OOP in any language has some significant advantages. For the following questions, assume the role of a junior developer in a company that is creating a new PHP web application. The company has a few small PHP web apps, but they've been largely developed in isolation by individual developers who have followed mainly procedural programming techniques.
This project will be the first large PHP project for the company, so it will be worked on by a team of developers, including yourself. There are also thoughts that this application may provide some core functionality that other, future applications may be able to use as well.
In your original post, answer the following:
How will using OOP techniques in the development of this application benefit the idea that the application will be creating some core functionality that may be of use to other applications?
If the team is reluctant to adopt OOP techniques and wants to go with a more procedural approach that they're familiar…
arrow_forward
A manager of a department at Google wants to schedule 15-min coffee chat between two employees every week for his 6 employees. Design and write a program to help this manager.
Each employee should have a meeting with a new person. So, no meeting with the same person until they meet all the other colleagues.
Use functional programming or object-oriented programing.
You can have your own design to cover the requirements but you should consider a design with better time complexity.
You can use any data structures (lists, dictionaries, stacks, queues, ...)
The number 6 here is an example and imaging there are "n" (an even number) employees in the group (for this example n =6)
Every week each employee should have a meeting and just one meeting with one person.
Every week they should have a meeting with a new person.
Until week 5 ( n-1 weeks) they should have a meeting with the same person.
employees = [ employee_1, employee_2, employee_3, employee_4, employee_5, employee_6]
It means…
arrow_forward
Converting a Program Design to Python Code [10 marks]
This exercise should be done in the "Exercise1" file provided to you. In class, we've been drawing
up designs in English for programs we want to write. We've then used these code designs to create
programs in Python code. For now, I've given you a code design and your job is to convert the
design into Python code.
Below l'll first provide an example for you. On the left is a code design and on the right is the
associated Python code. You need not type it in if you don't want to; it's just an example of a code
design and its corresponding code.
Design:
Create a variable 'num1' and store the
number 4 in it
Code:
num1 = 4
Ask the user for a number; store this in
variable 'num2'
num2 = int(input("Enter a number:")
Add variables num1 and num2 and
total = num1 + num2
store the result in variable 'total'
Display "The total is:"
Display variable 'total'
print("The total is:")
print(total)
YOUR TASK: Convert the following code design into…
arrow_forward
1. IntroductionCCCS 121Object Oriented Programming language Group Course ProjectAn object-based application is an application that involves objects created out of classes. These objects interact with each other to fulfill certain functionalities.The focus of this project is to develop an application written in java which involves the use of object-oriented programming. This project is a group project. As a student you will be given a chance to come up with an idea for your project. However, the project must satisfy the requirements given in this document.This document shall be used as a set of guidelines. You are allowed to make necessary additions and/or changes to the requirements with prior approval from your instructor.2. RequirementsPropose and implement an application, that contributes to solving a real-life problem. Your application should include at least the following:2.1 Classes3 to 4 classes each one of them should have:A. B. C.A number of private and public attributes. The…
arrow_forward
Answer in 10 minutes, I will upvote the answer.
arrow_forward
True or False.
You cannot have a focus in a one-dimensional system.
arrow_forward
Define the term actual parameters.
arrow_forward
Fast please c++
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
- Software development C#The application developed in Part 1 is already useful in terms of functionality, but it has a severe usability flaw: the data is not persisted, forcing the user to capture all the data from scratch if the application is executed again.For this part, you will continue working on the application you developed in Part 1. Remember to implement any feedback provided by your lecturer on Part 1 before working on Part 2. Marks will be awarded for this (see the rubric for details).All the requirements from Part 1 must still be met by the program, with the following changes and additions:1. The software shall persist the data in a SQL database.2. The user shall be able to register with a username and password.3. The software shall store only the hash of the password in the database.4. The user shall be able to log into the software with their username and password.5. The user shall only be able to see their own data and never that of other users.Non‐functional…arrow_forwardQuestion 2 This question provides an opportunity for you to demonstrate your understanding of the problem-solving approach taught in TM112 and the patterns introduced in Block 1 Part 4 and Block 2 Part 2. You can find an overview of the problem-solving approach and a list of all the patterns TM112 teaches in the Problem solving and Python quick reference and you will need to refer to this document as you work on the question. Important note: you do not need to get a working program in part a. in order to attempt part b. A student wants to design and implement a Python program to convert any 6-bit unsigned binary number to its decimal equivalent. There are many ways of doing this, but here is their initial top-level decomposition: > Convert binary to decimal >> Input a list of six 1s and 0s corresponding to the binary number to be converted >> Input a list of six column weightings consisting of powers of two >> Create a new list that contains the decimal…arrow_forwardQuestion 2 This question provides an opportunity for you to demonstrate your understanding of the problem-solving approach taught in TM112 and the patterns introduced in Block 1 Part 4 and Block 2 Part 2. You can find an overview of the problem-solving approach and a list of all the patterns TM112 teaches in the Problem solving and Python quick reference and you will need to refer to this document as you work on the question. Important note: you do not need to get a working program in part a. in order to attempt part b. A student wants to design and implement a Python program to convert any 6-bit unsigned binary number to its decimal equivalent. There are many ways of doing this, but here is their initial top-level decomposition: • > Convert binary to decimal o >> Input a list of six 1s and 0s corresponding to the binary number to be converted o >> Input a list of six column weightings consisting of powers of two o >> Create a new list that contains the…arrow_forward
- CODE USING C++ When dealing with problems, it is always best to find the "elephant" in the room. The elephant is basically the biggest issue. Once this is resolved, it's almost always easier to move forward. As a therapist, I know how to find the elephant in the room. However, I'm feeling sick today and the next client is coming. Could you please find the elephant for me? Instructions: In the code editor, you are provided with a function, findElephant() that accepts a 2D array and returns the largest element in the array. This function has already been implemented so do not edit this. You are also provided with the 2D array in the main() function. Your only task is to call the findElephant() function and pass the 2D array, and print the return value. Output Elephant:·10arrow_forwardMCQ20: Component level design is concerned with a. Flow oriented analysis b. Class based analysis c. Both of the abovearrow_forwardPlease help with this problem. Thanks in advance. Write in c/c++.arrow_forward
- Code in C programming only ( not C++ or Java or Python) BeautifulPath You are supposed to write production ready code with Proper Unit Test Cases, Modularizaton etc. You need to write your test cases under user package in test folder. One sample test is created under same package for reference. Your code will be evaluated on the basis of code coverage, Code Quality, Best Practices and Bugs. NOTE: Here, we use CMocka for writing test cases and GCC Compiler. **PROBLEM:* Given a directed graph with N nodes and M edges. Each node is associated with lowercase english alphabet. Beauty of a path is defined as the number of most frequently occurring alphabet. Find the most beautiful path and return the maximum beauty value it has. *CONSTRAINTS:* 13->4->5) ie (aaca) lonut. Strictly Use the following Function :- int beauty(int v, int e, String s, int[] x, int[] y)arrow_forwardProgramming and user contexts may be shown by using examples.arrow_forwardAnswer the given question with a proper explanation and step-by-step solution. Instructions Create a VS C++ project using the name format: firstname_lastname_06 The program will ask for values (int, double, string, or any datatype that's in your class' attributes) to initialize an array of 5 objects of your Assignment 1's class. Note: If you received feedback about Assignment 1 design, update it accordingly. Then, sort the list using the insertion sort algorithm and display the content of the list. Make sure to modify the insertion sort algorithm from your textbook to work with an array of your Assignment 1's class. Your class may also need to be modified by implementing a few operator overloading functions. Submission Files to submit: Project/solution-related files Your class (.h and .cpp) main file (.cpp) Submit the project in a zip folder. Assignment 1 Car.h #pragma once#include <iostream> using namespace std;class Car {private: int maxSpeed; //maximum speed of the car…arrow_forward
- Please write the code in C language thank youarrow_forwardin python You are going to create a game or application that utilizes many of the features of the course. You are to build a single game or application that is built using an object-oriented paradigm and utilizes many of the features from the course. Most of these features you will come across naturally while building your game or application so picking the right project is the most important part early on. Not only will you code the project, but you will also develop a short video of you using the game or application and fill out a series of short written responses relating to your program and program code. You are to use our graphics library for this project. Using tKinter or other libraries will need written consent from your instructor and pyGame is off limits. Project Code Requirements:1. Object Oriented: There is at least one class and one instance of that class created to simplify and encapsulate the actions of the program.2. Graphical: Interaction with the user must…arrow_forward7-2 Discussion: Interpreting Multiple Regression Models Previous Next In this discussion, you will apply the statistical concepts and techniques covered in this week's reading about multiple regression. You will not be completing work in Jupyter Notebook this week. Instead, you will be interpreting output from your Python scripts for the Module Six discussion. If you did not complete the Module Six discussion, please complete that before working on this assignment. Last week's discussion involved development of a multiple regression model that used miles per gallon as a response variable. Weight and horsepower were predictor variables. You performed an overall F-test to evaluate the significance of your model. This week, you will evaluate the significance of individual predictors. You will use output of Python script from Module Six to perform individual t-tests for each predictor variable. Specifically, you will look at Step 5 of the Python script to answer…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