Questions tagged [homework]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
35 views

Replacing count by percentage in R

I have the following code : ...
  • 25
1 vote
1 answer
134 views

making a contingency table with TRUE and FALSE values

I made the following contingency table already, however there should only be TRUE or FALSE and not all of them showing up on the table. How can I change that? my code is the following: ...
  • 25
4 votes
1 answer
326 views

How to solve the gradient descent on a linear classification problem?

I have a problem which i have attached as an image. Problem is in image attached what I understand error function is given by: $e(y, \hat y)=0$ if $y \cdot a(x-b) \ge 1$ or $e(y, \hat y) = 1-y\cdot ...
0 votes
0 answers
37 views

Are application assignments in Datascience common practice?

this might seem off topic, but I hope this question will be tolerated. I was recently asked to help a friend with an assignment in the process of applying for a new job as data scientist. And ...
  • 69
1 vote
1 answer
71 views

Train Naive Based Classifier

For (a) I have calculated $P(G)=\frac{5}{8}$, $P(O|G)=\frac{2}{5}$, $P(B|G)=\frac{1}{5}$, $P(C|G)=\frac{4}{5}$, and $P(A|G)=\frac{4}{5}$. Now how do I calculate the maximum likelihood estimate of ...
  • 63
0 votes
2 answers
63 views

How do I determine if a neural network can be computed by a network that contains only an input layer and an output layer?

I have a homework problem where the neural network below is given with its description. We have been asked "Can the functions that the above network computes also be computed by a network that ...
's user avatar
1 vote
0 answers
341 views

Coding Issues faced in Andrew Ng's course [closed]

I was going through Andrew's ML course on Coursera (Week 2). I attach with this post some snaps of my codes for the optional exercise part (of the programming assignment problems) for that week, ...
  • 111
1 vote
0 answers
186 views

Problem on dataset skewness and deviation [closed]

This is the problem statement : Your data set has missing values and is positively skewed with skewness = 1. Further examination tells you that they are spread along 1.5 standard deviation from the ...
3 votes
2 answers
784 views

Can a single-layer ANN get XOR wrong?

I'm still pretty new to artificial neural networks. While I've played around with TensorFlow, I'm now trying to get the basics straight. Since I've stumbled upon a course which explains how to ...
3 votes
1 answer
66k views

What is the problem with: the condition has length > 1 and only the first element will be used?

newbie to r. i have: ...
  • 143
1 vote
1 answer
5k views

How do i convert a Named num [1:4] to a data frame in R?

newbie to r, taking The R Programming Environment from coursera. one of the assignments is to select some columns from a data frame and find the means. the code below seems to get the correct answer, ...
  • 143
-3 votes
1 answer
519 views

A binary classifier predicts only one type of class

This is an assignment question. Can someone someone give me some clue on how to get through: A generative approach is used for a binary classification problem and it turns out that the resulting ...
1 vote
1 answer
294 views

How to calculate growth function for a threshold function

I'm working on a homework problem but don't fully understand it. The problem and solution: I don't understand the definition of the threshold function. Does it mean to pick one feature and classify ...