Minhas Árvores
Implementação educacional dos algoritmos ID3, C4.5 e CART em Python.
Instalação
pip install numpy pandas scikit-learn
Uso
from minhas_arvores import ID3, C45, CART
import pandas as pd
dados = pd.DataFrame({
'Tempo': ['Sol', 'Nublado', 'Chuva'],
'Jogar': ['Não', 'Sim', 'Sim']
})
X = dados[['Tempo']]
y = dados['Jogar']
# Treinar
id3 = ID3()
id3.fit(X, y)
# Predizer
resultado = id3.predict({'Tempo': 'Sol'})
print(resultado)
Exemplo Completo
python exemplo_uso.py
Algoritmos
- ID3: Ganho de informação, categóricos apenas
- C4.5: Razão de ganho, suporta contínuos e missing values
- CART: Gini index, divisões binárias
Licença
MIT
Metadata
Release files for minhas-arvores 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| minhas_arvores-1.0.0.tar.gz | 14.8 kB | Without provenance | Details for minhas_arvores-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| minhas_arvores-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for minhas_arvores-1.0.0-py3-none-any.whl |
Total release size: 33.7 kB
Release files / minhas_arvores-1.0.0.tar.gz
| Download URL | minhas_arvores-1.0.0.tar.gz |
|---|---|
| Size | 14.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
383bf04e6d59bc335ff3013b7a4e2dd165c4e8573a123b58ce9ac5411a616051
|
|
BLAKE2b-256 checksum How to use checksums |
507e30384c79e9a00ff141676fe5567dec151e5cef4757089f311d4c55bc7f30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / minhas_arvores-1.0.0-py3-none-any.whl
| Download URL | minhas_arvores-1.0.0-py3-none-any.whl |
|---|---|
| Size | 18.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
286d220414eee36dbf43f52210885d7f28a3bdbbfdf2479a6e9fe378832e812a
|
|
BLAKE2b-256 checksum How to use checksums |
37ec6fc575e2d10706d0c28903601c6a4daeb9f32b2e9dbbe11df355b95f77d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for minhas-arvores 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.