Skip to main content

Python Interface to MonumentAI Model Serving

Project description

This is a python interface to Monument model serving.

Requirements

  • Monument gui version 1.14 or later

  • python 3 with numpy (tested with python 3.8)

How to Use

Import

from monument import monument

Initialize

Initialize with the installation directory of Monument app on your machine.

On Windows or Mac, the directory can be omitted,

monument.init("")

On Linux, it might be found in your home directory.

from os.path import expanduser
home = expanduser("~").replace("\\","/")
monument.init(home + "/MonumentDev")

Serve

Specify the location of your maifile (.mai), serving data file (.csv), and algo name (Algo(Column)).

The algo name must match the model in the maifile.

maifile = "tests/data/insure.mai"
csvfile = "tests/data/insure2.csv"
algo = "Ent-Boost(AIG)"
res = monument.serve(maifile,csvfile,algo)
print(res)

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

monument-0.1.1.tar.gz (10.2 kB view hashes)

Uploaded Source

Built Distribution

monument-0.1.1-py3-none-any.whl (11.3 kB view hashes)

Uploaded Python 3

Supported by

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