Skip to content

Latest commit

 

History

History
40 lines (33 loc) · 1.85 KB

README.md

File metadata and controls

40 lines (33 loc) · 1.85 KB

profiles_mlcorelib

profiles_mlcorelib is a Python package that provides PyNative models which can be used in Profiles projects.

Installation

You can install the package from PyPi using pip

pip3 install profiles_mlcorelib

Contribution

Updating an Existing Model

  1. Make Code Changes:
  • Update the desired model with your changes.
  • Ensure any new or updated dependencies are reflected in setup.py.
  1. Install the Updated Package:
  • Navigate to the package directory and install it locally to reflect your changes:
    cd src/predictions
    pip3 install .
  1. Compile/run the project
  • Execute the project that uses the model being updated to verify your changes.

Creating a New Model

  1. Implement the New Model:
  • Implement the PyNative model interface in py_native/<new_model>.py.
  • Ensure any new or updated dependencies are reflected in setup.py.
  • Register this model type by adding it in register_extensions method. This is required for pb to be aware of this new model.
  1. Install the Updated Package:
  • Navigate to the package directory and install it locally to reflect your changes:
    cd src/predictions
    pip3 install .
  1. Create a Sample Project:
  • Add a new project in the samples directory that utilizes the new model type.