GithubHelp home page GithubHelp logo

Comments (8)

bartaelterman avatar bartaelterman commented on July 29, 2024

@niconoe can you add a NUMBER_OF_RECORDS to your output?

I'll aggregate everything from one dataset together and compare the total sum with the API.

@peterdesmet how important is it that these match? i.e. what should happen if these numbers are not equal?

from gbif-dataset-metrics.

niconoe avatar niconoe commented on July 29, 2024

Yep, will include NUMBER_OF_RECORDS in first iteration of the data_extraction_module.

from gbif-dataset-metrics.

peterdesmet avatar peterdesmet commented on July 29, 2024

@bartaelterman, then the percentages would be too low.

from gbif-dataset-metrics.

bartaelterman avatar bartaelterman commented on July 29, 2024

The API might not be a good idea after all. Since the plan is to do this in the backend scripts, that means it will be done for every dataset we index. The goal is: all of them. That's about 14.000 datasets and thus 14.000 API calls we'll be sending to GBIF. We can do stuff in parallel with requests asynchronous support but we'll have to set a limit to the number of calls to prevent being blocked.
Personally, I would leave API calls for the front end only, because then you only do calls for the dataset you're viewing.

The total number of records is still valuable, but we'll just get it from the metrics, and don't perform a check. (unless you really insist, but then I would do that in the front end).

from gbif-dataset-metrics.

bartaelterman avatar bartaelterman commented on July 29, 2024

This does bring me to the following issue:

Since we're using chunks of the download, and I don't know how these were cut, it's possible that the data for one dataset is spread over several chunks. If not, then my point will not be valid, but then there would also be no use for aggregating data coming from different chunks. So I assume it does happen.

The problem is, we never know when we have all the data for one dataset except when we have processed all chunks. The only other option is what @peterdesmet suggests, but that is challenging because of the sheer number of API calls. The other option would be instead of working with one big download and cutting it ourselves, working with smaller downloads because then we know that the datasets in one download are complete.

from gbif-dataset-metrics.

niconoe avatar niconoe commented on July 29, 2024

My plan to circumvent this issue (ensure we have fully covered a given dataset) was:

  • First step: working with only a few selected datasets, 1 archive per dataset.
  • Later, split the whole archive and process ALL chunks.

from gbif-dataset-metrics.

bartaelterman avatar bartaelterman commented on July 29, 2024

Ok @niconoe . Then I would leave the check with the API call.

from gbif-dataset-metrics.

peterdesmet avatar peterdesmet commented on July 29, 2024

OK.

from gbif-dataset-metrics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.