descriptionnone
homepage URLhttps://meta.wikimedia.org/wiki/ORES
repository URLhttps://github.com/wiki-ai/ores.git
ownerwiki-mirroring@kumul.pe.kr
last changeThu, 14 Dec 2023 10:55:14 +0000 (14 11:55 +0100)
last refreshThu, 25 Apr 2024 07:03:41 +0000 (25 09:03 +0200)
content tags
add:
README.md

Build Status Test coverage GitHub license PyPI version

ORES

⚠️ Warning: As of late 2023, the ORES infrastructure is being deprecated by the WMF Machine Learning team, please check https://wikitech.wikimedia.org/wiki/ORES for more info. While the code in this repository may still work, it is unmaintained, and as such may break at any time. Special consideration should also be given to machine learning models seeing drift in quality of predictions. The replacement for ORES and associated infrastructure is Lift Wing: https://wikitech.wikimedia.org/wiki/Machine_Learning/LiftWing Some Revscoring models from ORES run on the Lift Wing infrastructure, but they are otherwise unsupported (no new training or code updates). They can be downloaded from the links documented at: https://wikitech.wikimedia.org/wiki/Machine_Learning/LiftWing#Revscoring_models_(migrated_from_ORES) In the long term, some or all these models *may* be replaced by newer models specifically tailored to be run on modern ML infrastructure like Lift Wing. If you have any questions, contact the WMF Machine Learning team: https://wikitech.wikimedia.org/wiki/Machine_Learning

A webserver for hosting scoring services. For more information, see the ORES documentation on MediaWiki.

Installation

ORES is based on Python 3. Use pip to install ORES:

pip install ores (or pip3 install ores if your distribution defaults to Python 2)

If you're running with the default Redis configuration, you'll need to install a few more optional libraries,

pip install ores[redis]

Then you can easily run a test server by:

ores applications.wsgi

Use the -h argument to view its usage.

ores applications.wsgi -h

Visit these pages to see if your installation works,

http://localhost:8080/ http://localhost:8080/v2/scores/testwiki/revid/641962088?features=true

Running ores using docker composer

As an easy way to run ores for development, download and install docker-compose and then do:

docker-compose build && docker-compose up

ores will be accessible through localhost:8080

Running tests

For a native installation, make sure you installed dependencies for testing:

pip install -r test-requirements.txt

then run:

py.test .

For docker installation, run:

docker-compose exec ores-worker py.test /ores

Utilities

ORES provides several utilities:

In order to run any of them, run it through ./utility wrapper:

./utility test_api -h

For docker installations run it through one of containers:

docker-compose exec ores-worker /ores/utility test_api -h

Authors

shortlog
2023-12-14 Tobias Klausmann... Add deprecation warning with pointers to WMF's pages... master
2023-07-27 Kevin BaziraMerge pull request #364 from wikimedia/fix_deprecation_...
2023-07-27 kevinbaziraFix deprecation message alignment for scorerfix_deprecation_message_alignment
2023-07-27 Kevin BaziraMerge pull request #363 from wikimedia/ores_ui_deprecat...
2023-07-26 kevinbaziraAdd deprecation message to the ORES UIores_ui_deprecation_message
2022-07-05 Luca ToscanoMerge pull request #362 from elukey/master
2022-07-04 Luca ToscanoUpdate requirements.txt to avoid Github's security...
2022-06-16 Luca ToscanoMerge pull request #361 from elukey/master
2022-06-15 Luca Toscanoswagger: update references to what event type is needed...
2022-06-09 Luca ToscanoMerge pull request #360 from ethgra/T309862_requirement_txt
2022-06-08 ethgraMerge branch 'wikimedia:master' into T309862_requiremen...
2022-06-08 Ethan GrahamFix for flask dependencies using Prod versions
2022-06-07 Luca ToscanoMerge pull request #359 from ethgra/T279271_invalid_mod...
2022-06-05 Ethan GrahamFix for flask dependencies
2022-06-03 Ethan GrahamFix for handling invalid model_info parameter for score...
2022-03-03 Luca ToscanoMerge pull request #357 from elukey/master
...
tags
8 years ago 0.4.0
8 years ago v0.3.1
8 years ago v0.3.0
8 years ago v0.2.0
8 years ago v0.1.0
heads
4 months ago master
8 months ago fix_deprecation_message_alignment
9 months ago ores_ui_deprecation_message
3 years ago healthier_error_handling