Coder Social home page Coder Social logo

Comments (2)

bocklund avatar bocklund commented on June 15, 2024

I'm thinking about this approach:

  1. pass the input settings (either the whole dict or the top level dicts as above) to an (un)wrapper function that creates objects such as file handles, Database and TinyDB objects
  2. Unwrapper calls the underlying generate_parameters and/or multiphase_mcmc_fit functions with the correct objects

This might be the best of both worlds because users could load their YAML or pass a dict to the unwrapper and get what they want, but also easily call the functions with existing objects naturally. (e.g. generate parameters in the notebook, then pass the resulting database directly to the MCMC function, rather than writing to file and then loading from file)

This is sort of how the main function works in the run_espei module, this would just formalize that a bit. The unwrapper function would be a function in run_espei and main would basically handle only the kwargs (check datasets vs. an input file) and then handle loading that file and pass off to the unwrapper.

from espei.

bocklund avatar bocklund commented on June 15, 2024

Part of this is about having a nice jupyter notebook API

from espei.

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.