Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Instructions Write a method classify.py that takes in an image and returns a prediction - ball, brick, or cylinder. An example script in located in

Instructions

Write a method classify.py that takes in an image and returns a prediction - ball, brick, or cylinder.

An example script in located in challenge/sample_student.py

Your script will be automatically evaluated on a set of test images.

The testing images are quite similar to the training images, and organized into the same difficulty categories.

You are allowed 10 submissions to the evaluation server, which will provide immediate feedback.

The Data

Easy Examples

image text in transcribed

= this code has syntax error.

import numpy as np
#It's kk to import whatever you want from the local util module if you would like:
#from util.X import ...
def classify(labels):
#method to classify labels
random_number = np.randon.randint (low=0, high =len(labels)-1)
#finding random integer
return labels [random_number]
#returning a value
print ("Enter some names:")
labels = raw_input().split()
#splitting labels
print ("classify:"), classify(labels)
#print generated label

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Step: 3

blur-text-image

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

Probabilistic Databases

Authors: Dan Suciu, Dan Olteanu, Christopher Re, Christoph Koch

1st Edition

3031007514, 978-3031007514

More Books

Students also viewed these Databases questions

Question

2. How will the team select a leader?

Answered: 1 week ago