Giter VIP home page Giter VIP logo

crave_results's Introduction

Install

sudo apt-get install gcc python3-dev openssl libmariadb3 libmariadb-dev
git clone https://github.com/mariadb-corporation/mariadb-connector-python/
cd mariadb-connector-python
git checkout remotes/origin/1.0
python3 setup.py build
python3 -m pip install .
python3 -m pip install hyperopt

Configuration

Add server IP and address to ~/.bashrc

export CRAVE_RESULTS_HOST=localhost
export CRAVE_RESULTS_PORT=65099

Usage

Add crave results as submodule

git submodule add <repo>

Usage example

from CraveResults import CraveResults, CraveResultsException

db = CraveResults()

# Get dataset file
file_contents = results_db.get_dataset("dataset1/file1.mmap")
with open("dataset1/file1.mmap", "wb") as f:
    f.write(file_contents)

config = dict(
    learning_rate=0.01,
    momentum=0.2,
    architecture="CNN",
    dataset_id="peds-0192",
    infra="AWS",
)

db.init({
    "project": "detect_pedestrians",
    "notes": "tweak baseline",
    "tags": ["baseline", "paper1"],
    "config": config
})

for epoch in epochs:
    db.log(
        {
            "loss": loss,
            "acc": acc,
            "some_text": "Some text %d" % it,
            "augmentation image": db.binary("assets/1.jpeg", "%d.jpg" % it)
        }
    )

db.log_summary({"acc": accuracy})

db.log_artifact({
    "confusion matrix": db.binary("assets/1.jpeg")
})
db.log_artifact({"log": db.binary("test.log")})

Limitations

If float is being recorded in database, column with same name will not be converted to another type e.g. dict.

crave_results's People

Contributors

normundsneimanis avatar

Watchers

 avatar

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.