Skip to main content

treeml

Phylogenetic machine learning: scikit-learn estimators that account for evolutionary non-independence among species.

Installation

pip install treeml

Quick Start

from treeml import PhyloRandomForestRegressor, PhyloDistanceCV
from sklearn.model_selection import cross_val_score
from Bio import Phylo

tree = Phylo.read("species.nwk", "newick")
# X = feature matrix (n_species x p_features)
# y = target vector (n_species)

model = PhyloRandomForestRegressor(n_estimators=100)
model.fit(X, y, tree=tree, species_names=names)

cv = PhyloDistanceCV(tree=tree, species_names=names, n_splits=5)
scores = cross_val_score(model, X, y, cv=cv)

Metadata

Release files for treeml 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for treeml 0.1.1
File Size Uploaded Provenance Actions
treeml-0.1.1.tar.gz 27.8 kB Without provenance Details for treeml-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for treeml 0.1.1
File Interpreter ABI Platform Actions
treeml-0.1.1-py2.py3-none-any.whl Python 3, Python 2 none any Details for treeml-0.1.1-py2.py3-none-any.whl

Total release size: 80.6 kB

Release files / treeml-0.1.1.tar.gz

Download URL treeml-0.1.1.tar.gz
Size 27.8 kB
Tags Source
SHA-256 checksum
How to use checksums
71e29964d1dd25977c4ded6fb81b5d8b4d4df190b9d5d3009b0ed11a19ca446d
BLAKE2b-256 checksum
How to use checksums
f2c67e60ea4b3da3c91adc5cfc015811e10ceb6c7e1490859013a22fd17e0022
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.10

Release files / treeml-0.1.1-py2.py3-none-any.whl

Download URL treeml-0.1.1-py2.py3-none-any.whl
Size 52.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
1ce2c4ddd3783fae93b5dc02a8bfdff36aeb095e80b392abc63d5aa2526de9d6
BLAKE2b-256 checksum
How to use checksums
6377a4ed8e1b398ccdde67e194701e3e2681ac55501965a8b2568832fb2f551c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.10

Security for treeml 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page