top bar
QuickTopic free message boards logo
Skip to Messages

TOPIC:

Machine Learning Course @ University of Tartu

^     All messages            75-90 of 90  59-74 >>
90
Maksym
02-28-2017
01:08 AM ET (US)
[1] "Sepal.Length == small & Sepal.Width == average & Petal.Length == tiny & Petal.Width == tiny"

Does anybody know how to pass this character type of value to subset function, so that it will do subset(data, Sepal.Length == small & Sepal.Width == average & Petal.Length == tiny & Petal.Width == tiny)?

Is there any smart way in R?
89
Ilya KuzovkinPerson was signed in when posted
04-19-2016
03:49 AM ET (US)
The correct PDF is up now, thanks!
88
Kristjan Jansons
04-18-2016
12:41 PM ET (US)
For a quick fix I think last year slides are the same: courses.cs.ut.ee/MTAT.03.227/2014_spring/uploads/Main/lecture-10.pdf
87
Anti
04-18-2016
12:22 PM ET (US)
Both, lecture 10 and lecture 11 have lecture 11 slides in the courses website. There are no lecture 10 slides.
86
Deleted by author 03-24-2016 09:50 AM
85
Sulev
03-21-2016
11:54 AM ET (US)
If anyone is struggling with plot.neuralnet which is not printing anything through R markdown but opens the graph in separate window, then you should redefine the function as shown here:
https://groups.google.com/forum/#!topic/rropen/qS7Fki9pj8k
84
Deleted by author 03-15-2016 06:14 AM
83
Sulev Reisberg
03-14-2016
06:47 PM ET (US)
I think you should use "lower or equal" in the formula:

classification.result*data$y <= 0

In that case 0 also means incorrect classification. This was what I did in that exercise.

Sulev
82
Andrii
03-14-2016
06:14 PM ET (US)
May anyone to approve or disapprove about the next. In ex. 11-12 we are starting to minimize our cost function from point (0, 0). In this point the function value equal to 0. As cost function bounded below by 0 (9-th slide from the lecture), does it mean that we are in a minimum and we don't need to do any iteration except the case just to show that the gradient is, indeed, 0 vector (as function is in minimum)?
81
Andrii
03-14-2016
04:54 PM ET (US)
@Markus

Thank you! Actually, it makes sense to handle non-positive cases as misclassifications.
80
Markus
03-14-2016
04:47 PM ET (US)
In exercise 11-12 we are supposed to first prove that an element is misclassified iff its functional margin is negative and right after that we have an exercise where we initialize weights to zero, thus getting all functional margins zero.

I believe we are supposed to count every non-positive margins as misclassified and that is also suggested in Introduction to Statistical Learning: http://www-bcf.usc.edu/~gareth/ISL/ISLR%20Sixth%20Printing.pdf

I might just be easily confused but the ordering of these exercises did get me confused. Maybe you could add this as a hint to the homework?
79
Andrii
03-14-2016
04:43 PM ET (US)
May anyone clarifies according Ex. 11-12. It seems that we don't have bias term w_0 in perceptron. So, if we start algorithm from point (0, 0), it means that functional margin will always be 0, hence, the error also equal to 0. And gradient is also equal to 0 as we don't have misclassified points. It means that our initial point will not update. Where am I wrong?
78
Dmytro
03-08-2016
09:11 AM ET (US)
@Anti and @Kristjan Jansons

Thank you a lot, you did my half an hour before deadline less stressful!
77
Kristjan Jansons
03-08-2016
08:34 AM ET (US)
@Dmytro
Projection is something like this - http://www.euclideanspace.com/maths/geomet.../projectLine300.gif

Second question. I think in task 26-28 you can use the same stoch_df as in task 23, but with the constraint as specified - so if it gets out of the allowed range then do projection. In task 29-30 it's something like sum(min(|d1|^3, |d2|^3)) if I understand correctly.
76
Anti
03-08-2016
08:29 AM ET (US)
@Dmytro

1. We project the point (w1,w2) orthogonally back into the area that satisfies given constraint. I did it so that if (w1,w2) went outside of the area, I projected the point (w1,w2) orthogonally onto the line that bounds the area where the constraint is satisfied.

2. Yes, in the last exercises we have function with multiple arguments.
75
Dmytro
03-08-2016
07:56 AM ET (US)
I am slightly stuck with home assignments 26 - 30. I would like to ask what exactly means by "project", what we project where ?

The second question, if I understand correctly that we will have function of two arguments f(w1, w2) = sum[ min(l(w1), l(w2) ] ?
^     All messages            75-90 of 90  59-74 >>

Print | RSS Views: 1708 (Unique: 339 ) / Subscribers: 16 | What's this?