Question: 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

 Instructions Write a method classify.py that takes in an image and

= 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!