Coder Social home page Coder Social logo

Comments (3)

dbrakenhoff avatar dbrakenhoff commented on June 29, 2024

New proposed solution to this problem. Still a bit of a work in progress and I'm not sure whether this is the way to go yet.

Upsides:

  • Oseries to models link is stored, so no need to reconstruct this relation on load.
  • See list of linked models directly in oseries DataFrame.
  • List of models stored directly in oseries metadata.
  • Simple implementation using existing libraries
  • Get dictionary of {oseries: [model_names_list]} through pstore.oseries_models property

There are some performance downsides to this implementation, but I'm not sure if they're really noticeable in practice...

Downsides:

  • The oseries cache is cleared every time a model is added or deleted and will have to be reconstructed after that.
  • Updating the oseries metadata to add a model link requires reading and then writing the oseries timeseries+metadata each time. This means 1 extra read/write for each model added/deleted.
  • Deleting and then adding an oseries again will remove the model_links entry. Currently there is no logic to automatically rebuild this model_links entry in this case.

from pastastore.

dbrakenhoff avatar dbrakenhoff commented on June 29, 2024

A different proposed solution is presented in #68. This implementation creates a new library oseries_models where the relationship between models and oseries will be stored.

Upsides:

  • Names of models for a certain oseries are stored, making it easy to obtain models for a specific point without having to recalculate that relationship every time.
  • Relative to previous implementation, much more efficient. No need to read/write timeseries/metadata. Only has to store a single list with model names every time a model is added/deleted. No need to clear cached oseries dataframe after every model add/delete.
  • Get dictionary of {oseries: [model_names_list]} through pstore.oseries_models property

Downsides:

  • links between oseries and models not stored in oseries metadata DataFrame (but it can be easily obtained from pstore.oseries_models).
  • Added library added some complexity but not all that much.

from pastastore.

dbrakenhoff avatar dbrakenhoff commented on June 29, 2024

Added in #62, closing issue.

from pastastore.

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.