Skip to content

Repository files navigation

rekcurd-client

Build StatusPyPI versioncodecovpypi supported versions

Rekcurd client is the project for integrating ML module. Any Rekcurd service is connectable. It can connect the Rekcurd service on Kubernetes.

Parent Project

https://github.com/rekcurd/community

Components

Installation

From source:

git clone --recursive https://github.com/rekcurd/python-client.git
cd python-client
python setup.py install

From PyPi directly:

pip install rekcurd_client

How to use

Example is available here.

Unittest

$ python -m unittest

Method definition

You need to use an appropriate method for your Rekcurd service. The methods are generated according to the input and output formats. V is the length of feature vector. M is the number of classes. If your algorithm is a binary classifier, you set M to 1. If your algorithm is a multi-class classifier, you set M to the number of classes.

methodinput: data
(required)
input: optionoutput: label
(required)
output: score
(required)
output: option
run_predict_string_stringstringstring (json)stringdoublestring (json)
run_predict_string_bytesstringstring (json)bytesdoublestring (json)
run_predict_string_arrintstringstring (json)int[M]double[M]string (json)
run_predict_string_arrfloatstringstring (json)double[M]double[M]string (json)
run_predict_string_arrstringstringstring (json)string[M]double[M]string (json)
run_predict_bytes_stringbytesstring (json)stringdoublestring (json)
run_predict_bytes_bytesbytesstring (json)bytesdoublestring (json)
run_predict_bytes_arrintbytesstring (json)int[M]double[M]string (json)
run_predict_bytes_arrfloatbytesstring (json)double[M]double[M]string (json)
run_predict_bytes_arrstringbytesstring (json)string[M]double[M]string (json)
run_predict_arrint_stringint[V]string (json)stringdoublestring (json)
run_predict_arrint_bytesint[V]string (json)bytesdoublestring (json)
run_predict_arrint_arrintint[V]string (json)int[M]double[M]string (json)
run_predict_arrint_arrfloatint[V]string (json)double[M]double[M]string (json)
run_predict_arrint_arrstringint[V]string (json)string[M]double[M]string (json)
run_predict_arrfloat_stringdouble[V]string (json)stringdoublestring (json)
run_predict_arrfloat_bytesdouble[V]string (json)bytesdoublestring (json)
run_predict_arrfloat_arrintdouble[V]string (json)int[M]double[M]string (json)
run_predict_arrfloat_arrfloatdouble[V]string (json)double[M]double[M]string (json)
run_predict_arrfloat_arrstringdouble[V]string (json)string[M]double[M]string (json)
run_predict_arrstring_stringstring[V]string (json)stringdoublestring (json)
run_predict_arrstring_bytesstring[V]string (json)bytesdoublestring (json)
run_predict_arrstring_arrintstring[V]string (json)int[M]double[M]string (json)
run_predict_arrstring_arrfloatstring[V]string (json)double[M]double[M]string (json)
run_predict_arrstring_arrstringstring[V]string (json)string[M]double[M]string (json)

The input "option" field needs to be a json format. Any style is Ok but we have some reserved fields below.

FieldTypeDescription
suppress_log_inputboolTrue: NOT print the input and output to the log message.
False (default): Print the input and output to the log message.

About

Project for integrating ML module. It can connect the Rekcurd service on Kubernetes.

Topics

Resources

Code of conduct

Contributing

Stars

7 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages