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
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
monument-0.1.1.tar.gz
(10.2 kB
view details)
Built Distribution
monument-0.1.1-py3-none-any.whl
(11.3 kB
view details)
File details
Details for the file monument-0.1.1.tar.gz
.
File metadata
- Download URL: monument-0.1.1.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd5efc35cdf429ed3f2f058ee1bae1d996147b7643dab35e351aabbcf7409ba6 |
|
MD5 | c2bb77c354da59243e6919cb03c9ffb2 |
|
BLAKE2b-256 | 60b61ae5f6ab427ea7d411c1982cc0cd76e01e0b5940cca56eacbc3e66097dd6 |
File details
Details for the file monument-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: monument-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20671d7c2c57ada810186de24b1278a047be5fb1a37c20e828497ec1a197989e |
|
MD5 | c0f862b591f104ee65d6bbf9456f07b4 |
|
BLAKE2b-256 | 5e1509f658849b6761a98b95eb597206132fdfb7e9dddd4e8e425cd2161f06ec |