Giter Club home page Giter Club logo

Comments (3)

marcj avatar marcj commented on July 4, 2024

@stocyr What do you mean with log_scalar? We don't have such a method. Can you please provide the source lines? Could you please also provide screenshots (of the experiment overview list vs experiment detail view)?

from deepkit-ml.

stocyr avatar stocyr commented on July 4, 2024

I updated the post above. Here's the snipped of the code:

import deepkit

def train(args, model, device, train_loader, optimizer, epoch):
    # ...
    for batch_idx, (data, target) in enumerate(train_loader):
        data, target = data.to(device), target.to(device)
        optimizer.zero_grad()
        output = model(data)
        loss = F.nll_loss(output, target)
        loss.backward()
        optimizer.step()

        _, predicted = output.max(1)
        total += target.size(0)
        correct += predicted.eq(target).sum().item()

        args.experiment.log_metric('loss/train', loss.item(), x=epoch + (batch_idx / len(train_loader)))

def main():
    # ...
    args = parser.parse_args()
    experiment = deepkit.experiment()
    args.experiment = experiment
    # ...
    for epoch in range(1, args.epochs + 1):
        args.experiment.epoch(epoch, args.epochs)
        train(args, model, device, train_loader, optimizer, epoch)

if __name__ == '__main__':
    main()

The effect can be seen here on the running experiment (top most)
2020-04-24 19_52_14-Deepkit

2020-04-24 19_50_54-Deepkit

2020-04-24 19_52_25-Deepkit

And here's what happens if I pull the "smoothing" slider a little:
2020-04-24 19_52_36-Deepkit

update
I recently noticed that the plots show up when the Deepkit App is connected to a remote-hosted Team Server (eg. a non-localhost account). So the bug only appears to happen on the localhost connected app.

from deepkit-ml.

marcj avatar marcj commented on July 4, 2024

That's interesting. Seems to be a windows issue. Can you open the devtools to see if there are any errors? STRG+SHIFT+I, then "console" tab.

from deepkit-ml.

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.