Coder Social home page Coder Social logo

Training estimation report about gama HOT 5 CLOSED

openml-labs avatar openml-labs commented on August 17, 2024
Training estimation report

from gama.

Comments (5)

PGijsbers avatar PGijsbers commented on August 17, 2024

Hi!

The output

accuracy: 0.951048951048951
log loss: 0.1111237013184977

from this example is given by the last two lines of the corresponding script:

print("accuracy:", accuracy_score(y_test, label_predictions))
print("log loss:", log_loss(y_test, probability_predictions))

In the example, the reported performance is a test performance, not a training performance, as the test set was held out during training.

Does that answer the question?

from gama.

iXanthos avatar iXanthos commented on August 17, 2024

Hi!

The output

accuracy: 0.951048951048951
log loss: 0.1111237013184977

from this example is given by the last two lines of the corresponding script:

print("accuracy:", accuracy_score(y_test, label_predictions))
print("log loss:", log_loss(y_test, probability_predictions))

In the example, the reported performance is a test performance, not a training performance, as the test set was held out during training.

Does that answer the question?

ah, yes, I am sorry for that, I got confused. I meant the training performance, not the test performance.

Thank you.

from gama.

PGijsbers avatar PGijsbers commented on August 17, 2024

Sorry for the slow replies. To get the training score, just all use score with the training data: automl.score(X_train, y_train). If you want to access the 5-fold cross validation score that was found during the search process, it's a little bit more tricky (making it more easily accessible is in the works), assuming you have the (default) BestFit postprocessing:

max(map(lambda ind: ind.fitness.values, automl._final_pop))

should output a (score, length) tuple, e.g. (-0.0908208740423977, -2), where the first value is the score for the given metric. The score is negated if the metric was a loss, because internally the scorers follow scikit-learns conversion to always ensure "bigger is better".
I hope this answers the question!

from gama.

iXanthos avatar iXanthos commented on August 17, 2024

Ah, I see, great answer. Yes, the cv score is what I was after, as this is the training performance estimation. What is the length in the outputted tuple and how is it negative? Also, I came across an error when using automl.score(), should I post this here or start a new issue?

Thank you for your help

from gama.

PGijsbers avatar PGijsbers commented on August 17, 2024

Please open a new issue with a minimal working example included 👍
Length represents the length of the pipeline in number of steps (not including imputation and categorical encoding). Internally all scores are represented s.t. they can be maximized, which is why metrics that should be minimized (loss, length) are negated.

from gama.

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.