This is a python interface to Monument model serving.
-
Monument gui version 1.14 or later
-
python 3 with numpy (tested with python 3.8)
from monument import monument
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")
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)