LFD Book Forum  

Go Back   LFD Book Forum > Course Discussions > Online LFD course > Homework 7

Reply
 
Thread Tools Display Modes
  #1  
Old 05-21-2013, 10:25 AM
doneit doneit is offline
Member
 
Join Date: Jan 2013
Posts: 15
Default *ANSWER* hw7, q1..4

This week I've switched to using Octave. I thought I had Q1..4 in the bag but only got one right. Can anyone suggest from these results what I may have done wrong?

Code:
Q	K	Ein		Eout

1	3	0.600000	0.700000
1	4	0.440000	0.300000
1	5	0.320000	0.500000
1	6	0.080000	0.200000
1	7	0.040000	0.000000

2	3	0.600000	0.648000
2	4	0.440000	0.420000
2	5	0.320000	0.416000
2	6	0.080000	0.188000
2	7	0.040000	0.084000

3	3	0.400000	0.440000
3	4	0.400000	0.280000
3	5	0.300000	0.360000
3	6	0.200000	0.200000
3	7	0.000000	0.080000

4	3	0.400000	0.500000
4	4	0.400000	0.396000
4	5	0.300000	0.388000
4	6	0.200000	0.284000
4	7	0.000000	0.192000
Reply With Quote
  #2  
Old 05-21-2013, 11:36 AM
Elroch Elroch is offline
Invited Guest
 
Join Date: Mar 2013
Posts: 143
Default Re: *answer* hw7, q1..4

Most of your data appears be shifted in a strange way. You will see what I mean if you look at the numbers I got corresponding to the options in Q1-Q4. Was there an indexing error?

(1) 0.3 0.5 0.2 0.0 0.1
(2) 0.420 0.416 0.188 0.084 0.072
(3) 0.28 0.36 0.20 0.08 0.12
(4) 0.396 0.388 0.284 0.192 0.196
Reply With Quote
  #3  
Old 05-21-2013, 12:40 PM
doneit doneit is offline
Member
 
Join Date: Jan 2013
Posts: 15
Default Re: *ANSWER* hw7, q1..4

Drat & double drat, forgot to account for Z index starting from zero Thanks Elroch!
Reply With Quote
Reply

Tags
hw7, validation

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:01 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
The contents of this forum are to be used ONLY by readers of the Learning From Data book by Yaser S. Abu-Mostafa, Malik Magdon-Ismail, and Hsuan-Tien Lin, and participants in the Learning From Data MOOC by Yaser S. Abu-Mostafa. No part of these contents is to be communicated or made accessible to ANY other person or entity.