Mandelag / catboost-serving

Learning seastar (to later serve catboost model)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a WIP

Currently only supported for linux distribution.

Create the model file

# assuming you have python3 ready with 'pip install catboost'
python3 ranking_model_train.py

Test if the model working

python3 ranking_model_test.py

They're based on example here here

Build the go code

# of course you need to install golang, for me I use go1.19
go build .

Then run:

export LD_LIBRARY_PATH=lib
LD_LIBRARY_PATH=lib ./catboost-serving -m model-ranking

or

export LD_LIBRARY_PATH=lib
./catboost-serving -m model-ranking

LD_LIBRARY_PATH so the linker know how to get the catboost static library.

The official distribution is here Don't forgeet to verify their checksum!

About

Learning seastar (to later serve catboost model)


Languages

Language:C 66.7%Language:Go 20.2%Language:C++ 9.1%Language:Python 4.0%