Python Forum
semantic error log function
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
semantic error log function
#22
It's too late here. I will write a detail answer tomorrow.

The previous code will yield similar, close result, but it's not the algorithm from the paper
You can print cc and d respectively in every iteration of the loops and compare the results. Then you can compare the values used in the calculation of cc/d
at the moment my code reproduce verbatim the algorithm from the paper, i.e. it calculates all d(k,n) values and it uses d(n, n) to calculate the log.
you were right that d has to be list of lists. Actually that is the short answer of all your remaining question. but I will write detail explanation tomorrow
if you understand the algorithm from the paper you should not have problem with my code. I intentionally used the same variable names. the only difference, because you already had n, we use i.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
semantic error log function - by mcgrim - Apr-23-2019, 12:54 PM
RE: semantic error log function - by ichabod801 - Apr-23-2019, 01:45 PM
RE: semantic error log function - by mcgrim - Apr-23-2019, 06:16 PM
RE: semantic error log function - by ichabod801 - Apr-23-2019, 06:58 PM
RE: semantic error log function - by mcgrim - Apr-23-2019, 07:12 PM
RE: semantic error log function - by ichabod801 - Apr-23-2019, 07:24 PM
RE: semantic error log function - by mcgrim - Apr-23-2019, 07:29 PM
RE: semantic error log function - by buran - Apr-24-2019, 08:32 AM
RE: semantic error log function - by mcgrim - Apr-24-2019, 08:34 AM
RE: semantic error log function - by buran - Apr-24-2019, 08:50 AM
RE: semantic error log function - by mcgrim - Apr-24-2019, 09:07 AM
RE: semantic error log function - by buran - Apr-24-2019, 09:11 AM
RE: semantic error log function - by mcgrim - Apr-24-2019, 09:14 AM
RE: semantic error log function - by mcgrim - Apr-24-2019, 11:26 AM
RE: semantic error log function - by buran - Apr-24-2019, 11:35 AM
RE: semantic error log function - by mcgrim - Apr-24-2019, 11:39 AM
RE: semantic error log function - by buran - Apr-24-2019, 11:43 AM
RE: semantic error log function - by mcgrim - Apr-24-2019, 11:50 AM
RE: semantic error log function - by buran - Apr-24-2019, 06:34 PM
RE: semantic error log function - by mcgrim - Apr-24-2019, 07:53 PM
RE: semantic error log function - by buran - Apr-24-2019, 08:07 PM
RE: semantic error log function - by mcgrim - Apr-24-2019, 08:17 PM
RE: semantic error log function - by buran - Apr-24-2019, 08:36 PM
RE: semantic error log function - by mcgrim - Apr-24-2019, 08:43 PM
RE: semantic error log function - by buran - Apr-25-2019, 07:56 AM
RE: semantic error log function - by mcgrim - Apr-29-2019, 09:32 PM
invalid index to scalar variable - by mcgrim - Apr-24-2019, 08:22 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020