Giter Club home page Giter Club logo

verbosemanager's People

Contributors

alexhroom avatar

Stargazers

 avatar

Watchers

 avatar

verbosemanager's Issues

Add a way to count an iterator as finite fixed steps

Add functionality to take an iterator and treat all iterations as a finite number of steps, taking the average time for each iterative step as the total. This reduces the need to calculate a dynamic number of verbose steps for a process.

Like so:

for x in list:
    verbose_manager.iterate("Step 1")
    step_1()
    verbose_manager.iterate("Step 2")
    step_2()

verbose_manager.finish_iterate()

which would print:

Process completed in X seconds.
Timings per step:
Step 1: Average Y over Z iterations
Step 2: Average W over Z iterations

Write documentation

The documentation is currently in the form of a PDF. this should be remade as documentation for github pages.

Create plugin hooks

Formalise a class for verbosemanager plugins, with hooks that can run at the start, end, and each step of a process. Integrate these hooks into the verbosemanager class.

Add CI for testing

CI should be added for testing the package when new commits are pushed.

Add carbon measurement

Add an option where users can see the carbon emissions of their algorithm alongside verbose output.

Preferably, this will be a user option, rather than something developers have to include in their code.

Change decorator to context manager

It may be more useful and elegant to replace the @verbosemanager decorator with a context manager, a la:

with verbosemanager(n_steps = 5, verbose = 3) as verbose_manager:

Add tutorials

Add tutorials which show off the various capabilities and functions of verbosemanager.

Refactor to have Manager ABC

Refactor from using ManagerMixins to a Manager abstract base class. This is necessary to reduce a lot of code duplication.

Add MPI support

Add support for MPI (as currently this would just spawn multiple singleton objects that behave independently)

Fix eraser

Currently, the eraser is adding an unnecessary amount of whitespace. Fix this.

Create plugin reader

Add a reader for plugins. This will originally be a .txt file with the names of plugin packages, but then a future issue will add automatic reading from installed packages.

Fix docs

After changing to Sphinx, the docs aren't building correctly. fix this

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.