Menu

#601 Numerical output errors

Pascal
closed
None
1Fatal
2024-06-16
2024-06-15
Steve Keen
No

The sums we're returning from a data file are wrong.

2 Attachments

Discussion

  • Steve Keen

    Steve Keen - 2024-06-15

    More of the same: sheet and plot returning different numbers when displaying the same data.

     
  • Steve Keen

    Steve Keen - 2024-06-15

    I think the redesign of the output from sheets may be the culprit here. The time trend for China in this sheet is the opposite of the data, but the column output for the year 1997 seems to grow as you'd expect China's patents to rise over time.

     
  • Steve Keen

    Steve Keen - 2024-06-15

    Here's another example. I aggregated data by sorting and deleting in Excel, so the CSV has the actual numbers that can be compared to what Ravel is pumping out. There are obvious cases of numbers being scambled.

     
  • High Performance Coder

    Good catch. When I transposed the sheet so that it aligned with the ravel handles, I basically just swapped the indexes 0 & 1. Unfortunately, in C++, you don't have multidimensional arrays (they're coming in C++23 I believe), so you have to calculate a linear index of the form i+j*dim[0]. I swapped the 0 for a 1 instead of swapping the i and j. It took an egregious dataset such as this patent dataset for that mistake to be obvious.

     
  • High Performance Coder

    • status: open --> closed
    • assigned_to: High Performance Coder
     
    • Steve Keen

      Steve Keen - 2024-06-16

      My gawd, you're human after all! 😉. That sounds like one of my mistakes!

      Good that we've caught this one now, anyway. Can you get a new beta to me
      ASAP? I want to use this dataset as an indication of getting insights
      rapidly from Ravel on the Patreon site.

       

Log in to post a comment.