ai_library
ai_library is a Python package that exposes model training, inference, metrics recording, cron scheduling, and package-based configuration management.
Package overview
-
model selection and all other parameters are done via the config file.
- train writes to the config file model (path), infer tries to load a model of that type.
-
ai_library.validate_config(config_path=None)- Loads and validates the package default
ai_library/config.yamlif no path is provided. - Returns the parsed configuration dictionary.
- Loads and validates the package default
-
ai_library.update_config(config_path=None, updates=...)- Updates the package config file by default.
- Supports a dictionary, a
[key, value]pair, or a list of[key, value]pairs.
-
ai_library.show_config(config_path=None)- Prints the current configuration to stdout.
-
ai_library.train()- Loads configuration from save_file path of the package config.
- Reads data, builds the selected pipeline, and trains the model.
-
ai_library.infer()- Loads package configuration from save_file path from config.
- Loads a saved model and performs inference.
-
ai_library.record- Use
ai_library.record.main()or run the module directly to start metric collection. Run in background.
- Use
-
ai_library.add_to_cron()/ai_library.remove_from_cron()- Manage cron scheduling for recurring training runs.
- Adds or removes a cron job that runs
python3 -m ai_library.codebase.setup.train.
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 ai_library_swch-0.1.1.tar.gz.
File metadata
- Download URL: ai_library_swch-0.1.1.tar.gz
- Upload date:
- Size: 22.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dffb811fa5147eb661392f80c03248da60839b88516498623ae3a77dd0bb1484
|
|
| MD5 |
79abdc4dd9694d08f885bc3accd36dbf
|
|
| BLAKE2b-256 |
ee581566676f9500a8265347492535813145952f02f4636034feece780266c42
|
File details
Details for the file ai_library_swch-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ai_library_swch-0.1.1-py3-none-any.whl
- Upload date:
- Size: 28.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
410e1ef08ed8cdd297c3b311683c211b7b69e364a88b9b992d01291a633f874f
|
|
| MD5 |
0eb9777fd6de87e0d5b770b321e78cf0
|
|
| BLAKE2b-256 |
ca793217184c9452ebd8a478c1bb5471e8029e373721fe2c2a5e20c5300876a9
|