{
  "id": "task_libraries:hyperparameter-optimization/python",
  "path": "/exapedia/python-hyperparameter-optimization-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "Python hyperparameter optimization libraries",
  "answer": [
    {
      "t": "text",
      "text": "Python hyperparameter optimization libraries search for the training settings, such as learning rate and tree depth, that give a model its best validation score. A searcher proposes each new trial from the results of earlier trials rather than testing every combination. These libraries let machine learning teams tune models in fewer training runs."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "Python hyperparameter optimization libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#scikit-learn",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F126"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F127"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F128"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#ray-tune",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F147"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#optuna",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F166"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#hyperopt",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F184"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#bayesian-optimization",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F203"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#scikit-optimize",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F223"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#nevergrad",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F242"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F244"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#flaml",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F263"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F264"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F272"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F267"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F265"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "PyPI"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#scikit-learn",
          "label": [
            {
              "t": "text",
              "text": "scikit-learn"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F127"
        },
        {
          "t": "text",
          "text": ", a count that covers all its machine learning work."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Multiple optimization objectives",
            "Resource-adaptive trial scheduling"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#scikit-learn",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F126"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#ray-tune",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F147"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#optuna",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F166"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#hyperopt",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F184"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#bayesian-optimization",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F203"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#scikit-optimize",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F223"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#nevergrad",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F242"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#flaml",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F263"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F273"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F274"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "scikit-learn",
          "name": [
            {
              "t": "fact",
              "fact": "F126"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/scikit-learn/scikit-learn"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/scikit-learn"
            },
            {
              "label": "Docs",
              "href": "https://scikit-learn.org/stable/modules/grid_search.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F133"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F127"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F129"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F128"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://scikit-learn.org/stable/modules/grid_search.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F126"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/Trusted-AI/AIF360",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F145"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def __init__(self, prot_attr=None, *, scoring, step=0.05, refit=True, **kwargs):\n    \"\"\"\n    Args:\n        prot_attr (single label or list-like, optional): Protected\n            attribute(s) to use in the post-processing. If more than one\n            attribute, all combinations of values (intersections) are\n            considered. Default is ``None`` meaning all protected attributes\n            from the dataset are used. Note: This algorithm requires there\n            be exactly 2 groups (privileged and unprivileged).\n        scoring ('statistical_parity', 'average_odds', 'equal_opportunity',\n            'disparate_impact', or callable/dict): Fairness scorer to use to\n            evaluate the predictions. If type is a `str`, constructs the\n            corresponding scorer for that metric in addition to the default\n            balanced accuracy. If type is callable (i.e., a scorer object),\n            that will be used along with balanced accuracy. Finally, if an\n            explicit dictionary is passed, this will be used as is.\n        step (float): Step size for grid search. Will search every valid\n            combination of threshold and margin that are multiples of this\n            step size. See `param_grid` after fitting for the exact search\n            space.\n        refit (bool or callable, optional): Refit the estimator using the\n            best parameters found. If `True` and not using a custom scoring\n            function, this chooses the highest balanced accuracy given\n            fairness score > -0.1 (or > 0.8 for disparate impact only).\n            Alternatively, a custom refitting function may be passed. See\n            :class:`~sklearn.model_selection.GridSearchCV` for details.\n        **kwargs: See :class:`~sklearn.model_selection.GridSearchCV` for\n            additional kwargs.\n    \"\"\"\n    self.scoring = scoring\n    self.refit = refit\n    self.step = step\n    self.prot_attr = prot_attr\n    super().__init__(RejectOptionClassifier(), {}, scoring=scoring,\n                     refit=refit, **kwargs)\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/Trusted-AI/AIF360/blob/34877916b789e569edf5c0aac033403ca90f34b3/aif360/sklearn/postprocessing/reject_option_classification.py#L251-L285",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F144"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=scikit-learn%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F126"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from sklearn.datasets import load_iris\nfrom sklearn.model_selection import GridSearchCV\nfrom sklearn.svm import SVC\n\nX, y = load_iris(return_X_y=True)\nsearch = GridSearchCV(SVC(), {\"C\": [0.1, 1.0, 10.0]}, cv=3).fit(X, y)\nprint(search.best_params_)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.GridSearchCV.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "sklearn.model_selection.GridSearchCV.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F131"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "ray-tune",
          "name": [
            {
              "t": "fact",
              "fact": "F147"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/ray-project/ray"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/ray"
            },
            {
              "label": "Docs",
              "href": "https://docs.ray.io/en/latest/tune/index.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F12"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://docs.ray.io/en/latest/tune/index.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F147"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/ultralytics/ultralytics",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F164"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _tune(config):\n    \"\"\"Train the YOLO model with the specified hyperparameters and return results.\"\"\"\n    model_to_train = ray.get(model_in_store)  # get the model from ray store for tuning\n    model_to_train.trainer = None\n    model_to_train.reset_callbacks()\n    config = _sanitize_tune_value(dict(config))\n    config.update(train_args)\n\n    # Set trial-specific name for W&B logging\n    try:\n        trial_id = tune.get_context().get_trial_id()\n        trial_suffix = trial_id.split(\"_\")[-1] if \"_\" in trial_id else trial_id\n        config[\"name\"] = f\"{base_name}_{trial_suffix}\"\n    except Exception:\n        # Not in Ray Tune context or error getting trial ID, use base name\n        config[\"name\"] = base_name\n\n    results = model_to_train.train(**config)\n    if isinstance(config.get(\"data\"), (list, tuple)):\n        metric = TASK2METRIC[task]\n        return {\n            metric: sum((metrics or {}).get(metric, 0.0) for metrics in results.values()) / len(results),\n            \"epoch\": config.get(\"epochs\") or DEFAULT_CFG_DICT[\"epochs\"],\n        }\n    return results.results_dict\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/ultralytics/ultralytics/blob/95d2e2a72ff002e81228ea1074d59fb69baa175d/ultralytics/utils/tuner.py#L432-L456",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F163"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20ray%20for%20hyperparameter%20searches%20and%20trial%20evaluation&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F147"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from ray import tune\n\ndef objective(config):\n    return {\"loss\": (config[\"x\"] - 2) ** 2}\n\ntuner = tune.Tuner(objective, param_space={\"x\": tune.grid_search([0, 1, 2])})\nresults = tuner.fit()\nprint(results.get_best_result(metric=\"loss\", mode=\"min\").config)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.ray.io/en/latest/tune/index.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F152"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "optuna",
          "name": [
            {
              "t": "fact",
              "fact": "F166"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/optuna/optuna"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/optuna"
            },
            {
              "label": "Docs",
              "href": "https://optuna.readthedocs.io/en/stable/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F38"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://optuna.readthedocs.io/en/stable/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F166"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/optuna/optuna-examples",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F182"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def objective(trial):\n    iris = sklearn.datasets.load_iris()\n    x, y = iris.data, iris.target\n\n    classifier_name = trial.suggest_categorical(\"classifier\", [\"SVC\", \"RandomForest\"])\n    if classifier_name == \"SVC\":\n        svc_c = trial.suggest_float(\"svc_c\", 1e-10, 1e10, log=True)\n        classifier_obj = sklearn.svm.SVC(C=svc_c, gamma=\"auto\")\n    else:\n        rf_max_depth = trial.suggest_int(\"rf_max_depth\", 2, 32, log=True)\n        classifier_obj = sklearn.ensemble.RandomForestClassifier(\n            max_depth=rf_max_depth, n_estimators=10\n        )\n\n    score = sklearn.model_selection.cross_val_score(classifier_obj, x, y, n_jobs=-1, cv=3)\n    accuracy = score.mean()\n    return accuracy",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/optuna/optuna-examples/blob/9450de9b8b042e396bb816fdbe7fb4b5227b3323/sklearn/sklearn_simple.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F181"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20optuna%20for%20hyperparameter%20searches%20and%20trial%20evaluation&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F166"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import optuna\n\ndef objective(trial):\n    return (trial.suggest_float(\"x\", -10, 10) - 2) ** 2\n\nstudy = optuna.create_study(direction=\"minimize\")\nstudy.optimize(objective, n_trials=10)\nprint(study.best_params)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://optuna.readthedocs.io/en/stable/",
                  "label": [
                    {
                      "t": "text",
                      "text": "stable.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F171"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "hyperopt",
          "name": [
            {
              "t": "fact",
              "fact": "F184"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/hyperopt/hyperopt"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/hyperopt"
            },
            {
              "label": "Docs",
              "href": "https://hyperopt.github.io/hyperopt/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F60"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://hyperopt.github.io/hyperopt/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F184"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F61"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F62"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F63"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F64"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/mlflow/mlflow",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F201"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "@click.command(\n    help=\"Perform hyperparameter search with Hyperopt library. Optimize dl_train target.\"\n)\n@click.option(\"--max-runs\", type=click.INT, default=10, help=\"Maximum number of runs to evaluate.\")\n@click.option(\"--epochs\", type=click.INT, default=500, help=\"Number of epochs\")\n@click.option(\"--metric\", type=click.STRING, default=\"rmse\", help=\"Metric to optimize on.\")\n@click.option(\"--algo\", type=click.STRING, default=\"tpe.suggest\", help=\"Optimizer algorithm.\")\n@click.option(\"--seed\", type=click.INT, default=97531, help=\"Seed for the random generator\")\n@click.argument(\"training_data\")\ndef train(training_data, max_runs, epochs, metric, algo, seed):\n    \"\"\"\n    Run hyperparameter optimization.\n    \"\"\"\n    # create random file to store run ids of the training tasks\n    tracking_client = MlflowClient()\n\n    def new_eval(\n        nepochs, experiment_id, null_train_loss, null_valid_loss, null_test_loss, return_all=False\n    ):\n        \"\"\"\n        Create a new eval function\n\n        Args:\n            nepochs: Number of epochs to train the model.\n            experiment_id: Experiment id for the training run.\n            null_train_loss: Loss of a null model on the training dataset.\n            null_valid_loss: Loss of a null model on the validation dataset.\n            null_test_loss Loss of a null model on the test dataset.\n            return_all: If True, return train, validation, and test loss.\n                Otherwise, return only the validation loss.\n                Default is False.\n\n        Returns:\n            An evaluation function that trains the model and logs metrics to MLflow.\n        \"\"\"\n\n        def eval(params):\n            \"\"\"\n            Train Keras model with given parameters by invoking MLflow run.\n\n            Notice we store runUuid and resulting metric in a file. We will later use these to pick\n            the best run and to log the runUuids of the child runs as an artifact. This is a\n            temporary workaround until MLflow offers better mechanism of linking runs together.\n\n            Args:\n                params: Parameters to the train_keras script we optimize over:\n                    learning_rate, drop_out_1\n\n            Returns:\n                The metric value evaluated on the validation data.\n            \"\"\"\n            import mlflow.tracking\n\n            lr, momentum = params\n            with mlflow.start_run(nested=True) as child_run:\n                p = mlflow.projects.run(\n                    uri=\".\",\n                    entry_point=\"train\",\n                    run_id=child_run.info.run_id,\n                    parameters={\n                        \"training_data\": training_data,\n                        \"epochs\": str(nepochs),\n                        \"learning_rate\": str(lr),\n                        \"momentum\": str(momentum),\n                        \"seed\": seed,\n                    },\n                    experiment_id=experiment_id,\n                    synchronous=False,  # Allow the run to fail if a model is not properly created\n                )\n                succeeded = p.wait()\n                mlflow.log_params({\"lr\": lr, \"momentum\": momentum})\n\n            if succeeded:\n                training_run = tracking_client.get_run(p.run_id)\n                metrics = training_run.data.metrics\n                # cap the loss at the loss of the null model\n                train_loss = min(null_train_loss, metrics[f\"train_{metric}\"])\n                valid_loss = min(null_valid_loss, metrics[f\"val_{metric}\"])\n                test_loss = min(null_test_loss, metrics[f\"test_{metric}\"])\n            else:\n                # run failed => return null loss\n                tracking_client.set_terminated(p.run_id, \"FAILED\")\n                train_loss = null_train_loss\n                valid_loss = null_valid_loss\n                test_loss = null_test_loss\n\n            mlflow.log_metrics({\n                f\"train_{metric}\": train_loss,\n                f\"val_{metric}\": valid_loss,\n                f\"test_{metric}\": test_loss,\n            })\n\n            if return_all:\n                return train_loss, valid_loss, test_loss\n            else:\n                return valid_loss\n\n        return eval\n\n    space = [\n        hp.uniform(\"lr\", 1e-5, 1e-1),\n        hp.uniform(\"momentum\", 0.0, 1.0),\n    ]\n\n    with mlflow.start_run() as run:\n        experiment_id = run.info.experiment_id\n        # Evaluate null model first.\n        train_null_loss, valid_null_loss, test_null_loss = new_eval(\n            0, experiment_id, _inf, _inf, _inf, True\n        )(params=[0, 0])\n        best = fmin(\n            fn=new_eval(epochs, experiment_id, train_null_loss, valid_null_loss, test_null_loss),\n            space=space,\n            algo=tpe.suggest if algo == \"tpe.suggest\" else rand.suggest,\n            max_evals=max_runs,\n        )\n        mlflow.set_tag(\"best params\", str(best))\n        # find the best run, log its metrics as the final metrics of this run.\n        client = MlflowClient()\n        runs = client.search_runs(\n            [experiment_id], f\"tags.mlflow.parentRunId = '{run.info.run_id}' \"\n        )\n        best_val_train = _inf\n        best_val_valid = _inf\n        best_val_test = _inf\n        best_run = None\n        for r in runs:\n            if r.data.metrics[\"val_rmse\"] < best_val_valid:\n                best_run = r\n                best_val_train = r.data.metrics[\"train_rmse\"]\n                best_val_valid = r.data.metrics[\"val_rmse\"]\n                best_val_test = r.data.metrics[\"test_rmse\"]\n        mlflow.set_tag(\"best_run\", best_run.info.run_id)\n        mlflow.log_metrics({\n            f\"train_{metric}\": best_val_train,\n            f\"val_{metric}\": best_val_valid,\n            f\"test_{metric}\": best_val_test,\n        })\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/mlflow/mlflow/blob/db0a3f686c4823d96b373e9fb0846dadd2ab46ff/examples/hyperparam/search_hyperopt.py#L24-L161",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F200"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20hyperopt%20for%20hyperparameter%20searches%20and%20trial%20evaluation&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F184"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from hyperopt import fmin, hp, tpe\n\nbest = fmin(lambda x: x ** 2, hp.uniform(\"x\", -1, 1), algo=tpe.suggest, max_evals=10)\nprint(best)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://hyperopt.github.io/hyperopt/getting-started/minimizing_functions/",
                  "label": [
                    {
                      "t": "text",
                      "text": "minimizing_functions.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F189"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "bayesian-optimization",
          "name": [
            {
              "t": "fact",
              "fact": "F203"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/bayesian-optimization/BayesianOptimization"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/bayesian-optimization"
            },
            {
              "label": "Docs",
              "href": "https://bayesian-optimization.github.io/BayesianOptimization/master/basic-tour.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F210"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://bayesian-optimization.github.io/BayesianOptimization/master/basic-tour.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F203"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F221"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/optimagic-dev/optimagic",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F221"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _solve_internal_problem(\n    self, problem: InternalOptimizationProblem, x0: NDArray[np.float64]\n) -> InternalOptimizeResult:\n    if not IS_BAYESOPT_INSTALLED_AND_VERSION_NEWER_THAN_2:\n        raise NotInstalledError(\n            \"To use the 'bayes_opt' optimizer you need to install bayes_opt. \"\n            \"Use 'pip install bayesian-optimization'. \"\n            \"Check the documentation for more details: \"\n            \"https://bayesian-optimization.github.io/BayesianOptimization/index.html\"\n        )\n\n    from bayes_opt import BayesianOptimization\n\n    pbounds = _process_bounds(problem.bounds)\n\n    acq = _process_acquisition_function(\n        acquisition_function=self.acquisition_function,\n        kappa=self.kappa,\n        xi=self.xi,\n        exploration_decay=self.exploration_decay,\n        exploration_decay_delay=self.exploration_decay_delay,\n        random_seed=self.seed,\n    )\n\n    constraint = None\n    constraint = self._process_constraints(problem.nonlinear_constraints)\n\n    def objective(**kwargs: dict[str, float]) -> float:\n        x = _extract_params_from_kwargs(kwargs)\n        return -float(\n            problem.fun(x)\n        )  # Negate to convert minimization to maximization\n\n    bounds_transformer = None\n    if self.enable_sdr:\n        from bayes_opt import SequentialDomainReductionTransformer\n\n        bounds_transformer = SequentialDomainReductionTransformer(\n            gamma_osc=self.sdr_gamma_osc,\n            gamma_pan=self.sdr_gamma_pan,\n            eta=self.sdr_eta,\n            minimum_window=self.sdr_minimum_window,\n        )\n\n    optimizer = BayesianOptimization(\n        f=objective,\n        pbounds=pbounds,\n        acquisition_function=acq,\n        constraint=constraint,\n        random_state=self.seed,\n        verbose=self.verbose,\n        bounds_transformer=bounds_transformer,\n        allow_duplicate_points=self.allow_duplicate_points,\n    )\n\n    # Set Gaussian Process parameters\n    optimizer.set_gp_params(alpha=self.alpha, n_restarts_optimizer=self.n_restarts)\n\n    # Use initial point as first probe\n    probe_params = {f\"param{i}\": float(val) for i, val in enumerate(x0)}\n    optimizer.probe(\n        params=probe_params,\n        lazy=True,\n    )\n    optimizer.maximize(\n        init_points=self.init_points,\n        n_iter=self.stopping_maxiter,\n    )\n\n    res = _process_bayes_opt_result(optimizer=optimizer, x0=x0, problem=problem)\n    return res",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/optimagic-dev/optimagic/blob/103029363cfce45bc54129e8aca70e5e3147c66a/src/optimagic/optimizers/bayesian_optimizer.py#L211-L281",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F220"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=bayesian-optimization%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F203"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from bayes_opt import BayesianOptimization\n\noptimizer = BayesianOptimization(f=lambda x: -(x - 2) ** 2, pbounds={\"x\": (-5, 5)}, random_state=1)\noptimizer.maximize(init_points=2, n_iter=3)\nprint(optimizer.max)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://bayesian-optimization.github.io/BayesianOptimization/master/basic-tour.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "basic-tour.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F208"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "scikit-optimize",
          "name": [
            {
              "t": "fact",
              "fact": "F223"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/holgern/scikit-optimize"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/scikit-optimize"
            },
            {
              "label": "Docs",
              "href": "https://scikit-optimize.readthedocs.io/en/latest/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F81"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://scikit-optimize.readthedocs.io/en/latest/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F223"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F82"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F83"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F84"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F85"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F86"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F87"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F88"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F89"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/SpikeInterface/spikeinterface",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F240"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _train_and_evaluate(\n    self, imputation_strategy, scaler, classifier, X_train, X_test, y_train, y_test, model_id, search_kwargs\n):\n    from sklearn.metrics import balanced_accuracy_score, precision_score, recall_score\n\n    search_kwargs = set_default_search_kwargs(search_kwargs)\n\n    X_train_scaled, X_test_scaled, y_train, y_test, imputer, scaler = self.apply_scaling_imputation(\n        imputation_strategy, scaler, X_train, X_test, y_train, y_test\n    )\n    if self.verbose is True:\n        print(f\"Running {classifier.__class__.__name__} with imputation {imputation_strategy} and scaling {scaler}\")\n    model, param_space = self.get_classifier_search_space(classifier.__class__.__name__)\n\n    try:\n        from skopt import BayesSearchCV\n\n        model = BayesSearchCV(\n            model,\n            param_space,\n            random_state=self.seed,\n            **search_kwargs,\n        )\n    except Exception:\n        if self.verbose is True:\n            print(\"BayesSearchCV from scikit-optimize not available, using RandomizedSearchCV\")\n        from sklearn.model_selection import RandomizedSearchCV\n\n        model = RandomizedSearchCV(model, param_space, **search_kwargs)\n\n    model.fit(X_train_scaled, y_train)\n    y_pred = model.predict(X_test_scaled)\n    balanced_acc = balanced_accuracy_score(y_test, y_pred)\n    precision = precision_score(y_test, y_pred, average=\"macro\")\n    recall = recall_score(y_test, y_pred, average=\"macro\")\n    return {\n        \"classifier name\": classifier.__class__.__name__,\n        \"imputation_strategy\": imputation_strategy,\n        \"scaling_strategy\": scaler,\n        \"balanced_accuracy\": balanced_acc,\n        \"precision\": precision,\n        \"recall\": recall,\n        \"model_id\": model_id,\n        \"best_params\": model.best_params_,\n    }, (model, imputer, scaler)\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/SpikeInterface/spikeinterface/blob/1d7bacaa2a934ed4547f906e637887f3f609f9b1/src/spikeinterface/curation/train_manual_curation.py#L606-L650",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F239"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20scikit-optimize%20for%20hyperparameter%20searches%20and%20trial%20evaluation&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F223"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from skopt import gp_minimize\n\nresult = gp_minimize(lambda x: x[0] ** 2, [(-1.0, 1.0)], n_calls=10, random_state=0)\nprint(result.x, result.fun)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://scikit-optimize.readthedocs.io/en/latest/modules/generated/skopt.gp_minimize.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.rst"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F228"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "nevergrad",
          "name": [
            {
              "t": "fact",
              "fact": "F242"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/facebookresearch/nevergrad"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/nevergrad"
            },
            {
              "label": "Docs",
              "href": "https://facebookresearch.github.io/nevergrad/optimization.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F249"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F244"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://facebookresearch.github.io/nevergrad/optimization.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F242"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/ray-project/ray",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F261"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def suggest(self, trial_id: str) -> Optional[Dict]:\n    if not self._nevergrad_opt:\n        raise RuntimeError(\n            UNDEFINED_SEARCH_SPACE.format(\n                cls=self.__class__.__name__, space=\"space\"\n            )\n        )\n    if not self._metric or not self._mode:\n        raise RuntimeError(\n            UNDEFINED_METRIC_MODE.format(\n                cls=self.__class__.__name__, metric=self._metric, mode=self._mode\n            )\n        )\n\n    suggested_config = self._nevergrad_opt.ask()\n\n    self._live_trial_mapping[trial_id] = suggested_config\n    # in v0.2.0+, output of ask() is a Candidate,\n    # with fields args and kwargs\n    if not suggested_config.kwargs:\n        if self._parameters:\n            return unflatten_dict(\n                dict(zip(self._parameters, suggested_config.args[0]))\n            )\n        return unflatten_dict(suggested_config.value)\n    else:\n        return unflatten_dict(suggested_config.kwargs)\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/ray-project/ray/blob/3cba3775f01657bee9f95e46f1925b88d5806621/python/ray/tune/search/nevergrad/nevergrad_search.py#L264-L290",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F260"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=nevergrad%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F242"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import nevergrad as ng\n\noptimizer = ng.optimizers.NGOpt(parametrization=ng.p.Scalar(lower=-5, upper=5), budget=10)\nrecommendation = optimizer.minimize(lambda x: (x - 2) ** 2)\nprint(recommendation.value)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://facebookresearch.github.io/nevergrad/optimization.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "optimization.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F247"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "flaml",
          "name": [
            {
              "t": "fact",
              "fact": "F263"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/microsoft/FLAML"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/flaml"
            },
            {
              "label": "Docs",
              "href": "https://microsoft.github.io/FLAML/docs/Use-Cases/Tune-User-Defined-Function/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F270"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F264"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F272"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F266"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F265"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://microsoft.github.io/FLAML/docs/Use-Cases/Tune-User-Defined-Function/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F263"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F282"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F283"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/openml/automlbenchmark",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F282"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def run(dataset, config):\n    log.info(f\"\\n**** FLAML [v{__version__}] ****\\n\")\n\n    X_train, y_train = dataset.train.X, dataset.train.y.squeeze()\n\n    is_classification = config.type == \"classification\"\n    time_budget = config.max_runtime_seconds\n    n_jobs = config.framework_params.get(\"_n_jobs\", config.cores)\n    log.info(\"Running FLAML with {} number of cores\".format(config.cores))\n    aml = AutoML()\n\n    # Mapping of benchmark metrics to flaml metrics\n    metrics_mapping = dict(\n        acc=\"accuracy\",\n        auc=\"roc_auc\",\n        f1=\"f1\",\n        logloss=\"log_loss\",\n        mae=\"mae\",\n        mse=\"mse\",\n        rmse=\"rmse\",\n        r2=\"r2\",\n    )\n    perf_metric = (\n        metrics_mapping[config.metric] if config.metric in metrics_mapping else \"auto\"\n    )\n    if perf_metric is None:\n        log.warning(\"Performance metric %s not supported.\", config.metric)\n\n    training_params = {\n        k: v for k, v in config.framework_params.items() if not k.startswith(\"_\")\n    }\n\n    log_dir = output_subdir(\"logs\", config)\n    flaml_log_file_name = os.path.join(log_dir, \"flaml.log\")\n    with Timer() as training:\n        aml.fit(\n            X_train,\n            y_train,\n            metric=perf_metric,\n            task=config.type,\n            n_jobs=n_jobs,\n            log_file_name=flaml_log_file_name,\n            time_budget=time_budget,\n            **training_params,\n        )\n    log.info(f\"Finished fit in {training.duration}s.\")\n\n    def infer(data: Union[str, pd.DataFrame]):\n        data = pd.read_parquet(data) if isinstance(data, str) else data\n        predict_fn = aml.predict_proba if is_classification else aml.predict\n        return predict_fn(data)\n\n    inference_times = {}\n    if config.measure_inference_time:\n        inference_times[\"file\"] = measure_inference_times(\n            infer, dataset.inference_subsample_files\n        )\n        inference_times[\"df\"] = measure_inference_times(\n            infer,\n            [(1, dataset.test.X.sample(1, random_state=i)) for i in range(100)],\n        )\n        log.info(\"Finished inference time measurements.\")\n\n    with Timer() as predict:\n        X_test, y_test = dataset.test.X, dataset.test.y.squeeze()\n        predictions = aml.predict(X_test)\n    probabilities = aml.predict_proba(X_test) if is_classification else None\n    labels = None\n    if is_classification:\n        labels = (\n            aml.classes_ if isinstance(aml.classes_, list) else aml.classes_.tolist()\n        )\n    log.info(f\"Finished predict in {predict.duration}s.\")\n\n    return result(\n        output_file=config.output_predictions_file,\n        probabilities=probabilities,\n        predictions=predictions,\n        truth=y_test,\n        models_count=len(aml.config_history),\n        training_duration=training.duration,\n        predict_duration=predict.duration,\n        probabilities_labels=labels,\n        inference_times=inference_times,\n    )\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/openml/automlbenchmark/blob/dfe8d21871e2dec2b7cab6c9fbfe3575ce4dadc6/frameworks/flaml/exec.py#L19-L103",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F281"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=flaml%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F263"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from flaml import tune\n\nanalysis = tune.run(\n    lambda config: {\"loss\": config[\"x\"] ** 2},\n    config={\"x\": tune.uniform(-1, 1)}, metric=\"loss\", mode=\"min\",\n    num_samples=10, use_ray=False,\n)\nprint(analysis.best_config)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://microsoft.github.io/FLAML/docs/Use-Cases/Tune-User-Defined-Function/",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F268"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which Python hyperparameter optimization library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#optuna",
          "label": [
            {
              "t": "text",
              "text": "Optuna"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits most tuning, with search spaces defined in Python, samplers, and pruning. "
        },
        {
          "t": "link",
          "href": "#ray-tune",
          "label": [
            {
              "t": "text",
              "text": "Ray Tune"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits distributed trials across a cluster. "
        },
        {
          "t": "link",
          "href": "#scikit-learn",
          "label": [
            {
              "t": "text",
              "text": "scikit-learn"
            }
          ]
        },
        {
          "t": "text",
          "text": " search classes suit grid and random search around its own estimators."
        }
      ]
    },
    {
      "q": "What is GridSearchCV?",
      "a": [
        {
          "t": "text",
          "text": "GridSearchCV is the "
        },
        {
          "t": "link",
          "href": "#scikit-learn",
          "label": [
            {
              "t": "text",
              "text": "scikit-learn"
            }
          ]
        },
        {
          "t": "text",
          "text": " class that tries every combination of listed parameter values with cross-validation. RandomizedSearchCV samples combinations instead of trying them all."
        }
      ]
    },
    {
      "q": "What is Optuna?",
      "a": [
        {
          "t": "link",
          "href": "#optuna",
          "label": [
            {
              "t": "text",
              "text": "Optuna"
            }
          ]
        },
        {
          "t": "text",
          "text": " automates hyperparameter search with define-by-run objectives, conditional parameters, samplers, and pruning of weak trials."
        }
      ]
    },
    {
      "q": "Optuna vs Hyperopt: which should I use?",
      "a": [
        {
          "t": "link",
          "href": "#optuna",
          "label": [
            {
              "t": "text",
              "text": "Optuna"
            }
          ]
        },
        {
          "t": "text",
          "text": " defines the search space inside the objective function and prunes weak trials as they run. "
        },
        {
          "t": "link",
          "href": "#hyperopt",
          "label": [
            {
              "t": "text",
              "text": "Hyperopt"
            }
          ]
        },
        {
          "t": "text",
          "text": " declares a stochastic search space up front and optimizes a single loss with TPE or random search."
        }
      ]
    },
    {
      "q": "How do I do Bayesian optimization in Python?",
      "a": [
        {
          "t": "link",
          "href": "#bayesian-optimization",
          "label": [
            {
              "t": "text",
              "text": "BayesianOptimization"
            }
          ]
        },
        {
          "t": "text",
          "text": " maximizes a function with a Gaussian process over declared parameter bounds. "
        },
        {
          "t": "link",
          "href": "#scikit-optimize",
          "label": [
            {
              "t": "text",
              "text": "scikit-optimize"
            }
          ]
        },
        {
          "t": "text",
          "text": " minimizes a function the same way and adds BayesSearchCV for scikit-learn estimators."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, ray",
      "display": "Ray Tune",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, ray",
      "display": "14.9M",
      "asOf": "2026-11-16"
    },
    "F3": {
      "label": "License, ray",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, ray",
      "display": "2.60.0, Nov 2026",
      "asOf": "2026-11-04"
    },
    "F5": {
      "label": "Package release date, ray",
      "display": "Nov 2026",
      "asOf": "2026-11-04"
    },
    "F6": {
      "label": "Repository stars, ray",
      "display": "44.3K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Conditional spaces, ray",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Trial pruning, ray",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Multi-objective, ray",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Parallel trials, ray",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, ray",
      "display": "pip install \"ray[tune]\"",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, ray",
      "display": "Runs experiments and hyperparameter-tuning trials with configurable searchers and schedulers.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, ray",
      "display": "Schedules trials across machines",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, ray",
      "display": "Run a hyperparameter sweep over a multi-node Ray cluster.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, ray",
      "display": "Stops underperforming trials early",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, ray",
      "display": "Choose a trial scheduler that uses the reported training metric.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, ray",
      "display": "Searchers restrict search-space expressions",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, ray",
      "display": "Check the selected searcher’s support for lambdas and grid search.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations lead, ray",
      "display": "Large search-space values add overhead",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations, ray",
      "display": "Pass large objects through with_parameters instead of the search space.",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Quickstart, ray",
      "display": "from ray import tune\n\ndef objective(config):  # ①\n    score = config[\"a\"] ** 2 + config[\"b\"]\n    return {\"score\": score}\n\nsearch_space = {  # ②\n    \"a\": tune.grid_search([0.001, 0.01, 0.1, 1.0]),\n    \"b\": tune.choice([1, 2, 3]),\n}\n\ntuner = tune.Tuner(objective, param_space=search_space)  # ③\n\nresults = tuner.fit()\nprint(results.get_best_result(metric=\"score\", mode=\"min\").config)\n\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function, ray",
      "display": "def run_ray_tune(\n    model,\n    space: dict | None = None,\n    grace_period: int = 10,\n    gpu_per_trial: int | None = None,\n    iterations: int = 300,\n    search_alg=\"optuna\",\n    **train_args,\n):\n    # ...\n    LOGGER.info(\"💡 Learn about RayTune at https://docs.ultralytics.com/integrations/ray-tune\")\n    try:\n        checks.check_requirements([\"ray>=2.41.0\", \"ray[tune]\"], constrain=[\"pydantic>=2.0,<2.12\"])\n\n        import ray\n        from ray import tune\n        from ray.tune import RunConfig\n        from ray.tune.schedulers import ASHAScheduler, HyperBandForBOHB\n    except ImportError:\n        raise ModuleNotFoundError('Ray Tune required but not found. To install run: pip install \"ray[tune]\"')\n\n    default_space = {\n        # 'optimizer': tune.choice(['SGD', 'Adam', 'AdamW', 'NAdam', 'RAdam', 'RMSProp']),\n        \"lr0\": tune.uniform(1e-5, 1e-2),  # initial learning rate (i.e. SGD=1E-2, Adam=1E-3)\n        \"lrf\": tune.uniform(0.01, 1.0),  # final learning rate fraction (lr0 * lrf)\n        \"momentum\": tune.uniform(0.7, 0.98),  # SGD momentum/Adam beta1\n        \"weight_decay\": tune.uniform(0.0, 0.001),  # optimizer weight decay\n        \"warmup_epochs\": tune.uniform(0.0, 5.0),  # warmup epochs (fractions ok)\n        \"warmup_momentum\": tune.uniform(0.0, 0.95),  # warmup initial momentum\n        \"box\": tune.uniform(1.0, 20.0),  # box loss gain\n        \"cls\": tune.uniform(0.1, 4.0),  # cls loss gain (scale with pixels)\n        \"cls_pw\": tune.uniform(0.0, 1.0),  # class weights power for class imbalance (0.0=disable)\n        \"dfl\": tune.uniform(0.4, 12.0),  # dfl loss gain\n        \"hsv_h\": tune.uniform(0.0, 0.1),  # image HSV-Hue augmentation (fraction)\n        \"hsv_s\": tune.uniform(0.0, 0.9),  # image HSV-Saturation augmentation (fraction)\n        \"hsv_v\": tune.uniform(0.0, 0.9),  # image HSV-Value augmentation (fraction)\n        \"degrees\": tune.uniform(0.0, 45.0),  # image rotation (+/- deg)\n        \"translate\": tune.uniform(0.0, 0.9),  # image translation (+/- fraction)\n        \"scale\": tune.uniform(0.0, 0.95),  # image scale (+/- gain)\n        \"shear\": tune.uniform(0.0, 10.0),  # image shear (+/- deg)\n        \"perspective\": tune.uniform(0.0, 0.001),  # image perspective (+/- fraction), range 0-0.001\n        \"flipud\": tune.uniform(0.0, 1.0),  # image flip up-down (probability)\n        \"fliplr\": tune.uniform(0.0, 1.0),  # image flip left-right (probability)\n        \"bgr\": tune.uniform(0.0, 1.0),  # swap RGB↔BGR channels (probability)\n        \"mosaic\": tune.uniform(0.0, 1.0),  # image mosaic (probability)\n        \"mixup\": tune.uniform(0.0, 1.0),  # image mixup (probability)\n        \"cutmix\": tune.uniform(0.0, 1.0),  # image cutmix (probability)\n        \"copy_paste\": tune.uniform(0.0, 1.0),  # segment/obb copy-paste (object fraction)\n        \"close_mosaic\": tune.randint(0, 11),  # close dataloader mosaic (epochs)\n    }\n\n    # Put the model in ray store\n    task = model.task\n    model_in_store = ray.put(model)\n    base_name = train_args.get(\"name\", \"tune\")\n\n    def _tune(config):\n        \"\"\"Train the YOLO model with the specified hyperparameters and return results.\"\"\"\n        model_to_train = ray.get(model_in_store)  # get the model from ray store for tuning\n        model_to_train.trainer = None\n        model_to_train.reset_callbacks()\n        config = _sanitize_tune_value(dict(config))\n        config.update(train_args)\n\n        # Set trial-specific name for W&B logging\n        try:\n            trial_id = tune.get_context().get_trial_id()\n            trial_suffix = trial_id.split(\"_\")[-1] if \"_\" in trial_id else trial_id\n            config[\"name\"] = f\"{base_name}_{trial_suffix}\"\n        except Exception:\n            # Not in Ray Tune context or error getting trial ID, use base name\n            config[\"name\"] = base_name\n\n        results = model_to_train.train(**config)\n        if isinstance(config.get(\"data\"), (list, tuple)):\n            metric = TASK2METRIC[task]\n            return {\n                metric: sum((metrics or {}).get(metric, 0.0) for metrics in results.values()) / len(results),\n                \"epoch\": config.get(\"epochs\") or DEFAULT_CFG_DICT[\"epochs\"],\n            }\n        return results.results_dict\n\n    # Get search space\n    if not space:\n        space = default_space\n        if not train_args.get(\"resume\"):\n            LOGGER.warning(\"Search space not provided, using default search space.\")\n\n    # Get dataset\n    data = train_args.get(\"data\", TASK2DATA[task])\n    space = {**space, \"data\": data}  # copy so the caller's space dict is not mutated\n    if \"data\" not in train_args:\n        LOGGER.warning(f'Data not provided, using default \"data={data}\".')\n\n    resolved_search_alg, tuner_param_space, resolved_search_alg_kind = _resolve_ray_search_alg(\n        search_alg, task, space, iterations\n    )\n\n    # Define the trainable function with allocated resources\n    trainable_with_resources = tune.with_resources(_tune, {\"cpu\": NUM_THREADS, \"gpu\": gpu_per_trial or 0})\n\n    # Define the scheduler for hyperparameter search\n    max_t = train_args.get(\"epochs\") or DEFAULT_CFG_DICT[\"epochs\"] or 100\n    scheduler = ASHAScheduler(\n        time_attr=\"epoch\",\n        metric=TASK2METRIC[task],\n        mode=\"max\",\n        max_t=max_t,\n        grace_period=min(grace_period, max_t),\n        reduction_factor=3,\n    )\n    if resolved_search_alg_kind == \"bohb\":\n        scheduler = HyperBandForBOHB(\n            time_attr=\"epoch\",\n            metric=TASK2METRIC[task],\n            mode=\"max\",\n            max_t=max_t,\n            reduction_factor=3,\n        )\n\n    # Create the Ray Tune hyperparameter search tuner\n    tune_dir = get_save_dir(\n        get_cfg(\n            DEFAULT_CFG,\n            {**train_args, \"exist_ok\": train_args.pop(\"resume\", False)},  # resume w/ same tune_dir\n        ),\n        name=train_args.pop(\"name\", \"tune\"),  # runs/{task}/{tune_dir}\n    )  # must be absolute dir\n    tune_dir.mkdir(parents=True, exist_ok=True)\n    if tune.Tuner.can_restore(tune_dir):\n        LOGGER.info(f\"{colorstr('Tuner: ')} Resuming tuning run {tune_dir}...\")\n        tuner = tune.Tuner.restore(str(tune_dir), trainable=trainable_with_resources, resume_errored=True)\n    else:\n        tuner = tune.Tuner(\n            trainable_with_resources,\n            param_space=tuner_param_space,\n            tune_config=tune.TuneConfig(\n                search_alg=resolved_search_alg,\n                scheduler=scheduler,\n                num_samples=iterations,\n                trial_name_creator=lambda trial: f\"{trial.trainable_name}_{trial.trial_id}\",\n                trial_dirname_creator=lambda trial: f\"{trial.trainable_name}_{trial.trial_id}\",\n            ),\n            run_config=RunConfig(storage_path=tune_dir.parent, name=tune_dir.name),\n        )\n\n    # Run the hyperparameter search\n    tuner.fit()\n\n    # Get the results of the hyperparameter search\n    results = tuner.get_results()\n\n    # Shut down Ray to clean up workers\n    ray.shutdown()\n\n    return results\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function reference, ray",
      "display": "tuner.py · run_ray_tune()",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project repository, ray",
      "display": "ultralytics/ultralytics",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project stars, ultralytics/ultralytics",
      "display": "63.5K",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project push date, ultralytics/ultralytics",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F27": {
      "label": "Library name, optuna",
      "display": "Optuna",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Monthly downloads, optuna",
      "display": "14.0M",
      "asOf": "2026-11-16"
    },
    "F29": {
      "label": "License, optuna",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Package release, optuna",
      "display": "5.1.0, Nov 2026",
      "asOf": "2026-11-16"
    },
    "F31": {
      "label": "Package release date, optuna",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F32": {
      "label": "Repository stars, optuna",
      "display": "15.1K",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Conditional spaces, optuna",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Trial pruning, optuna",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Multi-objective, optuna",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Parallel trials, optuna",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "Install, optuna",
      "display": "pip install optuna",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "What it does, optuna",
      "display": "Automates hyperparameter search with Python-defined spaces, samplers, and pruning.",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths lead, optuna",
      "display": "Defines spaces with Python branches",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths, optuna",
      "display": "Suggest parameters inside conditionals and loops.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths lead, optuna",
      "display": "Prunes unpromising training trials",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "strengths, optuna",
      "display": "Report intermediate values and check should_prune during iterative training.",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations lead, optuna",
      "display": "Pruning targets single-objective studies",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations, optuna",
      "display": "Use another stopping policy when optimizing multiple objectives.",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "Quickstart, optuna",
      "display": "import optuna\n\ndef objective(trial):\n    x = trial.suggest_float('x', -10, 10)\n    return (x - 2) ** 2\n\nstudy = optuna.create_study()\nstudy.optimize(objective, n_trials=100)\n\nstudy.best_params  # E.g. {'x': 2.002108042}\n",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Project function, optuna",
      "display": "def get_optimizer(\n    self,\n    random_state: int,\n):\n    o_sampler = self.custom_hyperopt.generate_estimator(\n        dimensions=self.dimensions, random_state=random_state\n    )\n\n    if isinstance(o_sampler, str):\n        if o_sampler not in optuna_samplers_dict:\n            raise OperationalException(f\"Optuna Sampler {o_sampler} not supported.\")\n        with warnings.catch_warnings():\n            warnings.filterwarnings(action=\"ignore\", category=ExperimentalWarning)\n            if o_sampler in [\"NSGAIIISampler\", \"NSGAIISampler\"]:\n                sampler = optuna_samplers_dict[o_sampler](\n                    seed=random_state, population_size=INITIAL_POINTS\n                )\n            elif o_sampler in [\"GPSampler\", \"TPESampler\", \"CmaEsSampler\"]:\n                sampler = optuna_samplers_dict[o_sampler](\n                    seed=random_state, n_startup_trials=INITIAL_POINTS\n                )\n            else:\n                sampler = optuna_samplers_dict[o_sampler](seed=random_state)\n    else:\n        sampler = o_sampler\n\n    if self.es_epochs > 0:\n        with warnings.catch_warnings():\n            warnings.filterwarnings(action=\"ignore\", category=ExperimentalWarning)\n            self.es_terminator = Terminator(BestValueStagnationEvaluator(self.es_epochs))\n\n    logger.info(f\"Using optuna sampler {o_sampler}.\")\n    return optuna.create_study(sampler=sampler, direction=\"minimize\")\n",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project function reference, optuna",
      "display": "hyperopt_optimizer.py · get_optimizer()",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project repository, optuna",
      "display": "freqtrade/freqtrade",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project stars, freqtrade/freqtrade",
      "display": "57.0K",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project push date, freqtrade/freqtrade",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F51": {
      "label": "Library name, hyperopt",
      "display": "Hyperopt",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Monthly downloads, hyperopt",
      "display": "1.7M",
      "asOf": "2026-11-16"
    },
    "F53": {
      "label": "License, hyperopt",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Package release, hyperopt",
      "display": "0.3.0, Jul 2026",
      "asOf": "2026-07-24"
    },
    "F55": {
      "label": "Package release date, hyperopt",
      "display": "Jul 2026",
      "asOf": "2026-07-24"
    },
    "F56": {
      "label": "Repository stars, hyperopt",
      "display": "7.6K",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Conditional spaces, hyperopt",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Parallel trials, hyperopt",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Install, hyperopt",
      "display": "pip install hyperopt",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "What it does, hyperopt",
      "display": "Optimizes objective functions over stochastic search spaces, including conditional parameters.",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "strengths lead, hyperopt",
      "display": "Encodes conditional parameter choices",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "strengths, hyperopt",
      "display": "Use nested choices to expose parameters only in the relevant branch.",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "strengths lead, hyperopt",
      "display": "Retains trial diagnostics",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "strengths, hyperopt",
      "display": "Return a dictionary with loss, status, and additional trial information.",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "limitations lead, hyperopt",
      "display": "Spark trials fit single-machine models",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "limitations, hyperopt",
      "display": "Use another execution approach for models that need distributed training.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "Quickstart, hyperopt",
      "display": "# define an objective function\ndef objective(args):\n    case, val = args\n    if case == 'case 1':\n        return val\n    else:\n        return val ** 2\n\n# define a search space\nfrom hyperopt import hp\nspace = hp.choice('a',\n    [\n        ('case 1', 1 + hp.lognormal('c1', 0, 1)),\n        ('case 2', hp.uniform('c2', -10, 10))\n    ])\n\n# minimize the objective over the space\nfrom hyperopt import fmin, tpe, space_eval\nbest = fmin(objective, space, algo=tpe.suggest, max_evals=100)\n\nprint(best)\n# -> {'a': 1, 'c2': 0.01420615366247227}\nprint(space_eval(space, best))\n# -> ('case 2', 0.01420615366247227}\n\n",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "Project function, hyperopt",
      "display": "@click.command(\n    help=\"Perform hyperparameter search with Hyperopt library. Optimize dl_train target.\"\n)\n@click.option(\"--max-runs\", type=click.INT, default=10, help=\"Maximum number of runs to evaluate.\")\n@click.option(\"--epochs\", type=click.INT, default=500, help=\"Number of epochs\")\n@click.option(\"--metric\", type=click.STRING, default=\"rmse\", help=\"Metric to optimize on.\")\n@click.option(\"--algo\", type=click.STRING, default=\"tpe.suggest\", help=\"Optimizer algorithm.\")\n@click.option(\"--seed\", type=click.INT, default=97531, help=\"Seed for the random generator\")\n@click.argument(\"training_data\")\ndef train(training_data, max_runs, epochs, metric, algo, seed):\n    # ...\n    # create random file to store run ids of the training tasks\n    tracking_client = MlflowClient()\n\n    def new_eval(\n        nepochs, experiment_id, null_train_loss, null_valid_loss, null_test_loss, return_all=False\n    ):\n        \"\"\"\n        Create a new eval function\n\n        Args:\n            nepochs: Number of epochs to train the model.\n            experiment_id: Experiment id for the training run.\n            null_train_loss: Loss of a null model on the training dataset.\n            null_valid_loss: Loss of a null model on the validation dataset.\n            null_test_loss Loss of a null model on the test dataset.\n            return_all: If True, return train, validation, and test loss.\n                Otherwise, return only the validation loss.\n                Default is False.\n\n        Returns:\n            An evaluation function that trains the model and logs metrics to MLflow.\n        \"\"\"\n\n        def eval(params):\n            \"\"\"\n            Train Keras model with given parameters by invoking MLflow run.\n\n            Notice we store runUuid and resulting metric in a file. We will later use these to pick\n            the best run and to log the runUuids of the child runs as an artifact. This is a\n            temporary workaround until MLflow offers better mechanism of linking runs together.\n\n            Args:\n                params: Parameters to the train_keras script we optimize over:\n                    learning_rate, drop_out_1\n\n            Returns:\n                The metric value evaluated on the validation data.\n            \"\"\"\n            import mlflow.tracking\n\n            lr, momentum = params\n            with mlflow.start_run(nested=True) as child_run:\n                p = mlflow.projects.run(\n                    uri=\".\",\n                    entry_point=\"train\",\n                    run_id=child_run.info.run_id,\n                    parameters={\n                        \"training_data\": training_data,\n                        \"epochs\": str(nepochs),\n                        \"learning_rate\": str(lr),\n                        \"momentum\": str(momentum),\n                        \"seed\": seed,\n                    },\n                    experiment_id=experiment_id,\n                    synchronous=False,  # Allow the run to fail if a model is not properly created\n                )\n                succeeded = p.wait()\n                mlflow.log_params({\"lr\": lr, \"momentum\": momentum})\n\n            if succeeded:\n                training_run = tracking_client.get_run(p.run_id)\n                metrics = training_run.data.metrics\n                # cap the loss at the loss of the null model\n                train_loss = min(null_train_loss, metrics[f\"train_{metric}\"])\n                valid_loss = min(null_valid_loss, metrics[f\"val_{metric}\"])\n                test_loss = min(null_test_loss, metrics[f\"test_{metric}\"])\n            else:\n                # run failed => return null loss\n                tracking_client.set_terminated(p.run_id, \"FAILED\")\n                train_loss = null_train_loss\n                valid_loss = null_valid_loss\n                test_loss = null_test_loss\n\n            mlflow.log_metrics({\n                f\"train_{metric}\": train_loss,\n                f\"val_{metric}\": valid_loss,\n                f\"test_{metric}\": test_loss,\n            })\n\n            if return_all:\n                return train_loss, valid_loss, test_loss\n            else:\n                return valid_loss\n\n        return eval\n\n    space = [\n        hp.uniform(\"lr\", 1e-5, 1e-1),\n        hp.uniform(\"momentum\", 0.0, 1.0),\n    ]\n\n    with mlflow.start_run() as run:\n        experiment_id = run.info.experiment_id\n        # Evaluate null model first.\n        train_null_loss, valid_null_loss, test_null_loss = new_eval(\n            0, experiment_id, _inf, _inf, _inf, True\n        )(params=[0, 0])\n        best = fmin(\n            fn=new_eval(epochs, experiment_id, train_null_loss, valid_null_loss, test_null_loss),\n            space=space,\n            algo=tpe.suggest if algo == \"tpe.suggest\" else rand.suggest,\n            max_evals=max_runs,\n        )\n        mlflow.set_tag(\"best params\", str(best))\n        # find the best run, log its metrics as the final metrics of this run.\n        client = MlflowClient()\n        runs = client.search_runs(\n            [experiment_id], f\"tags.mlflow.parentRunId = '{run.info.run_id}' \"\n        )\n        best_val_train = _inf\n        best_val_valid = _inf\n        best_val_test = _inf\n        best_run = None\n        for r in runs:\n            if r.data.metrics[\"val_rmse\"] < best_val_valid:\n                best_run = r\n                best_val_train = r.data.metrics[\"train_rmse\"]\n                best_val_valid = r.data.metrics[\"val_rmse\"]\n                best_val_test = r.data.metrics[\"test_rmse\"]\n        mlflow.set_tag(\"best_run\", best_run.info.run_id)\n        mlflow.log_metrics({\n            f\"train_{metric}\": best_val_train,\n            f\"val_{metric}\": best_val_valid,\n            f\"test_{metric}\": best_val_test,\n        })\n",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "Project function reference, hyperopt",
      "display": "search_hyperopt.py · train()",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "Project repository, hyperopt",
      "display": "mlflow/mlflow",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Project stars, mlflow/mlflow",
      "display": "28.8K",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Project push date, mlflow/mlflow",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F73": {
      "label": "Library name, scikit-optimize",
      "display": "Scikit-Optimize",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Monthly downloads, scikit-optimize",
      "display": "574.8K",
      "asOf": "2026-11-16"
    },
    "F75": {
      "label": "License, scikit-optimize",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Package release, scikit-optimize",
      "display": "0.10.2, Jun 2024",
      "asOf": "2024-06-04"
    },
    "F77": {
      "label": "Package release date, scikit-optimize",
      "display": "Jun 2024",
      "asOf": "2024-06-04"
    },
    "F78": {
      "label": "Repository stars, scikit-optimize",
      "display": "25",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Parallel trials, scikit-optimize",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Install, scikit-optimize",
      "display": "pip install scikit-optimize",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "What it does, scikit-optimize",
      "display": "Provides sequential model-based optimization for expensive or noisy black-box functions.",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "strengths lead, scikit-optimize",
      "display": "Fits scikit-learn search workflows",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "strengths, scikit-optimize",
      "display": "Use BayesSearchCV with an estimator’s existing fit and score methods.",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "strengths lead, scikit-optimize",
      "display": "Exposes a manual optimization loop",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "strengths, scikit-optimize",
      "display": "Use Optimizer ask and tell to control objective evaluation.",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "limitations lead, scikit-optimize",
      "display": "Gradient methods need another optimizer",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "limitations, scikit-optimize",
      "display": "Use SciPy when gradients should drive the optimization.",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "limitations lead, scikit-optimize",
      "display": "Parallel search copies training data",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "limitations, scikit-optimize",
      "display": "Limit pre_dispatch when parallel parameter settings exceed available memory.",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "Quickstart, scikit-optimize",
      "display": "import numpy as np\nfrom skopt import gp_minimize\n\ndef f(x):\n    return (np.sin(5 * x[0]) * (1 - np.tanh(x[0] ** 2)) +\n            np.random.randn() * 0.1)\n\nres = gp_minimize(f, [(-2.0, 2.0)])\n\nfrom skopt import Optimizer\n\nopt = Optimizer([(-2.0, 2.0)])\n\nfor i in range(20):\n    suggested = opt.ask()\n    y = f(suggested)\n    opt.tell(suggested, y)\n    print('iteration:', i, suggested, y)\n",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "Developer need",
      "display": "Python-defined search spaces",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "Why choose optuna",
      "display": "conditional parameter suggestions",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "Developer need in introduction",
      "display": "Python-defined search spaces",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "When to consider ray",
      "display": "trial execution must be scheduled across machines",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "Developer need",
      "display": "Conditional stochastic spaces",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Why choose hyperopt",
      "display": "nested choices with conditional parameters",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Developer need in introduction",
      "display": "conditional stochastic spaces",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "When to consider optuna",
      "display": "training must report intermediate values for trial pruning",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Developer need",
      "display": "Distributed trial execution",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Why choose ray",
      "display": "scheduling a hyperparameter sweep across machines",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Developer need in introduction",
      "display": "distributed trial execution",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "When to consider scikit-optimize",
      "display": "an estimator-focused fit and score workflow is sufficient",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Developer need",
      "display": "Scikit-learn model search",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Why choose scikit-optimize",
      "display": "estimator fit and score workflows",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Developer need in introduction",
      "display": "Scikit-learn model search",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "When to consider optuna",
      "display": "parameter suggestions depend on Python branches and loops",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Page introduction",
      "display": "Python hyperparameter optimization libraries let machine-learning developers run and compare model-tuning trials.",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "FAQ: Which Python hyperparameter optimization library should I choose?",
      "display": "Optuna defines search spaces with Python conditionals and loops.",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "FAQ: Which Python hyperparameter optimization library should I choose?",
      "display": "Ray Tune handles experiment execution and trial scheduling.",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "FAQ: Which Python hyperparameter optimization library should I choose?",
      "display": "BayesSearchCV fits scikit-learn estimator workflows.",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "FAQ: Are a search algorithm and a trial scheduler the same thing?",
      "display": "Optuna samplers use past parameter suggestions and objective values to select candidates.",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "FAQ: Are a search algorithm and a trial scheduler the same thing?",
      "display": "Ray schedulers can stop, pause, or change running trials.",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "FAQ: How are conditional parameters expressed?",
      "display": "Optuna uses Python branches or loops that depend on parameter values.",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "FAQ: How are conditional parameters expressed?",
      "display": "Hyperopt can include parameters only for a selected choice branch.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: Does Optuna automatically prune every objective function?",
      "display": "Iterative training must report intermediate values and call should_prune.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: Does Optuna pruning support multi-objective studies?",
      "display": "Its pruners module is currently expected to be used only for single-objective optimization.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Can Ray Tune use an Optuna multi-objective search?",
      "display": "OptunaSearch accepts a list of metrics and corresponding objective modes.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Can Hyperopt SparkTrials train a distributed model within each trial?",
      "display": "SparkTrials fits and evaluates each model on a single Spark worker.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Can Hyperopt SparkTrials train a distributed model within each trial?",
      "display": "Its scope is single-machine models and workflows.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Does increasing Hyperopt parallelism preserve the same adaptiveness?",
      "display": "Higher parallelism trades the optimizer’s use of earlier results for concurrent evaluations.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Do all Ray search algorithms accept the same search-space expressions?",
      "display": "Some search algorithms are incompatible with lambdas or grid search in the native space interface.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Why can parallel BayesSearchCV consume extra memory?",
      "display": "The data is copied for each parameter setting when parallel jobs are enabled.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Why can parallel BayesSearchCV consume extra memory?",
      "display": "pre_dispatch limits the number of copies dispatched at once.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Does Scikit-Optimize perform gradient-based optimization?",
      "display": "Its own scope excludes gradient-based optimization.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Was the Scikit-Optimize distribution abandoned with the old repository?",
      "display": "The maintained continuation explicitly publishes releases to the same PyPI distribution.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "Library name, scikit-learn",
      "display": "scikit-learn",
      "asOf": "2026-11-20"
    },
    "F127": {
      "label": "Monthly downloads, scikit-learn",
      "display": "214.9M",
      "asOf": "2026-11-20"
    },
    "F128": {
      "label": "License, scikit-learn",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F129": {
      "label": "Package release, scikit-learn",
      "display": "1.9.1",
      "asOf": "2026-11-20"
    },
    "F130": {
      "label": "Package release date, scikit-learn",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F131": {
      "label": "Install, scikit-learn",
      "display": "pip install scikit-learn",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "Quickstart, scikit-learn",
      "display": "from sklearn.datasets import load_iris\nfrom sklearn.model_selection import GridSearchCV\nfrom sklearn.svm import SVC\n\nX, y = load_iris(return_X_y=True)\nsearch = GridSearchCV(SVC(), {\"C\": [0.1, 1.0, 10.0]}, cv=3).fit(X, y)\nprint(search.best_params_)\n",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "Official description, scikit-learn",
      "display": "Provides Python modules for machine learning and data mining.",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Quickstart source file, scikit-learn",
      "display": "sklearn.model_selection.GridSearchCV.html",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Repository stars, scikit-learn",
      "display": "68.2K",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Multiple optimization objectives, scikit-learn",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Resource-adaptive trial scheduling, scikit-learn",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Native HPO role, scikit-learn",
      "display": "Cross-validated grid/random search around sklearn estimators,with separate experimental successive-halving variants.",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Multiple-objective semantics, scikit-learn",
      "display": "GridSearchCV/RandomizedSearchCV can record multiple scores and select/refit via one score or custom callback; that is not native vector/Pareto or lexicographic objective-guided proposal generation. Manual Pareto postprocessing remains possible.",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Resource and trial control, scikit-learn",
      "display": "Experimental HalvingGridSearchCV/HalvingRandomSearchCV progressively allocate a chosen resource and eliminate candidates. Requires enable_halving_search_cv import and estimator/resource compatibility; not arbitrary in-fit metric callbacks.",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Runtime/model prerequisites, scikit-learn",
      "display": "Compatible selected Python/NumPy/SciPy/scikit-learn runtime. Built-in Iris dataset and SVC provide an actual tiny model-search first call; no tuning was executed.",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Exact external task contract, scikit-learn",
      "display": "Exact whole class inherits the directly imported sklearn.model_selection.GridSearchCV. Native super constructor receives RejectOptionClassifier(),empty initial param_grid,scoring,refit,and caller kwargs. Current1.9.1 supports estimator,param_grid,scoring,refit,and declared GridSearchCV options. Original required scoring and later fit transform fairness names into scorer mappings; raw fairness string is not asserted a native sklearn scorer. kwargs must be valid current public search options. Initializes the existing fairness-specific HPO wrapper; returns None as a normal constructor,not a fitted model or best parameters. Actual class fit later builds threshold/margin grid and custom fairness-aware refit. This admitted initializer does not claim to run that later search or certify every legacy estimator/mixin behavior.",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Project function, scikit-learn",
      "display": "def __init__(self, prot_attr=None, *, scoring, step=0.05, refit=True, **kwargs):\n    \"\"\"\n    Args:\n        prot_attr (single label or list-like, optional): Protected\n            attribute(s) to use in the post-processing. If more than one\n            attribute, all combinations of values (intersections) are\n            considered. Default is ``None`` meaning all protected attributes\n            from the dataset are used. Note: This algorithm requires there\n            be exactly 2 groups (privileged and unprivileged).\n        scoring ('statistical_parity', 'average_odds', 'equal_opportunity',\n            'disparate_impact', or callable/dict): Fairness scorer to use to\n            evaluate the predictions. If type is a `str`, constructs the\n            corresponding scorer for that metric in addition to the default\n            balanced accuracy. If type is callable (i.e., a scorer object),\n            that will be used along with balanced accuracy. Finally, if an\n            explicit dictionary is passed, this will be used as is.\n        step (float): Step size for grid search. Will search every valid\n            combination of threshold and margin that are multiples of this\n            step size. See `param_grid` after fitting for the exact search\n            space.\n        refit (bool or callable, optional): Refit the estimator using the\n            best parameters found. If `True` and not using a custom scoring\n            function, this chooses the highest balanced accuracy given\n            fairness score > -0.1 (or > 0.8 for disparate impact only).\n            Alternatively, a custom refitting function may be passed. See\n            :class:`~sklearn.model_selection.GridSearchCV` for details.\n        **kwargs: See :class:`~sklearn.model_selection.GridSearchCV` for\n            additional kwargs.\n    \"\"\"\n    self.scoring = scoring\n    self.refit = refit\n    self.step = step\n    self.prot_attr = prot_attr\n    super().__init__(RejectOptionClassifier(), {}, scoring=scoring,\n                     refit=refit, **kwargs)\n",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Project source file, scikit-learn",
      "display": "aif360/sklearn/postprocessing/reject_option_classification.py",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Project full_name, scikit-learn",
      "display": "Trusted-AI/AIF360",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Project stargazers_count, scikit-learn",
      "display": "2.9K",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Library name, ray",
      "display": "Ray Tune",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Monthly downloads, ray",
      "display": "15.7M",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "License, ray",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Package release, ray",
      "display": "2.60.0",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Package release date, ray",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Install, ray",
      "display": "pip install \"ray[tune]\"",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Quickstart, ray",
      "display": "from ray import tune\n\ndef objective(config):\n    return {\"loss\": (config[\"x\"] - 2) ** 2}\n\ntuner = tune.Tuner(objective, param_space={\"x\": tune.grid_search([0, 1, 2])})\nresults = tuner.fit()\nprint(results.get_best_result(metric=\"loss\", mode=\"min\").config)\n",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Repository stars, ray",
      "display": "44.3K",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Multiple optimization objectives, ray",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Resource-adaptive trial scheduling, ray",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Native HPO role, ray",
      "display": "Distributed trainable execution,searcher adapters,and resource-aware trial scheduling.",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Multiple-objective semantics, ray",
      "display": "Named optional OptunaSearch adapter requires optuna>=3.0 and accepts metric/mode lists. Reporting many metrics alone is not multiobjective search; model/core dependencies are not generically called plugins.",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Resource and trial control, ray",
      "display": "Tune provides resource-aware schedulers including HyperBand/ASHA. Trainables must report the relevant intermediate time/resource metric and stop/cooperate with the scheduler.",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Runtime/model prerequisites, ray",
      "display": "Compatible Ray local runtime/CPU resources. This first call evaluates a scalar toy objective,not model training or cluster deployment. Ray would start local runtime services only if user runs it.",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Exact external task contract, ray",
      "display": "Actual lexical outer run_ray_tune imports ray/tune,puts the model in Ray object store,and closes over model_in_store,base_name,task,and train_args. Current2.60 ray.get retrieves ObjectRef; Tune get_context returns TuneContext and get_trial_id returns trial ID. Original model config sanitization,callback reset,and task metrics are host operations. Runs the original YOLO training operation for one actual Tune config and returns task result metrics; list/tuple datasets are averaged by original application logic. This function supplies one trial to the surrounding tuner,not an entire search setup. Model/data/Tune session and compatible Ultralytics runtime are prerequisites; no throughput/accuracy claim.",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Project function, ray",
      "display": "def _tune(config):\n    \"\"\"Train the YOLO model with the specified hyperparameters and return results.\"\"\"\n    model_to_train = ray.get(model_in_store)  # get the model from ray store for tuning\n    model_to_train.trainer = None\n    model_to_train.reset_callbacks()\n    config = _sanitize_tune_value(dict(config))\n    config.update(train_args)\n\n    # Set trial-specific name for W&B logging\n    try:\n        trial_id = tune.get_context().get_trial_id()\n        trial_suffix = trial_id.split(\"_\")[-1] if \"_\" in trial_id else trial_id\n        config[\"name\"] = f\"{base_name}_{trial_suffix}\"\n    except Exception:\n        # Not in Ray Tune context or error getting trial ID, use base name\n        config[\"name\"] = base_name\n\n    results = model_to_train.train(**config)\n    if isinstance(config.get(\"data\"), (list, tuple)):\n        metric = TASK2METRIC[task]\n        return {\n            metric: sum((metrics or {}).get(metric, 0.0) for metrics in results.values()) / len(results),\n            \"epoch\": config.get(\"epochs\") or DEFAULT_CFG_DICT[\"epochs\"],\n        }\n    return results.results_dict\n",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Project source file, ray",
      "display": "ultralytics/utils/tuner.py",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Project full_name, ray",
      "display": "ultralytics/ultralytics",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Project stargazers_count, ray",
      "display": "63.5K",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Library name, optuna",
      "display": "Optuna",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Monthly downloads, optuna",
      "display": "14.5M",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "License, optuna",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Package release, optuna",
      "display": "5.1.0",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Package release date, optuna",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Install, optuna",
      "display": "pip install optuna",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Quickstart, optuna",
      "display": "import optuna\n\ndef objective(trial):\n    return (trial.suggest_float(\"x\", -10, 10) - 2) ** 2\n\nstudy = optuna.create_study(direction=\"minimize\")\nstudy.optimize(objective, n_trials=10)\nprint(study.best_params)\n",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Repository stars, optuna",
      "display": "15.1K",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Multiple optimization objectives, optuna",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Resource-adaptive trial scheduling, optuna",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Native HPO role, optuna",
      "display": "Define-by-run objective studies with conditional parameter suggestions,samplers,and pruning.",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Multiple-objective semantics, optuna",
      "display": "A study accepts multiple directions/objective returns. Pareto front and sampler compatibility differ from scalar studies; intermediate pruning is not universally supported in multiobjective mode.",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Resource and trial control, optuna",
      "display": "Native pruning classes include successive-halving/Hyperband. Objectives must report supported intermediate scalar values and honor should_prune; not a guarantee every estimator/multiobjective study is prunable.",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Runtime/model prerequisites, optuna",
      "display": "Compatible selected Python runtime. In-memory study/toy objective; no database,model,data download,or distributed service required.",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Project function, optuna",
      "display": "def objective(trial):\n    iris = sklearn.datasets.load_iris()\n    x, y = iris.data, iris.target\n\n    classifier_name = trial.suggest_categorical(\"classifier\", [\"SVC\", \"RandomForest\"])\n    if classifier_name == \"SVC\":\n        svc_c = trial.suggest_float(\"svc_c\", 1e-10, 1e10, log=True)\n        classifier_obj = sklearn.svm.SVC(C=svc_c, gamma=\"auto\")\n    else:\n        rf_max_depth = trial.suggest_int(\"rf_max_depth\", 2, 32, log=True)\n        classifier_obj = sklearn.ensemble.RandomForestClassifier(\n            max_depth=rf_max_depth, n_estimators=10\n        )\n\n    score = sklearn.model_selection.cross_val_score(classifier_obj, x, y, n_jobs=-1, cv=3)\n    accuracy = score.mean()\n    return accuracy",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Project source file, optuna",
      "display": "sklearn/sklearn_simple.py",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Project full_name, optuna",
      "display": "optuna/optuna-examples",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Project stargazers_count, optuna",
      "display": "870",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Library name, hyperopt",
      "display": "Hyperopt",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Monthly downloads, hyperopt",
      "display": "1.7M",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "License, hyperopt",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Package release, hyperopt",
      "display": "0.3.0",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Package release date, hyperopt",
      "display": "Jul 2026",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Install, hyperopt",
      "display": "pip install hyperopt",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Quickstart, hyperopt",
      "display": "from hyperopt import fmin, hp, tpe\n\nbest = fmin(lambda x: x ** 2, hp.uniform(\"x\", -1, 1), algo=tpe.suggest, max_evals=10)\nprint(best)\n",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Repository stars, hyperopt",
      "display": "7.6K",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Multiple optimization objectives, hyperopt",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Resource-adaptive trial scheduling, hyperopt",
      "display": "Undocumented",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Native HPO role, hyperopt",
      "display": "Conditional stochastic search spaces with scalar fmin/TPE/random optimization and trial backends.",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Multiple-objective semantics, hyperopt",
      "display": "Compared native fmin/TPE objective protocol uses one float loss for optimization. Other dictionary diagnostics/loss_variance or caller scalarization do not create native vector-objective search.",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Resource and trial control, hyperopt",
      "display": "Completed fmin loss/diagnostic protocol is established; native automatic multi-fidelity scheduling is not established in retained own references. External trial-control integrations/user code remain possible.",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Runtime/model prerequisites, hyperopt",
      "display": "Compatible selected Python/NumPy/SciPy runtime. Toy scalar loss returns best parameter mapping; no MLflow/Spark/MongoDB required for this basic call.",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Exact external task contract, hyperopt",
      "display": "Original full decorated MLflow train command imports hp,fmin,tpe,rand. hp.uniform labels lr/momentum and finite bounds are current0.3; fmin accepts objective closure,space,algo=tpe.suggest or rand.suggest,and max_evals. No obsolete random-state argument. The nested evaluation closure returns a scalar validation loss,which follows current fmin protocol. fmin returns label-to-best-value dictionary; app logs it and selects original child-run artifacts. The unchanged postselection hardcodes val_rmse/train_rmse/test_rmse,so scope is RMSE despite the broader CLI metric argument. Caller training data,MLflow project entrypoint,compatible model dependencies,and tracking environment are prerequisites.",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Project function, hyperopt",
      "display": "@click.command(\n    help=\"Perform hyperparameter search with Hyperopt library. Optimize dl_train target.\"\n)\n@click.option(\"--max-runs\", type=click.INT, default=10, help=\"Maximum number of runs to evaluate.\")\n@click.option(\"--epochs\", type=click.INT, default=500, help=\"Number of epochs\")\n@click.option(\"--metric\", type=click.STRING, default=\"rmse\", help=\"Metric to optimize on.\")\n@click.option(\"--algo\", type=click.STRING, default=\"tpe.suggest\", help=\"Optimizer algorithm.\")\n@click.option(\"--seed\", type=click.INT, default=97531, help=\"Seed for the random generator\")\n@click.argument(\"training_data\")\ndef train(training_data, max_runs, epochs, metric, algo, seed):\n    \"\"\"\n    Run hyperparameter optimization.\n    \"\"\"\n    # create random file to store run ids of the training tasks\n    tracking_client = MlflowClient()\n\n    def new_eval(\n        nepochs, experiment_id, null_train_loss, null_valid_loss, null_test_loss, return_all=False\n    ):\n        \"\"\"\n        Create a new eval function\n\n        Args:\n            nepochs: Number of epochs to train the model.\n            experiment_id: Experiment id for the training run.\n            null_train_loss: Loss of a null model on the training dataset.\n            null_valid_loss: Loss of a null model on the validation dataset.\n            null_test_loss Loss of a null model on the test dataset.\n            return_all: If True, return train, validation, and test loss.\n                Otherwise, return only the validation loss.\n                Default is False.\n\n        Returns:\n            An evaluation function that trains the model and logs metrics to MLflow.\n        \"\"\"\n\n        def eval(params):\n            \"\"\"\n            Train Keras model with given parameters by invoking MLflow run.\n\n            Notice we store runUuid and resulting metric in a file. We will later use these to pick\n            the best run and to log the runUuids of the child runs as an artifact. This is a\n            temporary workaround until MLflow offers better mechanism of linking runs together.\n\n            Args:\n                params: Parameters to the train_keras script we optimize over:\n                    learning_rate, drop_out_1\n\n            Returns:\n                The metric value evaluated on the validation data.\n            \"\"\"\n            import mlflow.tracking\n\n            lr, momentum = params\n            with mlflow.start_run(nested=True) as child_run:\n                p = mlflow.projects.run(\n                    uri=\".\",\n                    entry_point=\"train\",\n                    run_id=child_run.info.run_id,\n                    parameters={\n                        \"training_data\": training_data,\n                        \"epochs\": str(nepochs),\n                        \"learning_rate\": str(lr),\n                        \"momentum\": str(momentum),\n                        \"seed\": seed,\n                    },\n                    experiment_id=experiment_id,\n                    synchronous=False,  # Allow the run to fail if a model is not properly created\n                )\n                succeeded = p.wait()\n                mlflow.log_params({\"lr\": lr, \"momentum\": momentum})\n\n            if succeeded:\n                training_run = tracking_client.get_run(p.run_id)\n                metrics = training_run.data.metrics\n                # cap the loss at the loss of the null model\n                train_loss = min(null_train_loss, metrics[f\"train_{metric}\"])\n                valid_loss = min(null_valid_loss, metrics[f\"val_{metric}\"])\n                test_loss = min(null_test_loss, metrics[f\"test_{metric}\"])\n            else:\n                # run failed => return null loss\n                tracking_client.set_terminated(p.run_id, \"FAILED\")\n                train_loss = null_train_loss\n                valid_loss = null_valid_loss\n                test_loss = null_test_loss\n\n            mlflow.log_metrics({\n                f\"train_{metric}\": train_loss,\n                f\"val_{metric}\": valid_loss,\n                f\"test_{metric}\": test_loss,\n            })\n\n            if return_all:\n                return train_loss, valid_loss, test_loss\n            else:\n                return valid_loss\n\n        return eval\n\n    space = [\n        hp.uniform(\"lr\", 1e-5, 1e-1),\n        hp.uniform(\"momentum\", 0.0, 1.0),\n    ]\n\n    with mlflow.start_run() as run:\n        experiment_id = run.info.experiment_id\n        # Evaluate null model first.\n        train_null_loss, valid_null_loss, test_null_loss = new_eval(\n            0, experiment_id, _inf, _inf, _inf, True\n        )(params=[0, 0])\n        best = fmin(\n            fn=new_eval(epochs, experiment_id, train_null_loss, valid_null_loss, test_null_loss),\n            space=space,\n            algo=tpe.suggest if algo == \"tpe.suggest\" else rand.suggest,\n            max_evals=max_runs,\n        )\n        mlflow.set_tag(\"best params\", str(best))\n        # find the best run, log its metrics as the final metrics of this run.\n        client = MlflowClient()\n        runs = client.search_runs(\n            [experiment_id], f\"tags.mlflow.parentRunId = '{run.info.run_id}' \"\n        )\n        best_val_train = _inf\n        best_val_valid = _inf\n        best_val_test = _inf\n        best_run = None\n        for r in runs:\n            if r.data.metrics[\"val_rmse\"] < best_val_valid:\n                best_run = r\n                best_val_train = r.data.metrics[\"train_rmse\"]\n                best_val_valid = r.data.metrics[\"val_rmse\"]\n                best_val_test = r.data.metrics[\"test_rmse\"]\n        mlflow.set_tag(\"best_run\", best_run.info.run_id)\n        mlflow.log_metrics({\n            f\"train_{metric}\": best_val_train,\n            f\"val_{metric}\": best_val_valid,\n            f\"test_{metric}\": best_val_test,\n        })\n",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Project source file, hyperopt",
      "display": "examples/hyperparam/search_hyperopt.py",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Project full_name, hyperopt",
      "display": "mlflow/mlflow",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Project stargazers_count, hyperopt",
      "display": "28.8K",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Library name, bayesian-optimization",
      "display": "BayesianOptimization",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Monthly downloads, bayesian-optimization",
      "display": "843.0K",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "License, bayesian-optimization",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Package release, bayesian-optimization",
      "display": "3.4.0",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Package release date, bayesian-optimization",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Install, bayesian-optimization",
      "display": "pip install bayesian-optimization",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Quickstart, bayesian-optimization",
      "display": "from bayes_opt import BayesianOptimization\n\noptimizer = BayesianOptimization(f=lambda x: -(x - 2) ** 2, pbounds={\"x\": (-5, 5)}, random_state=1)\noptimizer.maximize(init_points=2, n_iter=3)\nprint(optimizer.max)\n",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Official description, bayesian-optimization",
      "display": "Runs Bayesian optimization.",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Quickstart source file, bayesian-optimization",
      "display": "basic-tour.html",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Repository stars, bayesian-optimization",
      "display": "8.7K",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Multiple optimization objectives, bayesian-optimization",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Resource-adaptive trial scheduling, bayesian-optimization",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Native HPO role, bayesian-optimization",
      "display": "Gaussian-process Bayesian maximization over declared parameter bounds,with acquisition/constraint/domain tools.",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Multiple-objective semantics, bayesian-optimization",
      "display": "Compared native BayesianOptimization has one scalar target. Vector constraints are feasibility conditions,not a native Pareto objective vector; custom scalarization remains possible.",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Resource and trial control, bayesian-optimization",
      "display": "Compared maximize/probe loop controls initialization/evaluation counts over complete target-function calls; its domain reduction/constraints are not a native training-resource scheduler. External objective/controller code can add fidelity management.",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Runtime/model prerequisites, bayesian-optimization",
      "display": "Compatible selected Python/NumPy/SciPy/sklearn runtime. Uses current pbounds/maximize API,not GPyOpt domain/run_optimization or old suggest(utility). Toy maximization only; no objective evaluation ran.",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Project function, bayesian-optimization",
      "display": "def _solve_internal_problem(\n    self, problem: InternalOptimizationProblem, x0: NDArray[np.float64]\n) -> InternalOptimizeResult:\n    if not IS_BAYESOPT_INSTALLED_AND_VERSION_NEWER_THAN_2:\n        raise NotInstalledError(\n            \"To use the 'bayes_opt' optimizer you need to install bayes_opt. \"\n            \"Use 'pip install bayesian-optimization'. \"\n            \"Check the documentation for more details: \"\n            \"https://bayesian-optimization.github.io/BayesianOptimization/index.html\"\n        )\n\n    from bayes_opt import BayesianOptimization\n\n    pbounds = _process_bounds(problem.bounds)\n\n    acq = _process_acquisition_function(\n        acquisition_function=self.acquisition_function,\n        kappa=self.kappa,\n        xi=self.xi,\n        exploration_decay=self.exploration_decay,\n        exploration_decay_delay=self.exploration_decay_delay,\n        random_seed=self.seed,\n    )\n\n    constraint = None\n    constraint = self._process_constraints(problem.nonlinear_constraints)\n\n    def objective(**kwargs: dict[str, float]) -> float:\n        x = _extract_params_from_kwargs(kwargs)\n        return -float(\n            problem.fun(x)\n        )  # Negate to convert minimization to maximization\n\n    bounds_transformer = None\n    if self.enable_sdr:\n        from bayes_opt import SequentialDomainReductionTransformer\n\n        bounds_transformer = SequentialDomainReductionTransformer(\n            gamma_osc=self.sdr_gamma_osc,\n            gamma_pan=self.sdr_gamma_pan,\n            eta=self.sdr_eta,\n            minimum_window=self.sdr_minimum_window,\n        )\n\n    optimizer = BayesianOptimization(\n        f=objective,\n        pbounds=pbounds,\n        acquisition_function=acq,\n        constraint=constraint,\n        random_state=self.seed,\n        verbose=self.verbose,\n        bounds_transformer=bounds_transformer,\n        allow_duplicate_points=self.allow_duplicate_points,\n    )\n\n    # Set Gaussian Process parameters\n    optimizer.set_gp_params(alpha=self.alpha, n_restarts_optimizer=self.n_restarts)\n\n    # Use initial point as first probe\n    probe_params = {f\"param{i}\": float(val) for i, val in enumerate(x0)}\n    optimizer.probe(\n        params=probe_params,\n        lazy=True,\n    )\n    optimizer.maximize(\n        init_points=self.init_points,\n        n_iter=self.stopping_maxiter,\n    )\n\n    res = _process_bayes_opt_result(optimizer=optimizer, x0=x0, problem=problem)\n    return res",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Project source file, bayesian-optimization",
      "display": "src/optimagic/optimizers/bayesian_optimizer.py",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Project full_name, bayesian-optimization",
      "display": "optimagic-dev/optimagic",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Project stargazers_count, bayesian-optimization",
      "display": "324",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Library name, scikit-optimize",
      "display": "scikit-optimize",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Monthly downloads, scikit-optimize",
      "display": "609.1K",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "License, scikit-optimize",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Package release, scikit-optimize",
      "display": "0.10.2",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Package release date, scikit-optimize",
      "display": "Jun 2024",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Install, scikit-optimize",
      "display": "pip install scikit-optimize",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Quickstart, scikit-optimize",
      "display": "from skopt import gp_minimize\n\nresult = gp_minimize(lambda x: x[0] ** 2, [(-1.0, 1.0)], n_calls=10, random_state=0)\nprint(result.x, result.fun)\n",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Repository stars, scikit-optimize",
      "display": "25",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Multiple optimization objectives, scikit-optimize",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Resource-adaptive trial scheduling, scikit-optimize",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Native HPO role, scikit-optimize",
      "display": "Bayesian scalar minimization and sklearn-compatible BayesSearchCV over estimator parameters.",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Multiple-objective semantics, scikit-optimize",
      "display": "Native gp_minimize minimizes one scalar function value. BayesSearchCV scoring/refit chooses a scalar search target; multi-score diagnostics and EI-per-second timing are not native Pareto optimization.",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Resource and trial control, scikit-optimize",
      "display": "BayesSearchCV evaluates configurations through CV; n_iter/n_points/n_jobs and whole-search callbacks are evaluation/concurrency controls,not a native successive-halving or per-trial training-resource scheduler.",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Runtime/model prerequisites, scikit-optimize",
      "display": "Compatible selected Python/NumPy/SciPy/sklearn runtime. Objective takes a parameter list and returns one scalar. Toy optimization only; model fitting dependencies of the external integration are separate.",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Exact external task contract, scikit-optimize",
      "display": "Native branch imports skopt.BayesSearchCV,constructs it with estimator,param_space,random_state=self.seed,and search_kwargs. Captured same file set_default_search_kwargs sets cv5,scoring balanced_accuracy,n_iter25; all are current0.10.2 public options. Provided kwargs must otherwise be supported. Only successful Skopt branch owns model.fit/predict here; caught failure selects peer sklearn.RandomizedSearchCV,not additional Skopt calls. Current BayesSearchCV supports fit,predict,and best_params_. Host evaluates the fitted model on held-out data using peer sklearn metrics and returns host metadata plus model/imputer/scaler tuple. Best parameters optimize selected CV scoring; returned held-out balanced accuracy/precision/recall are application metrics,not research benchmark claims.",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Project function, scikit-optimize",
      "display": "def _train_and_evaluate(\n    self, imputation_strategy, scaler, classifier, X_train, X_test, y_train, y_test, model_id, search_kwargs\n):\n    from sklearn.metrics import balanced_accuracy_score, precision_score, recall_score\n\n    search_kwargs = set_default_search_kwargs(search_kwargs)\n\n    X_train_scaled, X_test_scaled, y_train, y_test, imputer, scaler = self.apply_scaling_imputation(\n        imputation_strategy, scaler, X_train, X_test, y_train, y_test\n    )\n    if self.verbose is True:\n        print(f\"Running {classifier.__class__.__name__} with imputation {imputation_strategy} and scaling {scaler}\")\n    model, param_space = self.get_classifier_search_space(classifier.__class__.__name__)\n\n    try:\n        from skopt import BayesSearchCV\n\n        model = BayesSearchCV(\n            model,\n            param_space,\n            random_state=self.seed,\n            **search_kwargs,\n        )\n    except Exception:\n        if self.verbose is True:\n            print(\"BayesSearchCV from scikit-optimize not available, using RandomizedSearchCV\")\n        from sklearn.model_selection import RandomizedSearchCV\n\n        model = RandomizedSearchCV(model, param_space, **search_kwargs)\n\n    model.fit(X_train_scaled, y_train)\n    y_pred = model.predict(X_test_scaled)\n    balanced_acc = balanced_accuracy_score(y_test, y_pred)\n    precision = precision_score(y_test, y_pred, average=\"macro\")\n    recall = recall_score(y_test, y_pred, average=\"macro\")\n    return {\n        \"classifier name\": classifier.__class__.__name__,\n        \"imputation_strategy\": imputation_strategy,\n        \"scaling_strategy\": scaler,\n        \"balanced_accuracy\": balanced_acc,\n        \"precision\": precision,\n        \"recall\": recall,\n        \"model_id\": model_id,\n        \"best_params\": model.best_params_,\n    }, (model, imputer, scaler)\n",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Project source file, scikit-optimize",
      "display": "src/spikeinterface/curation/train_manual_curation.py",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Project full_name, scikit-optimize",
      "display": "SpikeInterface/spikeinterface",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Project stargazers_count, scikit-optimize",
      "display": "873",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Library name, nevergrad",
      "display": "Nevergrad",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Monthly downloads, nevergrad",
      "display": "518.5K",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "License, nevergrad",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Package release, nevergrad",
      "display": "1.0.12",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Package release date, nevergrad",
      "display": "Apr 2025",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Install, nevergrad",
      "display": "pip install nevergrad",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Quickstart, nevergrad",
      "display": "import nevergrad as ng\n\noptimizer = ng.optimizers.NGOpt(parametrization=ng.p.Scalar(lower=-5, upper=5), budget=10)\nrecommendation = optimizer.minimize(lambda x: (x - 2) ** 2)\nprint(recommendation.value)\n",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Official description, nevergrad",
      "display": "Performs gradient-free optimization.",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Quickstart source file, nevergrad",
      "display": "optimization.html",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Repository stars, nevergrad",
      "display": "4.2K",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Multiple optimization objectives, nevergrad",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Resource-adaptive trial scheduling, nevergrad",
      "display": "Undocumented",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Native HPO role, nevergrad",
      "display": "Gradient-free ask/tell optimizers over explicit parameterizations,including vector-objective/Pareto modes.",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Multiple-objective semantics, nevergrad",
      "display": "Native ask/tell supports vector losses and Pareto-front recommendations. Some optimizers internally scalarize or have experimental/normalization limitations; not all methods promise identical Pareto quality.",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Resource and trial control, nevergrad",
      "display": "Documented budget counts objective evaluations and num_workers controls concurrency. A native model-training-resource scheduler has not been established; external Ray or other orchestration can add one.",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Runtime/model prerequisites, nevergrad",
      "display": "Compatible selected Python/NumPy runtime. Scalar parametrization and finite evaluation budget; no Ray/executor/model required for this basic first call.",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Exact external task contract, nevergrad",
      "display": "Full original class accepts an actual Nevergrad optimizer instance or factory; _setup_nevergrad sets _nevergrad_opt. Scope is a valid current1.0.12 optimizer/parameterization instance,which can be supplied through the existing public constructor without patching source. Current ask() returns Parameter with args,kwargs,and value; the same public optimization guide uses all three. Original metric/mode/space checks and parameter_names mapping remain required. Returns a Ray trial config dictionary derived from candidate.kwargs,dict candidate.value,or a zipped numeric args array with explicit parameter_names. Original live-trial map retains the actual candidate for later tell. No claim every arbitrary parameterization has dictionary-compatible values or every old factory branch is compatible.",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Project function, nevergrad",
      "display": "def suggest(self, trial_id: str) -> Optional[Dict]:\n    if not self._nevergrad_opt:\n        raise RuntimeError(\n            UNDEFINED_SEARCH_SPACE.format(\n                cls=self.__class__.__name__, space=\"space\"\n            )\n        )\n    if not self._metric or not self._mode:\n        raise RuntimeError(\n            UNDEFINED_METRIC_MODE.format(\n                cls=self.__class__.__name__, metric=self._metric, mode=self._mode\n            )\n        )\n\n    suggested_config = self._nevergrad_opt.ask()\n\n    self._live_trial_mapping[trial_id] = suggested_config\n    # in v0.2.0+, output of ask() is a Candidate,\n    # with fields args and kwargs\n    if not suggested_config.kwargs:\n        if self._parameters:\n            return unflatten_dict(\n                dict(zip(self._parameters, suggested_config.args[0]))\n            )\n        return unflatten_dict(suggested_config.value)\n    else:\n        return unflatten_dict(suggested_config.kwargs)\n",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Project source file, nevergrad",
      "display": "python/ray/tune/search/nevergrad/nevergrad_search.py",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "Project full_name, nevergrad",
      "display": "ray-project/ray",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "Project stargazers_count, nevergrad",
      "display": "44.3K",
      "asOf": "2026-11-20"
    },
    "F263": {
      "label": "Library name, flaml",
      "display": "FLAML",
      "asOf": "2026-11-20"
    },
    "F264": {
      "label": "Monthly downloads, flaml",
      "display": "361.1K",
      "asOf": "2026-11-20"
    },
    "F265": {
      "label": "License, flaml",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F266": {
      "label": "Package release, flaml",
      "display": "2.8.0",
      "asOf": "2026-11-20"
    },
    "F267": {
      "label": "Package release date, flaml",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F268": {
      "label": "Install, flaml",
      "display": "pip install flaml",
      "asOf": "2026-11-20"
    },
    "F269": {
      "label": "Quickstart, flaml",
      "display": "from flaml import tune\n\nanalysis = tune.run(\n    lambda config: {\"loss\": config[\"x\"] ** 2},\n    config={\"x\": tune.uniform(-1, 1)}, metric=\"loss\", mode=\"min\",\n    num_samples=10, use_ray=False,\n)\nprint(analysis.best_config)\n",
      "asOf": "2026-11-20"
    },
    "F270": {
      "label": "Official description, flaml",
      "display": "Automates machine learning and tuning.",
      "asOf": "2026-11-20"
    },
    "F271": {
      "label": "Quickstart source file, flaml",
      "display": "Tune-User-Defined-Function",
      "asOf": "2026-11-20"
    },
    "F272": {
      "label": "Repository stars, flaml",
      "display": "4.4K",
      "asOf": "2026-11-20"
    },
    "F273": {
      "label": "Multiple optimization objectives, flaml",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F274": {
      "label": "Resource-adaptive trial scheduling, flaml",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F275": {
      "label": "Native HPO role, flaml",
      "display": "Cost-aware tuning plus AutoML model/hyperparameter selection; native resource scheduling and ordered objective preferences.",
      "asOf": "2026-11-20"
    },
    "F276": {
      "label": "Multiple-objective semantics, flaml",
      "display": "Native tune.run supports explicitly ordered lexicographic metrics,modes,tolerances,and targets. This prioritizes objectives rather than producing the same Pareto-study semantics as Optuna/Nevergrad.",
      "asOf": "2026-11-20"
    },
    "F277": {
      "label": "Resource and trial control, flaml",
      "display": "Native scheduler=\"flaml\" starts at minimum resource and adapts HPO versus resource increases. Objective must use resource_attr plus min/max/reduction settings; optional Ray ASHA is a separate scheduling mode.",
      "asOf": "2026-11-20"
    },
    "F278": {
      "label": "Runtime/model prerequisites, flaml",
      "display": "Compatible selected Python tuning dependencies. Explicit use_ray=False keeps toy objective in FLAML native runner; flaml[automl] learner extras are separately required for external AutoML model-training example.",
      "asOf": "2026-11-20"
    },
    "F279": {
      "label": "Exact external task contract, flaml",
      "display": "Source imports flaml.AutoML. Current2.8 fit accepts positional X_train/y_train and named metric,task,n_jobs,log_file_name,time_budget. Additional training_params must be supported current fit settings. Current predict,predict_proba,classes_,and config_history are public API; classification branches alone consume class probabilities/classes. Requires flaml[automl],compatible learner extras,and original benchmark dataset/config/helper contracts. Searches model/hyperparameters within configured budget and returns original benchmark prediction/result metadata. Model count uses config_history length,not an actual measured count in this research. Original timing code remains source,not supplied performance data. Model/search space and benchmark task determine actual outputs.",
      "asOf": "2026-11-20"
    },
    "F280": {
      "label": "Project function, flaml",
      "display": "def run(dataset, config):\n    log.info(f\"\\n**** FLAML [v{__version__}] ****\\n\")\n\n    X_train, y_train = dataset.train.X, dataset.train.y.squeeze()\n\n    is_classification = config.type == \"classification\"\n    time_budget = config.max_runtime_seconds\n    n_jobs = config.framework_params.get(\"_n_jobs\", config.cores)\n    log.info(\"Running FLAML with {} number of cores\".format(config.cores))\n    aml = AutoML()\n\n    # Mapping of benchmark metrics to flaml metrics\n    metrics_mapping = dict(\n        acc=\"accuracy\",\n        auc=\"roc_auc\",\n        f1=\"f1\",\n        logloss=\"log_loss\",\n        mae=\"mae\",\n        mse=\"mse\",\n        rmse=\"rmse\",\n        r2=\"r2\",\n    )\n    perf_metric = (\n        metrics_mapping[config.metric] if config.metric in metrics_mapping else \"auto\"\n    )\n    if perf_metric is None:\n        log.warning(\"Performance metric %s not supported.\", config.metric)\n\n    training_params = {\n        k: v for k, v in config.framework_params.items() if not k.startswith(\"_\")\n    }\n\n    log_dir = output_subdir(\"logs\", config)\n    flaml_log_file_name = os.path.join(log_dir, \"flaml.log\")\n    with Timer() as training:\n        aml.fit(\n            X_train,\n            y_train,\n            metric=perf_metric,\n            task=config.type,\n            n_jobs=n_jobs,\n            log_file_name=flaml_log_file_name,\n            time_budget=time_budget,\n            **training_params,\n        )\n    log.info(f\"Finished fit in {training.duration}s.\")\n\n    def infer(data: Union[str, pd.DataFrame]):\n        data = pd.read_parquet(data) if isinstance(data, str) else data\n        predict_fn = aml.predict_proba if is_classification else aml.predict\n        return predict_fn(data)\n\n    inference_times = {}\n    if config.measure_inference_time:\n        inference_times[\"file\"] = measure_inference_times(\n            infer, dataset.inference_subsample_files\n        )\n        inference_times[\"df\"] = measure_inference_times(\n            infer,\n            [(1, dataset.test.X.sample(1, random_state=i)) for i in range(100)],\n        )\n        log.info(\"Finished inference time measurements.\")\n\n    with Timer() as predict:\n        X_test, y_test = dataset.test.X, dataset.test.y.squeeze()\n        predictions = aml.predict(X_test)\n    probabilities = aml.predict_proba(X_test) if is_classification else None\n    labels = None\n    if is_classification:\n        labels = (\n            aml.classes_ if isinstance(aml.classes_, list) else aml.classes_.tolist()\n        )\n    log.info(f\"Finished predict in {predict.duration}s.\")\n\n    return result(\n        output_file=config.output_predictions_file,\n        probabilities=probabilities,\n        predictions=predictions,\n        truth=y_test,\n        models_count=len(aml.config_history),\n        training_duration=training.duration,\n        predict_duration=predict.duration,\n        probabilities_labels=labels,\n        inference_times=inference_times,\n    )\n",
      "asOf": "2026-11-20"
    },
    "F281": {
      "label": "Project source file, flaml",
      "display": "frameworks/flaml/exec.py",
      "asOf": "2026-11-20"
    },
    "F282": {
      "label": "Project full_name, flaml",
      "display": "openml/automlbenchmark",
      "asOf": "2026-11-20"
    },
    "F283": {
      "label": "Project stargazers_count, flaml",
      "display": "472",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best Python hyperparameter optimization libraries Optuna Hyperopt Ray Tune Scikit-Optimize code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
