{"id":20106186,"url":"https://github.com/himkt/optuna-examples-allennlp-distributed","last_synced_at":"2026-06-12T14:32:33.772Z","repository":{"id":46090424,"uuid":"384731099","full_name":"himkt/optuna-examples-allennlp-distributed","owner":"himkt","description":null,"archived":false,"fork":false,"pushed_at":"2021-11-26T08:55:56.000Z","size":2806,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-02T17:48:33.956Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/himkt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-10T15:32:54.000Z","updated_at":"2021-11-15T08:35:19.000Z","dependencies_parsed_at":"2022-09-03T06:31:54.112Z","dependency_job_id":null,"html_url":"https://github.com/himkt/optuna-examples-allennlp-distributed","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/himkt/optuna-examples-allennlp-distributed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himkt%2Foptuna-examples-allennlp-distributed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himkt%2Foptuna-examples-allennlp-distributed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himkt%2Foptuna-examples-allennlp-distributed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himkt%2Foptuna-examples-allennlp-distributed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/himkt","download_url":"https://codeload.github.com/himkt/optuna-examples-allennlp-distributed/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himkt%2Foptuna-examples-allennlp-distributed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34249560,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T17:49:18.771Z","updated_at":"2026-06-12T14:32:33.752Z","avatar_url":"https://github.com/himkt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Optuna Examples\n================\n\nThis page contains a list of example codes written with Optuna.\n\n### Simple Black-box Optimization\n\n* [Quadratic function](./quadratic_simple.py)\n\n### Examples with ML Libraries\n\n* [AllenNLP](./allennlp/allennlp_simple.py)\n* [AllenNLP (Jsonnet)](./allennlp/allennlp_jsonnet.py)\n* [Catalyst](./pytorch/catalyst_simple.py)\n* [CatBoost](./catboost/catboost_simple.py)\n* [Chainer](./chainer/chainer_simple.py)\n* [ChainerMN](./chainer/chainermn_simple.py)\n* [Dask-ML](./dask_ml/dask_ml_simple.py)\n* [FastAI V1](./fastai/fastaiv1_simple.py)\n* [FastAI V2](./fastai/fastaiv2_simple.py)\n* [Haiku](./haiku/haiku_simple.py)\n* [Gluon](./mxnet/gluon_simple.py)\n* [Keras](./keras/keras_simple.py)\n* [LightGBM](./lightgbm/lightgbm_simple.py)\n* [LightGBM Tuner](./lightgbm/lightgbm_tuner_simple.py)\n* [MXNet](./mxnet/mxnet_simple.py)\n* [PyTorch](./pytorch/pytorch_simple.py)\n* [PyTorch Ignite](./pytorch/pytorch_ignite_simple.py)\n* [PyTorch Lightning](./pytorch/pytorch_lightning_simple.py)\n* [RAPIDS](./rapids_simple.py)\n* [Scikit-learn](./sklearn/sklearn_simple.py)\n* [Scikit-learn OptunaSearchCV](./sklearn/sklearn_optuna_search_cv_simple.py)\n* [Scikit-image](./skimage/skimage_lbp_simple.py)\n* [SKORCH](./pytorch/skorch_simple.py)\n* [Tensorflow](./tensorflow/tensorflow_estimator_simple.py)\n* [Tensorflow (eager)](./tensorflow/tensorflow_eager_simple.py)\n* [XGBoost](./xgboost/xgboost_simple.py)\n\n\n### An example where an objective function uses additional arguments\n\nThe following example demonstrates how to implement an objective function that uses additional arguments other than `trial`.\n* [Scikit-learn (callable class version)](./sklearn/sklearn_additional_args.py)\n\n### Examples of Pruning\n\nThe following example demonstrates how to implement pruning logic with Optuna.\n\n* [Simple pruning (scikit-learn)](./simple_pruning.py)\n\nIn addition, integration modules are available for the following libraries, providing simpler interfaces to utilize pruning.\n\n* [Pruning with Catalyst integration module](./pytorch/catalyst_simple.py)\n* [Pruning with Chainer integration module](./chainer/chainer_integration.py)\n* [Pruning with ChainerMN integration module](./chainer/chainermn_integration.py)\n* [Pruning with FastAI V1 integration module](./fastai/fastaiv1_simple.py)\n* [Pruning with FastAI V2 integration module](./fastai/fastaiv2_simple.py)\n* [Pruning with Keras integration module](./keras/keras_integration.py)\n* [Pruning with LightGBM integration module](./lightgbm/lightgbm_integration.py)\n* [Pruning with MXNet integration module](./mxnet/mxnet_integration.py)\n* [Pruning with PyTorch integration module](./pytorch/pytorch_simple.py)\n* [Pruning with PyTorch Ignite integration module](./pytorch/pytorch_ignite_simple.py)\n* [Pruning with PyTorch Lightning integration module](./pytorch/pytorch_lightning_simple.py)\n* [Pruning with Tensorflow integration module](./tensorflow/tensorflow_estimator_integration.py)\n* [Pruning with XGBoost integration module](./xgboost/xgboost_integration.py)\n* [Pruning with XGBoost integration module (cross validation, XGBoost.cv)](./xgboost/xgboost_cv_integration.py)\n\n### Examples of Samplers\n\n* [Warm Starting CMA-ES](./samplers/warm_starting_cma.py)\n\n### Examples of User-Defined Sampler\n\n* [SimulatedAnnealingSampler](./samplers/simulated_annealing_sampler.py)\n\n### Examples of Multi-Objective Optimization\n\n* [Optimization with BoTorch](./multi_objective/botorch_simple.py)\n* [Optimization of MLP with PyTorch](./multi_objective/pytorch_simple.py)\n\n### Examples of Visualization\n\n* [Visualizing study](https://colab.research.google.com/github/optuna/optuna-examples/blob/main/visualization/plot_study.ipynb)\n\n### An example to enqueue trials with given parameter values\n\n* [Enqueuing trials with given parameters](./enqueue_trial.py)\n\n### Examples of MLflow\n\n* [Tracking optimization process with MLflow](./mlflow/keras_mlflow.py)\n\n### Examples of Hydra\n\n* [Optimization with Hydra](./hydra/simple.py)\n\n### Examples of Distributed Optimization\n\n* [Optimizing on Kubernetes](./kubernetes/README.md)\n* [Optimizing with Ray's joblib backend](./ray_joblib.py)\n\n### Examples of Reinforcement Learning\n\n* [Optimization of Hyperparameters for Stable-Baslines Agent](./rl/sb3_simple.py)\n\n### External projects using Optuna\n\n* [Allegro Trains](https://github.com/allegroai/trains)\n* [BBO-Rietveld: Automated crystal structure refinement](https://github.com/quantumbeam/BBO-Rietveld)\n* [Catalyst](https://github.com/catalyst-team/catalyst)\n* [CuPy](https://github.com/cupy/cupy)\n* [Hydra's Optuna Sweeper plugin](https://hydra.cc/docs/next/plugins/optuna_sweeper/)\n* [Mozilla Voice STT](https://github.com/mozilla/DeepSpeech)\n* [neptune.ai](https://neptune.ai)\n* [OptGBM: A scikit-learn compatible LightGBM estimator with Optuna](https://github.com/Y-oHr-N/OptGBM)\n* [PyKEEN](https://github.com/pykeen/pykeen)\n* [RL Baselines Zoo](https://github.com/DLR-RM/rl-baselines3-zoo)\n\nPRs to add additional projects welcome!\n\n### Running with Optuna's Docker images?\nYou can use our docker images with the tag ending with `-dev` to run most of the examples.\nFor example, you can run [PyTorch Simple](./pytorch/pytorch_simple.py) via `docker run --rm -v $(pwd):/prj -w /prj optuna/optuna:py3.7-dev python pytorch/pytorch_simple.py`.\nAlso, you can try our visualization example in Jupyter Notebook by opening `localhost:8888` in your browser after executing this:\n\n```bash\ndocker run -p 8888:8888 --rm optuna/optuna:py3.7-dev jupyter notebook --allow-root --no-browser --port 8888 --ip 0.0.0.0 --NotebookApp.token='' --NotebookApp.password=''\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimkt%2Foptuna-examples-allennlp-distributed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhimkt%2Foptuna-examples-allennlp-distributed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimkt%2Foptuna-examples-allennlp-distributed/lists"}