Menu

[Solved]-Python Write Function Determine Whether Given Example Test Positive Negative Given Data Ex Q37265202

In python write function that will determine whether a givenexample “test” is positive or negative given the data.

Each example in the data (row) will have three values (2continuous features, and a binary label: 1 for positive and 0 fornegative).

  

Note: assume the feature-values of the examples in the datafollow normal distrubutions.

  

Hint: you may use your work from getPDFValue.

  

Parameters:

data: a 2-D numpy array that represents two-featured examplesand their labels

   (refer to the sample output for an example)

test: a 1-D numpy array that represents a test example (with twovalues for feature1 and feature2)

  

The function will either return 1 for positive classification or0 for negative classification.

Expert Answer


Answer to In python write function that will determine whether a given example “test” is positive or negative given the data. Eac… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *