Observed since 21 Oct, 11:09 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
ai-library-swch
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.
| Package / target | Requirement | Relationship |
|---|---|---|
annotated-typesEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | annotated-types==0.7.0 | runtime |
anyioEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | anyio==4.13.0 | runtime |
cloudpathlibEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | cloudpathlib==0.24.0 | runtime |
cloudpickleEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | cloudpickle==3.1.2 | runtime |
confectionEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | confection==1.3.3 | runtime |
durationpyEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | durationpy==0.10 | runtime |
fastaiEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | fastai==2.8.7 | runtime |
fastcoreEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | fastcore==1.13.2 | runtime |
fastprogressEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | fastprogress==1.1.6 | runtime |
httpcoreEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | httpcore==1.0.9 | runtime |
matplotlibEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | matplotlib==3.11.0 | runtime |
mpmathEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | mpmath==1.3.0 | runtime |
numpyEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | numpy==2.4.6 | runtime |
pandasEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | pandas==3.0.3 | runtime |
preshedEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | preshed==3.0.13 | runtime |
pyarrowEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | pyarrow==24.0.0 | runtime |
pydantic_coreEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | pydantic_core==2.46.4 | runtime |
PyYAMLEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | PyYAML==6.0.3 | runtime |
requestsEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | requests==2.34.2 | runtime |
requests-oauthlibEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | requests-oauthlib==2.0.0 | runtime |
scikit-learnEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | scikit-learn==1.7.2 | runtime |
setuptoolsEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | setuptools==81.0.0 | runtime |
swchmonclientEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | swchmonclient==0.2.0 | runtime |
threadpoolctlEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | threadpoolctl==3.6.0 | runtime |
torchEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | torch==2.12.0 | runtime |
torchaudioEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | torchaudio==2.11.0 | runtime |
torchvisionEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | torchvision==0.27.0 | runtime |
tsaiEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | tsai==1.0.1 | runtime |
typing-inspectionEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | typing-inspection==0.4.2 | runtime |
typing_extensionsEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | typing_extensions==4.15.0 | runtime |
xgboostEnvironment{
"extras": "",
"marker": null,
"requires_python": "==3.12.3",
"evaluation": "NOT_EVALUATED"
} | xgboost==3.2.0 | runtime |
bdist_wheel · 28.41 KB · Python py3
sdist · 22.99 KB · Python source
Observed since 21 Oct, 11:09 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:27d5a4e8de7cc8aa8163996e2ede477ae263225faadf94c0703a7af245dfc6bf