Skip to main content

Package for Smoketrees model zoo

Project description

forest-utils - A utility tool for SmokeTrees Model Zoo

PyPI version Generic badge

This package will be useful for carrying out all the utilities of the SmokeTrees Model Zoo lovingly called SmokeTrees Forest.`

Features

  • Pull down HDF5 (.h5) models from the zoo and load with keras
  • Pull down SavedModel (.pb) models from the zoo and load with keras
  • Pull down Checkpoints (.ckpt) models from the zoo and load with keras
  • Pull down the spacy model from the zoo and load them into an nlp pipeline
  • Pull down tokenizers and models in accordance with huggingface model architectures and reuse them
  • Pull down datasets so as to use them in your own projects

Steps to install package from PyPI

   pip install forest-utils

Steps to install the package from source code

  • Clone the repo by the following command
        git clone https://github.com/smoke-trees/forest-utils.git
    
  • Change the directory to the package
        cd forest-utils
    
  • Execute the following command
        pip install -e .
    

Example Usage

  • Load Model using Tensorflow
    from forest_utils import export_keras

    model = export_keras.ModelFromH5().model
  • Load Dataset
    from forest_utils import datasets

    tweets = datasets.Dataset().get_emo_tweets()

After pulling down the model use it for predictions and other evalutaion functionalities.

See SmokeTrees ModelZoo for more usage examples

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

forest-utils-1.0.2.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

forest_utils-1.0.2-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file forest-utils-1.0.2.tar.gz.

File metadata

  • Download URL: forest-utils-1.0.2.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.8.6

File hashes

Hashes for forest-utils-1.0.2.tar.gz
Algorithm Hash digest
SHA256 9eaec5a50ae4c55f24604bbc98148d873d9dd384e2457ec9ee7a557524e422c8
MD5 74b797592b8d65a30adc3a4026bde45c
BLAKE2b-256 c6f0dbf688e984fa544a1551479622bfe5ba6c0061d06d5195cdf285925c1964

See more details on using hashes here.

File details

Details for the file forest_utils-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: forest_utils-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.8.6

File hashes

Hashes for forest_utils-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 52b6a18311615f931b307bbf093a97467f646acaa52a45386bbc86daa97349c1
MD5 347fd05f7663992e2d2d6d1684fa4e66
BLAKE2b-256 0674185365d1910bfe2249b6232bed68c88d5ab5207bbb4ca039faf9dba9d7a4

See more details on using hashes here.

Supported by

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