Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

10. Classifying Processed Images into Multiple Classes Introduction We have processed images to represent as a vector of 300 attributes. The first 294 are

image image image image

10. Classifying Processed Images into Multiple Classes Introduction We have processed images to represent as a vector of 300 attributes. The first 294 are decimal values in the range 0 to 1 inclusive. The next six are binary values describing whether the image had a beach, a sunset, plants, a field, mountains, and buildings respectively. A value of 1 describes that the scene was present and 0 means it was not. For example: The vector describes an image with a beach and mountains before processing. The vector describes an image with a sunset, plants, and buildings before processing. The vector describes an image with only a field before processing. Note The data provided is not based on the real images, so you should not try generating images from the dataset. You should build the training model using the given dataset only. Task Task You are given 1438 processed image data instances, the training dataset. Build a model to predict how many scenes were present in 966 unseen processed image data instances in the testing dataset. Dataset You are provided the training dataset in the file train.csv. The file contains 1438 rows. Each row contains 300 comma- separated values. You are also provided the testing dataset in the file test.csv. The file contains 966 rows of 294 comma-separated values that desribe the attributes values. Submission Details Write the code to build a model to predict how many types of scenes were present in the image before processing. The code must save the predictions to the file prediction.csv, which contains exactly 966 rows with no header. Each row should contain six comma-separated binary values that correspond to the attribute values provided in the test.csv file. Note that: The training and testing files are available in the current working directory and can be downloaded at the links in the problem statement. Neither of the files has a header row. The prediction.csv file should not have a header row. Evaluation The prediction accuracy of the model is calculated using accuracy score: Expected = ["0,0,0,0,1,1", "1,0,0,1,0,0", "0,0,0,0,0,1", "1,0,0,0,0,0", "0,1,0,0,1,0"] Predicted = ["0,0,0,0,1,1", "1,0,1,0,0,1", "0,0,0,0,0,1", "1,0,0,0,0,0", "0,0,0,0,0,0"] Correct Prediction = ["Yes", "No", "Yes", "Yes", "No"] The correct number of predictions is 3, so the accuracy score is 35 = 0.6

Step by Step Solution

There are 3 Steps involved in it

Step: 1

To tackle this problem well need to follow several steps which include data preprocessing model training and prediction Well use machine learning tech... blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mathematics for Physical Chemistry

Authors: Robert G. Mortimer

4th Edition

124158092, 124158099, 978-0124158092

More Books

Students explore these related Programming questions

Question

Show that cot 1 e v = tan 1 e v .

Answered: 3 weeks ago