Skip to main content

Simplifies the visualization and analysis of search results from hyperparameter optimization.

Project description

# search_plot_utils

`search_plot_utils` is a Python library designed to simplify the visualization and analysis of search results from various hyperparameter optimization methods, including `GridSearchCV`, `RandomizedSearchCV`, and more. This library provides flexible and easy-to-use functions to create insightful plots and tables, enabling better interpretation and comparison of model performance across different hyperparameter combinations.

## Key Features:

- **Flexible Plotting**: Visualize search results for a wide range of optimization methods.
- **Customizable Outputs**: Save plots as images or display them directly in Jupyter notebooks.
- **Tabular Insights**: Generate tables from search results with customizable columns and filters.
- **Broad Search Support**: Compatible with `GridSearchCV`, `RandomizedSearchCV`, and other search techniques.

## Installation:

You can install `search_plot_utils` via pip:

```bash
pip install search_plot_utils
```

Or install manually:

```bash
git clone https://github.com/yourusername/search_plot_utils.git
cd search_plot_utils
pip install .
```

## Example Usage:

```python
from grid_search_utils.plotting import plot_grid_search, plot_grid_search_non_interactive
from grid_search_utils.tables import table_grid_search

from sklearn.model_selection import GridSearchCV
from sklearn.datasets import load_iris
from sklearn.ensemble import RandomForestClassifier

# Load dataset and set up model
iris = load_iris()
clf = RandomForestClassifier()
param_grid = {'n_estimators': [10, 50], 'max_depth': [2, 4]}

# Execute GridSearchCV
grid_search = GridSearchCV(clf, param_grid)
grid_search.fit(iris.data, iris.target)

# Generate search results plot
plot_search_results(grid_search.cv_results_)

# Generate search results plot (Non Interactive version)
plot_grid_search_non_interactive(grid_search.cv_results_)

# Generate search results table
table_search_results(grid_search.cv_results_)
```


## License:

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

search_plot_utils-0.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

search_plot_utils-0.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file search_plot_utils-0.1.tar.gz.

File metadata

  • Download URL: search_plot_utils-0.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.8

File hashes

Hashes for search_plot_utils-0.1.tar.gz
Algorithm Hash digest
SHA256 9b77ce019918feb11eb11f98975ba41677cf4c6da97fd19eb823ef1a641502ce
MD5 3189b0b61c4dcf25ee63bc3339262f7d
BLAKE2b-256 4491a86ced9cd5f2250894f0b09c2aae75196fe72d8fc6aab5dd9037a84d47e3

See more details on using hashes here.

File details

Details for the file search_plot_utils-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for search_plot_utils-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 da17559c03ddd13d4900c6855ad2fe263e9495d3f78f81d2cd05edc612a52467
MD5 a544536da114e03c544d4542f971b6e4
BLAKE2b-256 25590c7917018037ecb1d07a05fafdd0c318b97af76cb5ec581c339378866c1c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page