The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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.
Our LiftWing images on the Wikimedia docker registry are created using blubber. Blubber adds air-tight security restrictions like not being able to easily download the model binary or install software tools from the internet like text/code editors. Although these restrictions are good for the production environment, I find that they are a challenge in the dev environment since I like to have full autonomy and be able to tinker and test my ideas to make sure they work the best way possible. So to avoid the restrictions, on steps 2 & 3 above, I pull a docker image that I created without the blubber restrictions.
Pull and run editquality docker image that doesn't have blubber restrictions