ores.wsgi package¶
Submodules¶
ores.wsgi.routes module¶
ores.wsgi.preprocessors module¶
ores.wsgi.responses module¶
ores.wsgi.server module¶
ores.wsgi.util module¶
-
ores.wsgi.util.
build_event_set
(event)[source]¶ Turn an EventStream event into a set of event types that ORES uses internally.
-
ores.wsgi.util.
build_precache_map
(config)[source]¶ Build a mapping of contexts and models from the configuration
-
ores.wsgi.util.
build_score_request
(scoring_system, request, context_name=None, rev_id=None, model_name=None)[source]¶ Build an
ores.score_request.ScoreRequest
from information contained in a request.- Parameters
- scoring_system
ores.scoring_systems.ScoringSystem
A scoring system to build request with
- request
flask.Request
A web request to extract information from
- context_namestr
The name of the context to perform scoring
- rev_idint
The revision ID to score. Note that multiple IDs can be provided in request.args
- model_name = str
The name of the model to score. Note that multiple models can be provided in request.args
- scoring_system