A python and rust decision tree library
Project description
coppice
A simple decision tree and random forest library using a Rust backend.
Installation
pip install coppice
Usage
Python
import numpy as np
from coppice import _coppice
x = ... # [w, n]
y = ... # [n]
x = x.astype(np.float32)
y = y.astype(np.uint32)
_coppice.train_tree_np(x, y, max_depth=5)
_coppice.train_forest_np(x, y, max_depth=5, num_trees=10)
CLI
usage: coppice_ [-h] [--model-type {tree,forest}] [--num-trees NUM_TREES]
[--max-depth MAX_DEPTH]
x-path y-path
positional arguments:
x-path
y-path
options:
-h, --help show this help message and exit
--model-type {tree,forest}
--num-trees NUM_TREES
--max-depth MAX_DEPTH
Development
git clone git@github.com:JBwdn/coppice.git
cd coppice
pip install -e ".[dev]"
maturin develop
pre-commit install
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
coppice-0.2.0.tar.gz
(240.2 kB
view hashes)
Built Distributions
coppice-0.2.0-cp312-none-win32.whl
(155.0 kB
view hashes)
coppice-0.2.0-cp311-none-win32.whl
(157.9 kB
view hashes)
coppice-0.2.0-cp310-none-win32.whl
(157.8 kB
view hashes)
Close
Hashes for coppice-0.2.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 554c467b09db365b209ee18223501f43949b943081ed726df498c18cbc6e5511 |
|
MD5 | 1d264f6cdc6e2b220adb8a55b020e452 |
|
BLAKE2b-256 | ed2f343ba85ac6a08052efc56a16012d941901deeb04fe1af679b1fcc91886b6 |
Close
Hashes for coppice-0.2.0-pp310-pypy310_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a986c213f06c124f0ba96611e3204f07e90b354599207c496c5b499215cf589 |
|
MD5 | 5506ade8b2f0a3a27960708852921acf |
|
BLAKE2b-256 | ed6343aae7143dc7ff93c4b8fdb38fdb7ce4b33fae27cf44098aaf60bdf7ac78 |
Close
Hashes for coppice-0.2.0-pp310-pypy310_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67c40cae0e122c825b594bd3d241845b58b496ffe772c8fa9ddb63fc9869de42 |
|
MD5 | e3ea6414a15af5ce5e0a44081bbbe3ff |
|
BLAKE2b-256 | 0d266284f9723baa36418091c3b0cf97c5865dc96bb9a7017b21a90ce3d2bf32 |
Close
Hashes for coppice-0.2.0-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c93196763539e85eec41b3e5dd50c092bad72ac83b1da35961557ec5b6f151b |
|
MD5 | 9ac3f1f8e4fcf0b4dce30395396d9f65 |
|
BLAKE2b-256 | e66f30565ede9176db7a40254acead73e449e77ea9822082cb0b3ad3337c4c48 |
Close
Hashes for coppice-0.2.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31e18dc2ba9f45766b1d437cf81a554c633bb3a654a33a5572b3000c32d7edef |
|
MD5 | 3567d3849a726c71c9f7375a112612dc |
|
BLAKE2b-256 | 982060705c8931e4cb126c5f170efb028dc435d86d4a2d3f36110999504a0831 |
Close
Hashes for coppice-0.2.0-pp310-pypy310_pp73-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a5acd13b158f83e2fdb08ced7bf6c2c586fa3f43fe5b53e6b182c0901cd4677 |
|
MD5 | 9329022adb4591d15ca4ff7ca2bc9fd6 |
|
BLAKE2b-256 | e54cb3153517331c0aa3ccce32a09240d30d8b55807fb0b47b9fd2262a408b7b |
Close
Hashes for coppice-0.2.0-cp312-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23428adeacd3b85413c078ba191e0925eee8791a701494b2525c066ef5b41917 |
|
MD5 | 27f017a3c29abd8b73bd06f12a047b18 |
|
BLAKE2b-256 | 24e4bb92591ca4658bf2e3ef8634e5df21620ecbea47dc6116a2304a441288b5 |
Close
Hashes for coppice-0.2.0-cp312-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44f6c4ac689e8eacc6866ab2ca6862fc8bcf026527bbaf0558a764aaf6c05770 |
|
MD5 | 5ffb87c0fe4f2a82c74913f46eaacd51 |
|
BLAKE2b-256 | 4f197fc897d4eb2ddffa66e553a36fa8b19fd5254c46f6d44e6b4b42b7a1a8a3 |
Close
Hashes for coppice-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1288709c9c27ac4035a7e28948ef71ad8f5c91c925d6546ec5416a3bc3c79f52 |
|
MD5 | 1617b36bd5c2aa873ccd52fbf1013a2d |
|
BLAKE2b-256 | 2ae4682d37baaa9992b5933399d4164ff8b69d0569badd5b0474925aea2cd612 |
Close
Hashes for coppice-0.2.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f7c31aa4a3f30ef95074eb0e25322223e0d2263cb41a975a876d44db0fd47fa |
|
MD5 | 7bcc6945154048916af49f1879d411ab |
|
BLAKE2b-256 | cc571de7e51fd078be57fd57fcb6ba4c6e92bd3431c297f34c61f93b96ac85e5 |
Close
Hashes for coppice-0.2.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 580ff463d42e44782fe3c9988baa9c78f64f7655107bc59681ea35963168a4a4 |
|
MD5 | ac55a2cc2b8c6a65f634005f86ba214a |
|
BLAKE2b-256 | 60103603f062b873c5619c0279c2c3872cb0d3c94dee88cacb6374ecca8343f1 |
Close
Hashes for coppice-0.2.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12de736912a49c8f92cb4593f914978f8c77b3572430ec0cc16cab911487ed2c |
|
MD5 | 61ab5bc7a5fbdbcdd71f64e76f1555bc |
|
BLAKE2b-256 | 07c54ff86b78b5d79024689945f8b17166a31c91e05c92f76b63b1b74d1176d0 |
Close
Hashes for coppice-0.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c39d9919a0d440203ebfef37f58c87a494c4d6af96c8a67e04aaf6f58338c6a |
|
MD5 | 5fecdfe0a5706261ae14ad2b40bdad37 |
|
BLAKE2b-256 | 43398efca5a0e2ca9826680a3efd2c18736c6c6b32fc42148dea631828e72f07 |
Close
Hashes for coppice-0.2.0-cp312-cp312-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c0ff9b5abc2f0748a88fb2e821323a88f0a16475a2e01a8b7f9cf6227c7f653 |
|
MD5 | 71ec2b69c00c52216d615c9793afedac |
|
BLAKE2b-256 | 2e1abd72b02cdb56def520b545650c20b28c0d19acf70b47520f477bad100646 |
Close
Hashes for coppice-0.2.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ca216e7d3ae90bcfbf1f0768d6006388c49bc8d6bd6797461683fb851c02093 |
|
MD5 | 14cb12ffc551373e337148c0cd913be9 |
|
BLAKE2b-256 | cf03c9298d90e8963ded6bae8afed4a246e6509b52a66a5c3f07a2cb8ed44372 |
Close
Hashes for coppice-0.2.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffd498d8dec57d29fbea5613e5602c708d76b1ec215bf158efd9f9de2e239396 |
|
MD5 | d782a0c2cdcd95aefc2e6274b6dd1289 |
|
BLAKE2b-256 | c6c13ca920c29ae65cb95536903356bf5658cfb901aa63e65ba0851d9fca8481 |
Close
Hashes for coppice-0.2.0-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35dabdfd6087f4349fa7002ac5b70a1e6421c918bd5440b4810506a6b091bcbc |
|
MD5 | 9d970ac72e23e92d46cc9d1e50050e2f |
|
BLAKE2b-256 | 743c6a6cf3b44823d5fc67f5db391210e9841a0fe5b2217152ba1289f62f777a |
Close
Hashes for coppice-0.2.0-cp311-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2e9207f992bd6a2eeb71647411b9ef1ef4a80b88fdc9d12c30097cf924d5ffd |
|
MD5 | a268f545312f8ba4398eba57712a98fb |
|
BLAKE2b-256 | e6f3c7dc63d90027eaa0056e6beba337ce81210426bc80baa5b2a001b48f9de2 |
Close
Hashes for coppice-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8f08bcc80d0b64ae3e511db29ff81879fcbfde275f8a19a8d0731256afe04f4 |
|
MD5 | 5f48273aef8104958d0d92ab527c12c0 |
|
BLAKE2b-256 | f9a378beea23e144d35ef5b07af5d5305c436adf21f98f59963f8a79bdb7c50f |
Close
Hashes for coppice-0.2.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 894ee7cfc951d8480859c88609a69bae8d64f5f5bb2c881522a966f6523090ed |
|
MD5 | 365ff3cd602f7f121031a379d07499fc |
|
BLAKE2b-256 | fc73a3fae566330174a4c42dc72317b4df6a3dcd6ee6161be775afdc3c777e85 |
Close
Hashes for coppice-0.2.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c72af860e5f5be3c9114d1e8f74d1cdeda15cfd424e5b74b6ed820f8fb87829 |
|
MD5 | 3b927b8dede9c4ab697f25b07d6f09d3 |
|
BLAKE2b-256 | 5ad5bcf21484f1e96ba4df835189352de419deb719d8e1380cfd5e0393a25913 |
Close
Hashes for coppice-0.2.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c16d393ea4b2dee5da094434af485413434727cf1da191ac6a5032ded1d3f65 |
|
MD5 | b6d6847e4f902e29cd396d614439f425 |
|
BLAKE2b-256 | fcf6f04f4e8a70a6d4d00cb3f0494801fc6eb52fd4c072d80a845187f94d1d81 |
Close
Hashes for coppice-0.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 068ec046ae7fb661263854507e71504c5080187b67cd18f246d90f2352e715e7 |
|
MD5 | c01b05ff468aac7b155af8cadaceea89 |
|
BLAKE2b-256 | e0e64bab940b297b6cb3accf23f35e989916febe69d045207b512fedcd6f01c8 |
Close
Hashes for coppice-0.2.0-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a6706496449ad00cd03db0ee048cf26c448d757649c4fb9dec3554028ddb4d1 |
|
MD5 | ea017c2db8091962b850ea8bea65fb4d |
|
BLAKE2b-256 | 753a5fb88a97f1859208cbdc442b445199cdecddc6c88310f0a84a863a0be6f3 |
Close
Hashes for coppice-0.2.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fe52c69c3343b2ed95329aa068e92c56af210006383a8e8ef47393c1f08b218 |
|
MD5 | 113d71963674daa2ffbaec23887774c4 |
|
BLAKE2b-256 | c0c46de05f2d4f7dbbe561c152fd15120d7a74199a98b5fba8f39f46bf6837d2 |
Close
Hashes for coppice-0.2.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d22eedd59057210af65d59d0f4f8bf764e58e6f3e8d11182d6e837909755cde |
|
MD5 | c6c97c463e73fedd9cf04e8eeb608532 |
|
BLAKE2b-256 | 9e80a973100c4974a6a3fd7a416b3f792a5f6a1bd2de62efe790b9bddbda2a62 |
Close
Hashes for coppice-0.2.0-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6251eb7aa77464a740b49204b7b4b906dd8714035186f95d55a75f3b4000628a |
|
MD5 | e14d621384606865122cdf9014597801 |
|
BLAKE2b-256 | d73a76fb5738f06c95118981717a2116f9671c238d74049a99ded61c1486bb07 |
Close
Hashes for coppice-0.2.0-cp310-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad6bbe40434336005a8f91e81180713b8fabd057e9637899984337e010fd2dba |
|
MD5 | 93a963b4d75fbc37d4aafdcb0366c222 |
|
BLAKE2b-256 | 61c5d313b4964e4c58d46dd6a0c4bea19e3a9d0b531ec53d08d14c79d6a9f878 |
Close
Hashes for coppice-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 279d84c9c81075c03ead2448f00e4497d06c5bbd9df26e40e6c6bf5f48ffbbba |
|
MD5 | 32ad258eef5c8bef42379223265e6ca3 |
|
BLAKE2b-256 | 52e2ef2bf68c1f6c7406ac10627a16bea6e0f3c26392e3b8e9e448d546c0e3b4 |
Close
Hashes for coppice-0.2.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8934e87c8ed67f946cf3131bc7336d2a74fab08d13ffb6c4d0f160b20f5f3fdb |
|
MD5 | f5de035b0c97d1e6b2054acded3573d5 |
|
BLAKE2b-256 | 62f8ee77916222cfe08b75c7d0cead6e765d5f3b2f6a3333f29f949f324d8eba |
Close
Hashes for coppice-0.2.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ee76d036822f2da051212267fbc4bf3e5628b4fa5ce9b6a29d6d2d8bdcdef5b |
|
MD5 | 21f6e0a71b785292d63dc8ba67501f33 |
|
BLAKE2b-256 | 7b9149c1799ceeff005a7c3e6c7867b13c453e5b35d37844f43c12d47629c129 |
Close
Hashes for coppice-0.2.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd5ac8e3fa98fd4bcea95bcb2f0db0abac45af5361c52ff4a0e558f1255877bc |
|
MD5 | bcbb4017bf2d1a3a6ff85df37c7285d0 |
|
BLAKE2b-256 | b7b9e44cce0807f44cfd9e60c66fb365a9e5ae4563cfde4561dffa68c26f32dd |
Close
Hashes for coppice-0.2.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a02cd33c8a75e722a451e3e595a89cf53360a6df94faf4e4600981f2cdbacfd |
|
MD5 | 82577c2d3f15ec1ee2134fdffc6b7f58 |
|
BLAKE2b-256 | 4d32894cec677d37c7e7b9f85918206c203933aab3251ac6c0fc0d37feb28bec |
Close
Hashes for coppice-0.2.0-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b6c0c83cc96fabd5489ab104c177f5ce0addbe86ef9fd1a19e4f3abe61a056f |
|
MD5 | 9b10eefce3f59406d1d8d89d724b3e77 |
|
BLAKE2b-256 | c014a174b2eb2413dd09f066125bf250cf720bb4b72bb65edd469727547c89f9 |
Close
Hashes for coppice-0.2.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9baabd4577ed5126ec1a924af0675afdc92678105dfa5784a6fdc088aff2ef6e |
|
MD5 | 17db76e02bf9e76931876ba117420096 |
|
BLAKE2b-256 | 29b21088ce87fde02741a8c737dcd32215ef6599fe0c0874edda05c24552b089 |
Close
Hashes for coppice-0.2.0-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b5eeb2f0ee4c6cbcecb354f9fa456d5b1747fd92ce90a146099d3be72df6e0a |
|
MD5 | ffecf0c2edd4432eeb18f11c40c5dce3 |
|
BLAKE2b-256 | 8953b9cf6e822a1c8d6a2b19cf4dbad324c6d87ed069b2366a628ff60872d649 |