revscoring.datasources

This module implements a set of Datasource processors that represent the input data for extracting Feature values. Just like Feature and other :class:’~revscoring.Dependent’ processors, Datasource processors are tended to be solve()’d as dependencies. The provided datasources are split conceptually into a set of modules. Currently, there is one module: revision_oriented.

Meta-datasources

Meta-Features are classes that extend Datasource and implement common operations on Datasource like filter and map. See revscoring.datasources.meta for the full list.

Base classes

class revscoring.Datasource(*args, **kwargs)[source]

Represents a data source for generating features. Unlike features, datasources do not necessarily generate simple scalar values.

Parameters:
name : str

The name of the feature

process : func

A function that will generate a data value

depends_on : list`(`hashable)

An ordered list of dependencies that correspond to the *args of process

dump(f)

Writes serialized model information to a file.

classmethod load(f)

Reads serialized model information from a file.