Skip to content

Commit

Permalink
Update dummy_model.md
Browse files Browse the repository at this point in the history
  • Loading branch information
niklub authored Aug 10, 2020
1 parent 1b6294c commit 4394b0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/tutorials/dummy_model.md
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ If you create ML backend by using Label Studio's ML SDK, you have to follow the
- created model class should be inherited from `label_studio.ml.LabelStudioMLBase`
- 2 methods should be overrided:
- `predict()` takes [input tasks](/guide/tasks.html#Basic-format) and outputs [predictions](/guide/export.html#predictions) in a Label Studio format
- `train()` receives [completions](/guide/export.html#Basic-format) iterable and returns dictionary with created links and resources. This dictionary will be later used for model loading via `self.train_output` field.
- `fit()` receives [completions](/guide/export.html#Basic-format) iterable and returns dictionary with created links and resources. This dictionary will be later used for model loading via `self.train_output` field.

Create a file `model.py` with the following content:

0 comments on commit 4394b0a

Please sign in to comment.