Machine Learning/LiftWing/ML-Sandbox/Usage-Examples
Examples on how to use the WMF ML-Sandbox environment to develop and test your isvc code.
Example 1: Work With and Test The model.py File |
When moving ORES models to LiftWing, model.py relies on revscoring to load the model, extract features, handle errors and return a prediction. To edit and test the model.py file we need an environment where all revscoring dependencies have been installed. For example, if we want to work with the editquality model.py, one of the easiest ways would be to use the editquality docker image found on the Wikimedia docker registry. The steps below are what I would take to work with the editquality model.py:
Hacks I've found helpful:
|