Code Monkey home page Code Monkey logo

Comments (4)

jwmueller avatar jwmueller commented on May 18, 2024 1

I think this object should also support a fit_summary() method which returns something like the current Results object, with more informative/comprehensive instance-variable names as described here:

#32

from autogluon.

jwmueller avatar jwmueller commented on May 18, 2024 1

Also I'd make sure all task.fit() calls automatically call save at the end before returning. We do not want to burden the user with having to explicitly call save.

By the way, load() should be a class method, so the user can call task.load(filepath) without any predictor object.
In contrast, save() should be an instance method, so the user calls predictor.save(filepath).

from autogluon.

jwmueller avatar jwmueller commented on May 18, 2024 1

Just to be clear, we should also try to ensure predictor.predict() is overloaded to be able to handle:

  1. single example (e.g. single image, single document)
  2. batch of many examples
  3. MXNet Dataset object (ie. already preprocessed examples with a defined iterator)

For classification tasks, the sklearn convention is to use: predict_proba underneath the hood to produce predicted class probabilities, and then predict is just a wrapper around this that computes the argmax of the class probabilities.

from autogluon.

zhanghang1989 avatar zhanghang1989 commented on May 18, 2024

Just to be clear, we should also try to ensure predictor.predict() is overloaded to be able to handle:

  1. single example (e.g. single image, single document)
  2. batch of many examples
  3. MXNet Dataset object (ie. already preprocessed examples with a defined iterator)

For classification tasks, the sklearn convention is to use: predict_proba underneath the hood to produce predicted class probabilities, and then predict is just a wrapper around this that computes the argmax of the class probabilities.

This is great suggestion. I will work on it 👍

from autogluon.

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.