Package: rekcurd-client
rekcurd-clientRekcurd client is the project for integrating ML module. Any Rekcurd service is connectable. It can connect the Rekcurd service on Kubernetes.Parent Projecthttps://github.com/rekcurd/communityComponentsRekcurd: Project for serving ML module.Rekcurd-dashboard: Project for managing ML model and deploying ML module.Rekcurd-client: Project for integrating ML module.InstallationFrom source:git clone --recursive https://github.com/rekcurd/python-client.git
cd python-client
python setup.py installFromPyPidirectly:pip install rekcurd_clientHow to useExample is availablehere.Unittest$ python -m unittestMethod definitionYou need to use an appropriate method for your Rekcurd service. The methods are generated according to the input and output formats.Vis the length of feature vector.Mis the number of classes. If your algorithm is a binary classifier, you setMto 1. If your algorithm is a multi-class classifier, you setMto the number of classes.methodinput: data(required)input: optionoutput: label(required)output: score(required)output: optionrun_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.FieldTypeDescriptionsuppress_log_inputboolTrue: NOT print the input and output to the log message.False (default): Print the input and output to the log message.