Skip to main content

Classificação simples de pressão arterial (BAIXA/NORMAL/ALTA) a partir de pares sistólica/diastólica.

Project description

postech-pressao

Biblioteca simples para classificar aferições de pressão arterial como BAIXA, NORMAL ou ALTA a partir de pares (sistólica, diastólica).

Atenção: uso educacional/didático. Não substitui orientação clínica.

Instalação

pip install postech-pressao

Uso (Python)

from postech_pressao import train_default_model, predict_labels

model = train_default_model()
resultados = predict_labels(model, [(120,80), (140,90), (100,70)])
print(resultados)  # ['NORMAL', 'ALTA', 'BAIXA'] (exemplo)

Uso (CLI)

postech-pressao --pares 120,80 140,90 100,70
# 120/80 => NORMAL
# 140/90 => ALTA
# 100/70 => BAIXA

Como funciona

  • O modelo é um LinearSVC (scikit-learn) treinado com um conjunto de exemplos simples incluído na lib.
  • As predições retornam rótulos legíveis: BAIXA, NORMAL, ALTA.

Desenvolvimento

python -m venv .venv && source .venv/bin/activate
pip install -U pip build twine pytest
pip install -e .
pytest -q

Build & Publicação

python -m build
twine check dist/*
# TestPyPI
twine upload -r testpypi dist/*
# PyPI
twine upload dist/*

Para testar a instalação a partir do TestPyPI:

python -m pip install --index-url https://test.pypi.org/simple/ --no-deps postech-pressao

Licença

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

postech_pressao-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

postech_pressao-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file postech_pressao-0.1.0.tar.gz.

File metadata

  • Download URL: postech_pressao-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for postech_pressao-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7f87a756f6c7f84d36a56c945b7afd76269f6fad96e4559e194fb2b36870f8e2
MD5 6054edf4ce94b4c99015242d89e220d0
BLAKE2b-256 7e80988336241b083c678fe79eaac0ae1e5b570915842a3950afed75fdff7400

See more details on using hashes here.

File details

Details for the file postech_pressao-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for postech_pressao-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c3579fbcc1c18179cdb2e52f7fa3236d760347ebde1ef4cd14a3f3e871a859cb
MD5 adadce6c42019c643aa1b06cb5874971
BLAKE2b-256 0fecb007617667c84c7c19c4bb09fd8d6199041bf1aa52f2758428b57777d530

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page