Week_6 - Copy

.docx

School

McGill University *

*We aren’t endorsed by this school

Course

660

Subject

Computer Science

Date

Jan 9, 2024

Type

docx

Pages

2

Uploaded by AgentEnergy7516

INSY660 Coding Foundations for Analytics 1. a) What’s the difference between artificial intelligence, machine learning, and deep learning? b) [Discussion Forum] Share the practical example of using artificial intelligence. 2. Try the clarfai food recognition algorithm of the following urls and export the results to csv format. (e.g., ) food-001.csv, food-002.csv, food_003.csv https://clarifai.com/cms-assets/20180320212157/food-001.jpg https://clarifai.com/cms-assets/20180320212158/food-002.jpg https://clarifai.com/cms-assets/20180320212159/food-003.jpg https://clarifai.com/cms-assets/20180320212200/food-004.jpg https://clarifai.com/cms-assets/20180320212201/food-005.jpg 3. Class a) Create a class called circle. The class should have an attribute for the radius. It should have two methods (functions), one to calculate the area and another to calculate the circumference. The methods should also print the calculated area and circumference Area = π .Radiu s 2 Circumference = 2. π .Radius b) Create an object using the class circle class which has a radius of 5. c) Then print out the area and circumference of the object using the defined method.
R. 4. Vector a) What will be the commands to define a vector? Values: 93, 77, 90, 28, 76 b) Calculate the average of the vector c) Calculate the Standard Deviation of the vector d) Add some more data to this vector: 35, 92, 87, 71 e)What is the new mean and standard deviation? 5. DataFrame a) Last 2 digits of Student IDs 19, 53, 52, 49, 47 b) Last 2 digits of Telephone Numbers 53, 40, 26, 68, 02 c) Build data frame with these values - Calculate the average of student IDs - Calculate the average of Telephone Numbers
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