Giter VIP home page Giter VIP logo

ageml's People

Contributors

msavinash avatar santiviquez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ageml's Issues

Perform hyperparameter tuning when running the TemporalDegradation test

Motivation: describe the problem to be solved
Right now, in each simulation run in the TemporalDegradation test, the model is fitted using the default parameters. It would be nice if each simulation were fitted on some optimal parameters that are defined automatically inside the flow. In this case, the aging experiment would resemble a real-life scenario where only optimal models are analyzed, and we get to study how this hyperparameter becomes invalid at some point. Hence, we see some performance changes.

Describe the solution you'd like
Use something like optuna to automate the hyperparameter search, possibly optuna.integration.OptunaSearchCV.

The user can provide the search space in the TemporalDegradation.run() method, together with how many tries they want to perform.

example:

experiment = TemporalDegradation(
    timestamp_column_name='inference_time',
    target_column_name='demand',
    n_train_samples=52,
    n_test_samples=12,
    n_prod_samples=24,
    n_simulations=10)

random_forest_params = {
    'n_estimators': optuna.distributions.IntDistribution(100, 400, 1),
    'max_depth': optuna.distributions.IntDistribution(1, 13),
    'min_samples_split': optuna.distributions.IntDistribution(2, 10)}

experiment.run(
    data, 
    model=RandomForestRegressor(),
    hyperparameter_distributions=random_forest_params,
    n_hyperparameter_tunning_trials=10)

Additional context
I tried something like this in an old commit; it might work as inspiration, but the code there is very hard code, so take it with a grain of salt.

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.