How It Works
You can upload your custom model via the MindsDB editor by clickingAdd
and Upload custom model
, like this:
-
The Python file stores an implementation of your model. It should contain the class with the implementation for the
train
andpredict
methods. Here is the sample format:
Example
Example
-
The optional requirements file, or
requirements.txt
, stores all dependencies along with their versions. Here is the sample format:
Example
Example
Example
We upload the custom model, as below:model.py
file that stores an implementation of the model and the requirements.txt
file that stores all the dependencies.
Once the model is uploaded, it becomes an ML engine within MindsDB. Now we use this custom_model_engine
to create a model as follows:
Check out the BYOM handler folder to see the implementation details.