Observed since 21 Oct, 11:09 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
AI helper utilities and models
ai_library is a Python package that exposes model training, inference, metrics recording, cron scheduling, and package-based configuration management.
ai_library.validate_config(config_path=None)
ai_library/config.yaml if no path is provided.ai_library.update_config(config_path=None, updates=...)
[key, value] pair, or a list of [key, value] pairs.ai_library.show_config(config_path=None)
ai_library.train()
ai_library.infer()
ai_library.record
ai_library.record.main() or run the module directly to start metric collection.ai_library.add_to_cron() / ai_library.remove_from_cron()
python3 -m ai_library.codebase.setup.train.pip install ai-library-swch==0.1.1
a safe python version is 3.12.3
this is an example of how config can be printed and updated.
from ai_library import validate_config, update_config, show_config
update_config(None, updates=["parquet_train_size", 100000])
show_config()
validate_config()
Make sure that .env is reachable in the folder where this is executed, and that the specified port is reachable.
Sample .env configuration:
MON_CLIENT_STOMP_HOST=127.0.0.1
MON_CLIENT_STOMP_PORT=61622
Execution command:
nohup python3 -c "from ai_library import record; record.main()" > record.log 2>&1 &
nohup is not necessary, but make sure to run the recorder in the background.
import the functions:
from ai_library import train, infer
the standard way is to use the cron functions to train in intervals. This might still be useful, for example when switching models.
train()
add_to_cron creates a cron job that runs the train function in intervals.
import ai_library.codebase.setup.cron_manager as cron_manager
cron_manager.add_to_cron()
cron_manager.remove_from_cron()
after a trained model is accessible via the path, that is given in the config file, inference can be applied:
predictions, first_predicted, last_predicted, data_frequency, conformal_q = infer()
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.2 | 27 Aug 2026 | 31 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 11:09 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:77a3a83f68b1d68be1d78017107207bb90ad3d6034167f9d197a20292ebb4343