A package for analyzing model parameters
Project description
Model Parameters Analyzer
This is a Python package that helps you analyze the parameters of your models. It calculates the number of parameters in the model and their percentages than generate analyze JSON file and charts for you.
Porject Displays
Installation
To install this package, you can use pip:
pip install mpanalyze
Usage
You can use this package from the command line with the follow command:
from mpanalyze import params_analyze
params_analyze(${model})
- More parameters
model: object | The model to analyze.
name: str(Optional) | The name of the model. It will add to the analyze dir begin. If not specified, the directory name will be 'params_analyze'.
port: int(Opetional) | The port to use for the HTTP server. If not specified, the browser will not be opened. Recommended only use in Debug mode. If you want to use in training, it will block the training process.
tree: bool(Optional) | Whether to draw a tree chart. Default is True.
treemap: bool(Optional) | Whether to draw a TreeMap chart. Default is True.
This will calculate the parameters and their percentages for your model.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
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 mpanalyze-0.2.tar.gz.
File metadata
- Download URL: mpanalyze-0.2.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6dc2c175587189d71a2c81e80b87a592841a4a06e122dd34b5df4ca03c75b44f
|
|
| MD5 |
ad791150ff373b436dfe1c9c55f3d2cd
|
|
| BLAKE2b-256 |
cd2bc9bc0916e130fef6712efe909c86fa87e737e8fc4b6d58a779956fe0aad5
|
File details
Details for the file mpanalyze-0.2-py3-none-any.whl.
File metadata
- Download URL: mpanalyze-0.2-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0203fe36015f65bcc6f877be6085689aed03b730e98583463d2a21e514cd91f2
|
|
| MD5 |
41e85ecb52099b3aba588dc6cd0b4a3b
|
|
| BLAKE2b-256 |
f3e256bdec74f6596f2f87ce8593919d88b455a97ad061fab2602435b137ebfc
|