This repository contains the example and sample files to deploy a Binary Classification Model on Katonic Platform.
Note : You need to fork the repository to deploy it on Katonic Platform
-
launch.py
: This file consists ofloadmodel
,preprocessing
andpredict
functions. The first function helps to fetch the model. The second function is optional,if you are performing any kind of preprocessing on the data before prediction please add all the necessary steps into it and return the formatted input, else you can just returnFalse
if no processing is required. In the third function write down the code for prediction and return the results in the data structure supported by API response. -
schema.py
: Define your schema on how you should pass your input data in predict function. -
requirements.txt
: Define the required packages along with specific versions this file.
{
"data":[[1,3,0,0,5,0,0,0,0,0]]
}
{
"predicted_label":[1,1,1,1,0,0,0,0,1,0,1,0],
"true_label": [1,1,0,1,0,1,0,0,1,0,1,0]
}