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 search_plot_utils.plotting import plot_grid_search, plot_grid_search_non_interactive
from search_plot_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file search_plot_utils-0.1.1.tar.gz.
File metadata
- Download URL: search_plot_utils-0.1.1.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85f8dbd56a9445e640fc2287ff0519533d48a0758e95cbbfda28c9d86a19819e
|
|
| MD5 |
370994843383734df95b2aae5be9586c
|
|
| BLAKE2b-256 |
9826f10b5c232a3d16ec42f55e280819bb64e68178f6076b6837b4e342167f94
|
File details
Details for the file search_plot_utils-0.1.1-py3-none-any.whl.
File metadata
- Download URL: search_plot_utils-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
880445b7f636ec66803ff12d980cfbb8dbab807d6b816ec4938805733107248a
|
|
| MD5 |
fc13096421f2191d1ecc96bbdc23f5b7
|
|
| BLAKE2b-256 |
385e06731a54e4fe310f9d7ac485f3e7c8ec68705f4772bfc4ce8cc4df0c2e52
|