classtree


Nameclasstree JSON
Version 0.0.2 PyPI version JSON
download
home_page
SummaryA toolkit for hierarchical classification
upload_time2024-01-10 03:46:41
maintainer
docs_urlNone
author
requires_python>=3.9
licenseCLASSTREE SOFTWARE LICENCE AGREEMENT ACADEMIC OR NOT-FOR-PROFIT ORGANISATION - NON-COMMERCIAL INTERNAL RESEARCH USE ONLY BY USING OR DOWNLOADING THE SOFTWARE, YOU ARE AGREEING TO THE TERMS AND CONDITIONS OF THIS LICENCE AGREEMENT (“AGREEMENT”). 1. PERMITTED LICENSEE: The Licence is intended for use by, and is granted to, academic institutions or not-for-profit organisations only and not-for-profit entities or individuals. By downloading the Software, you are agreeing to the terms of this Software Licence Agreement and, you confirm that you are or act on behalf of an academic institution or not-for-profit organisation (hereinafter referred to as “Licensee” or “You”, "Your"). 2. LICENSOR: The Software is provided by The University of Adelaide (hereinafter referred to as “Licensor”). All rights not specifically granted to You in this Agreement are reserved for Licensor. 3. SOFTWARE: The Software consists of the Source Code and/or Object Code to which this Agreement is applied. Object Code means software code, substantially or entirely in binary form, which is intended to be directly executable by a computer after suitable processing but without the intervening steps of compilation or assembly. Source Code means software code, other than Object Code, and related source code level system documentation, comments and procedural code, such as job control language, which may be printed out or displayed in human readable form. Aside from the actual copy of all or any portion of Software for program routines made accessible to Licensee by Licensor pursuant to this Agreement, Software also includes any backups, updates, and/or merged copies permitted hereunder or subsequently supplied by Licensor, any file structures, programming instructions, user interfaces and screen formats and sequences as well as any and all documentation and instructions related to it, and all or any derivatives and/or modifications created or made by You to any of the items specified above. 4. PERMITTED USE: The Software may be used for Your own non-commercial internal research purposes in Your capacity as an academic institution or not-for-profit organisations only, and not for the purposes of any research or in connection with any project involving human or animal subjects or hazardous subject matter (“Permitted Purpose”). You must ensure that Your use of the Software complies with applicable laws and regulations, and any applicable codes governing responsible conduct of research, and does not infringe any person's rights. 5. OWNERSHIP AND LICENCE: Licensor hereby grants to Licensee a non-exclusive, non-transferable licence to use the Software for the Permitted Purpose, without the right to sublicence, pursuant to the terms and conditions of this Agreement (“Licence”). You may not sell, rent, lease, sublicence, lend, disseminate, publish, communicate, time-share or transfer, in whole or in part, or provide third parties access to or services using prior or present versions (or any parts thereof) of the Software. 6. CONFIDENTIALITY: Licensee acknowledges that the Software is proprietary to Licensor, and as such, Licensee agrees to receive all such materials in confidence. Licensee agrees to use the Software only for its own internal non-commercial research purposes and to limit access to persons who have a need to know and who are bound by confidentiality obligations. Licensee will use reasonable effort to protect the Software from unauthorised use, access, reproduction, distribution, or publication. Licensee may make that number of copies of the Software necessary for the Permitted Purpose and as required by law at a single site within its organisation and must keep a full and accurate record of all such copies. 7. COPYRIGHT: The Software is owned by Licensor and is protected by applicable laws and international treaties and/or conventions. Licensor retains exclusive ownership of any copy of the Software. 8. DERIVATIVES: You may create derivatives of or make modifications to the Software, however, you may only use such derivatives and modifications for the Permitted Purpose. You understand and agree that Licensor is not obligated to implement any suggestions and/or feedback you might provide regarding the Software, but to the extent Licensor does so, you are not entitled to any compensation related thereto. 9. USE OF NAME: Licensee has not been granted any trademark Licence as part of this Agreement and may not use the name or logo of the Licensor or any renditions thereof without the prior written permission of Licensor. 10. ASSIGNMENT: You must not assign this Agreement or your rights hereunder without the prior written consent of Licensor. Any attempted assignment without such consent shall be null and void. 11. TERM: The term of the Licence granted by this Agreement is from Licensee's acceptance of this Agreement by downloading the Software or by using the Software until terminated as provided below. The Agreement automatically terminates without notice if you fail to comply with any provision of this Agreement. Licensee may terminate this Agreement by ceasing to use the Software. Upon any termination of this Agreement, Licensee will delete any and all copies of the Software. You agree that all provisions which operate to protect the proprietary rights of Licensor shall remain in force should breach occur and that the obligation of confidentiality described in this Agreement is binding in perpetuity and, as such, survives the term of the Agreement. 12. FEE: There is no fee due to Licensor for Licensee's use of the Software in accordance with this Agreement. 13. DISCLAIMER OF WARRANTIES: To the extent permitted under applicable law, the Software is provided "as-is" without warranty of any kind including any warranties of performance or merchantability or fitness for a particular use or purpose or of non-infringement and Licensee bears all risk relating to quality and performance of the Software and related materials. 14. SUPPORT AND MAINTENANCE: Licensor does not provide support or training as part of this Agreement. 15. EXCLUSIVE REMEDY AND LIMITATION OF LIABILITY: To the maximum extent permitted under applicable law, Licensor shall not be liable for direct, indirect, special, incidental, or consequential damages or lost profits related to Licensee's use of and/or inability to use the Software, even if Licensor is advised of the possibility of such damage. To the extent permitted under applicable law, Licensor's liability to the Licensee in respect of claims, damages or loss related to Licensee's use of and/or inability to use the Software or otherwise in connection with this Agreement is limited to AUD 1.00. 16. EXPORT REGULATION: Licensee agrees to comply with any and all applicable Trade Control Laws and economic sanctions laws, rules, and regulations in the conduct of the Collaboration under this Agreement. Trade Control Laws means Australian Government Customs Act 1901 (Cth) and Regulation 13E for items identified on the Defence and Strategic Goods List (DSGL), the Defence Trade Controls Act 2012 (Cth) (DTCA), and the Weapons of Mass Destruction (Prevention of Proliferation) Act 1995 (Cth); the U.S. Government the International Traffic in Arms Regulations (“ITAR”) (22 C.F.R. Parts 120-130), Export Administration Regulations (“EAR”) 15 CFR Parts 730-774, and Foreign Assets Control Regulations (31 C.F.R. Parts 500-598); the European Union (e.g., controls on exports of dual-use items and technology implemented pursuant to Council Regulation (EC) No. 428/2009), and other applicable government authorities and any other applicable legislation, rules and regulations. 17. SEVERABILITY: If any provision(s) of this Agreement shall be held to be invalid, illegal, or unenforceable by a court or other tribunal of competent jurisdiction, the validity, legality and enforceability of the remaining provisions shall not in any way be affected or impaired thereby. 18. NO IMPLIED WAIVERS: No failure or delay by Licensor in enforcing any right or remedy under this Agreement shall be construed as a waiver of any future or other exercise of such right or remedy by Licensor. 19. GOVERNING LAW: This Agreement shall be construed and enforced in accordance with the laws in force in South Australia, without reference to conflict of laws principles. You consent to the non-exclusive jurisdiction of the courts of South Australia. 20. ENTIRE AGREEMENT AND AMENDMENTS: This Agreement constitutes the sole and entire agreement between Licensee and Licensor as to the matter set forth herein and supersedes any previous agreements, understandings, and arrangements between the parties relating hereto.
keywords classification hierarchical
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Classtree

![](https://img.shields.io/github/actions/workflow/status/aiml-au/classtree/publish.yml)
![](https://img.shields.io/pypi/v/classtree)

Classtree is a hierarchical classifier for images or text.

```shell
pip install classtree
```

The fastest way to use Classtree is to call the CLI on a folder of images or text files.

```shell
train_data/
|- animals/
    |- mammals/
       |- marsupials/
          |- koala/
             |- image001.jpg
             |- image002.jpg
             |- ...
          |- ...
    |- reptiles/
       |- ...
    |- ...
|- ...
```

```shell
classtree train images --model animals --dir train_data/animals
```

or

```shell
classtree train text --model animals --dir train_data/animals
```

And then use your model with the predict command.

```shell
classtree predict --model animals new_data/image304.jpg
> birds/raptors/eagle
```

## Pre-trained Models

You can download a pre-trained model using the download command.

```shell
classtree download model dbpedia
```

Or download a pre-prepared dataset.

```shell
classtree download images inaturalist21-mini
classtree download text dbpedia
```

If you want to fine-tune an existing model, you can use the `--from` flag during training with any downloaded model.

```shell
classtree train text --model animals --from dbpedia --dir train_data/animals
```


### Available Models

| Task                 | Name               | Size | Dataset                | Notes                                        |
|----------------------|--------------------|------|------------------------|----------------------------------------------|
| Image Classification | inaturalist21-mini | M    | inaturalist21-mini     | Non-commercial research/educational use only |
| Text Classification  | dbpedia            | M    | dbpedia                |                                              |

### Available Datasets

| Type  | Name               | Dataset                                                                            | Notes                                        |
|-------|--------------------|------------------------------------------------------------------------------------|----------------------------------------------|
| Image | inaturalist21-mini | [iNaturalist 2021 (Mini)](https://github.com/visipedia/inat_comp/tree/master/2021) | Non-commercial research/educational use only |
| Text  | dbpedia            | [DBPedia](https://www.kaggle.com/datasets/danofer/dbpedia-classes)                 | CC0: Public Domain                           |

## Evaluation

You can test your model on a hold-out dataset using the `test` command.

```shell
classtree test --model animals --dir=test_data/animals
```

## Licensing

Classtree is available for non-commercial internal research use by academic institutions or not-for-profit organisations only, free of charge. Please, see the [license](./LICENSE.txt) for further details. To the extent permitted by applicable law, your use is at your own risk and our liability is limited. Interested in a commercial license? For commercial queries, please email <aimlshop@adelaide.edu.au> with subject line “Classtree Commercial License”. 

This is an [AIML Shop](https://shop.aiml.team) project.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "classtree",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "classification,hierarchical",
    "author": "",
    "author_email": "",
    "download_url": "",
    "platform": null,
    "description": "# Classtree\n\n![](https://img.shields.io/github/actions/workflow/status/aiml-au/classtree/publish.yml)\n![](https://img.shields.io/pypi/v/classtree)\n\nClasstree is a hierarchical classifier for images or text.\n\n```shell\npip install classtree\n```\n\nThe fastest way to use Classtree is to call the CLI on a folder of images or text files.\n\n```shell\ntrain_data/\n|- animals/\n    |- mammals/\n       |- marsupials/\n          |- koala/\n             |- image001.jpg\n             |- image002.jpg\n             |- ...\n          |- ...\n    |- reptiles/\n       |- ...\n    |- ...\n|- ...\n```\n\n```shell\nclasstree train images --model animals --dir train_data/animals\n```\n\nor\n\n```shell\nclasstree train text --model animals --dir train_data/animals\n```\n\nAnd then use your model with the predict command.\n\n```shell\nclasstree predict --model animals new_data/image304.jpg\n> birds/raptors/eagle\n```\n\n## Pre-trained Models\n\nYou can download a pre-trained model using the download command.\n\n```shell\nclasstree download model dbpedia\n```\n\nOr download a pre-prepared dataset.\n\n```shell\nclasstree download images inaturalist21-mini\nclasstree download text dbpedia\n```\n\nIf you want to fine-tune an existing model, you can use the `--from` flag during training with any downloaded model.\n\n```shell\nclasstree train text --model animals --from dbpedia --dir train_data/animals\n```\n\n\n### Available Models\n\n| Task                 | Name               | Size | Dataset                | Notes                                        |\n|----------------------|--------------------|------|------------------------|----------------------------------------------|\n| Image Classification | inaturalist21-mini | M    | inaturalist21-mini     | Non-commercial research/educational use only |\n| Text Classification  | dbpedia            | M    | dbpedia                |                                              |\n\n### Available Datasets\n\n| Type  | Name               | Dataset                                                                            | Notes                                        |\n|-------|--------------------|------------------------------------------------------------------------------------|----------------------------------------------|\n| Image | inaturalist21-mini | [iNaturalist 2021 (Mini)](https://github.com/visipedia/inat_comp/tree/master/2021) | Non-commercial research/educational use only |\n| Text  | dbpedia            | [DBPedia](https://www.kaggle.com/datasets/danofer/dbpedia-classes)                 | CC0: Public Domain                           |\n\n## Evaluation\n\nYou can test your model on a hold-out dataset using the `test` command.\n\n```shell\nclasstree test --model animals --dir=test_data/animals\n```\n\n## Licensing\n\nClasstree is available for non-commercial internal research use by academic institutions or not-for-profit organisations only, free of charge. Please, see the [license](./LICENSE.txt) for further details. To the extent permitted by applicable law, your use is at your own risk and our liability is limited. Interested in a commercial license? For commercial queries, please email <aimlshop@adelaide.edu.au> with subject line \u201cClasstree Commercial License\u201d. \n\nThis is an [AIML Shop](https://shop.aiml.team) project.\n",
    "bugtrack_url": null,
    "license": "CLASSTREE SOFTWARE LICENCE AGREEMENT ACADEMIC OR NOT-FOR-PROFIT ORGANISATION - NON-COMMERCIAL INTERNAL RESEARCH USE ONLY BY USING OR DOWNLOADING THE SOFTWARE, YOU ARE AGREEING TO THE TERMS AND CONDITIONS OF THIS LICENCE AGREEMENT (\u201cAGREEMENT\u201d).  1. PERMITTED LICENSEE: The Licence is intended for use by, and is granted to, academic institutions or not-for-profit organisations only and not-for-profit entities or individuals. By downloading the Software, you are agreeing to the terms of this Software Licence Agreement and, you confirm that you are or act on behalf of an academic institution or not-for-profit organisation (hereinafter referred to as \u201cLicensee\u201d or \u201cYou\u201d, \"Your\").  2. LICENSOR: The Software is provided by The University of Adelaide (hereinafter referred to as \u201cLicensor\u201d).  All rights not specifically granted to You in this Agreement are reserved for Licensor.  3. SOFTWARE: The Software consists of the Source Code and/or Object Code to which this Agreement is applied. Object Code means software code, substantially or entirely in binary form, which is intended to be directly executable by a computer after suitable processing but without the intervening steps of compilation or assembly. Source Code means software code, other than Object Code, and related source code level system documentation, comments and procedural code, such as job control language, which may be printed out or displayed in human readable form. Aside from the actual copy of all or any portion of Software for program routines made accessible to Licensee by Licensor pursuant to this Agreement, Software also includes any backups, updates, and/or merged copies permitted hereunder or subsequently supplied by Licensor, any file structures, programming instructions, user interfaces and screen formats and sequences as well as any and all documentation and instructions related to it, and all or any derivatives and/or modifications created or made by You to any of the items specified above.  4. PERMITTED USE: The Software may be used for Your own non-commercial internal research purposes in Your capacity as an academic institution or not-for-profit organisations only, and not for the purposes of any research or in connection with any project involving human or animal subjects or hazardous subject matter (\u201cPermitted Purpose\u201d).  You must ensure that Your use of the Software complies with applicable laws and regulations, and any applicable codes governing responsible conduct of research, and does not infringe any person's rights.  5. OWNERSHIP AND LICENCE: Licensor hereby grants to Licensee a non-exclusive, non-transferable licence to use the Software for the Permitted Purpose, without the right to sublicence, pursuant to the terms and conditions of this Agreement (\u201cLicence\u201d). You may not sell, rent, lease, sublicence, lend, disseminate, publish, communicate, time-share or transfer, in whole or in part, or provide third parties access to or services using prior or present versions (or any parts thereof) of the Software.  6. CONFIDENTIALITY: Licensee acknowledges that the Software is proprietary to Licensor, and as such, Licensee agrees to receive all such materials in confidence.  Licensee agrees to use the Software only for its own internal non-commercial research purposes and to limit access to persons who have a need to know and who are bound by confidentiality obligations. Licensee will use reasonable effort to protect the Software from unauthorised use, access, reproduction, distribution, or publication. Licensee may make that number of copies of the Software necessary for the Permitted Purpose and as required by law at a single site within its organisation and must keep a full and accurate record of all such copies.  7. COPYRIGHT: The Software is owned by Licensor and is protected by applicable laws and international treaties and/or conventions. Licensor retains exclusive ownership of any copy of the Software.  8. DERIVATIVES: You may create derivatives of or make modifications to the Software, however, you may only use such derivatives and modifications for the Permitted Purpose. You understand and agree that Licensor is not obligated to implement any suggestions and/or feedback you might provide regarding the Software, but to the extent Licensor does so, you are not entitled to any compensation related thereto.  9. USE OF NAME: Licensee has not been granted any trademark Licence as part of this Agreement and may not use the name or logo of the Licensor or any renditions thereof without the prior written permission of Licensor.  10. ASSIGNMENT: You must not assign this Agreement or your rights hereunder without the prior written consent of Licensor. Any attempted assignment without such consent shall be null and void.  11. TERM: The term of the Licence granted by this Agreement is from Licensee's acceptance of this Agreement by downloading the Software or by using the Software until terminated as provided below.  The Agreement automatically terminates without notice if you fail to comply with any provision of this Agreement.  Licensee may terminate this Agreement by ceasing to use the Software.  Upon any termination of this Agreement, Licensee will delete any and all copies of the Software. You agree that all provisions which operate to protect the proprietary rights of Licensor shall remain in force should breach occur and that the obligation of confidentiality described in this Agreement is binding in perpetuity and, as such, survives the term of the Agreement.  12. FEE: There is no fee due to Licensor for Licensee's use of the Software in accordance with this Agreement.  13. DISCLAIMER OF WARRANTIES: To the extent permitted under applicable law, the Software is provided \"as-is\" without warranty of any kind including any warranties of performance or merchantability or fitness for a particular use or purpose or of non-infringement and Licensee bears all risk relating to quality and performance of the Software and related materials.  14. SUPPORT AND MAINTENANCE: Licensor does not provide support or training as part of this Agreement.  15. EXCLUSIVE REMEDY AND LIMITATION OF LIABILITY: To the maximum extent permitted under applicable law, Licensor shall not be liable for direct, indirect, special, incidental, or consequential damages or lost profits related to Licensee's use of and/or inability to use the Software, even if Licensor is advised of the possibility of such damage. To the extent permitted under applicable law, Licensor's liability to the Licensee in respect of claims, damages or loss related to Licensee's use of and/or inability to use the Software or otherwise in connection with this Agreement is limited to AUD 1.00.  16. EXPORT REGULATION: Licensee agrees to comply with any and all applicable Trade Control Laws and economic sanctions laws, rules, and regulations in the conduct of the Collaboration under this Agreement. Trade Control Laws means Australian Government Customs Act 1901 (Cth) and Regulation 13E for items identified on the Defence and Strategic Goods List (DSGL), the Defence Trade Controls Act 2012 (Cth) (DTCA), and the Weapons of Mass Destruction (Prevention of Proliferation) Act 1995 (Cth); the U.S. Government the International Traffic in Arms Regulations (\u201cITAR\u201d) (22 C.F.R. Parts 120-130), Export Administration Regulations (\u201cEAR\u201d) 15 CFR Parts 730-774, and Foreign Assets Control Regulations (31 C.F.R. Parts 500-598); the European Union (e.g., controls on exports of dual-use items and technology implemented pursuant to Council Regulation (EC) No. 428/2009), and other applicable government authorities and any other applicable legislation, rules and regulations.  17. SEVERABILITY: If any provision(s) of this Agreement shall be held to be invalid, illegal, or unenforceable by a court or other tribunal of competent jurisdiction, the validity, legality and enforceability of the remaining provisions shall not in any way be affected or impaired thereby.  18. NO IMPLIED WAIVERS: No failure or delay by Licensor in enforcing any right or remedy under this Agreement shall be construed as a waiver of any future or other exercise of such right or remedy by Licensor.  19. GOVERNING LAW: This Agreement shall be construed and enforced in accordance with the laws in force in South Australia, without reference to conflict of laws principles.  You consent to the non-exclusive jurisdiction of the courts of South Australia.  20. ENTIRE AGREEMENT AND AMENDMENTS: This Agreement constitutes the sole and entire agreement between Licensee and Licensor as to the matter set forth herein and supersedes any previous agreements, understandings, and arrangements between the parties relating hereto. ",
    "summary": "A toolkit for hierarchical classification",
    "version": "0.0.2",
    "project_urls": null,
    "split_keywords": [
        "classification",
        "hierarchical"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b96cc963ca5cd3b03ed3c32a4639e329e39315f9fe44a49bffb6df2d0e059ba2",
                "md5": "813be5eedc9573b903f7b36072f728ab",
                "sha256": "d872d0022b4416d1aab8ecfaed5abbf32afc4c0e0a5be727e095f0a16f085672"
            },
            "downloads": -1,
            "filename": "classtree-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "813be5eedc9573b903f7b36072f728ab",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 29962,
            "upload_time": "2024-01-10T03:46:41",
            "upload_time_iso_8601": "2024-01-10T03:46:41.390255Z",
            "url": "https://files.pythonhosted.org/packages/b9/6c/c963ca5cd3b03ed3c32a4639e329e39315f9fe44a49bffb6df2d0e059ba2/classtree-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-10 03:46:41",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "classtree"
}
        
Elapsed time: 0.16058s