Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configures dev_server utility with rule-based scorer model. #107

Merged
merged 1 commit into from Dec 9, 2015

Conversation

halfak
Copy link
Member

@halfak halfak commented Dec 9, 2015

This will be useful in testing.

RevIdScorer returns the last two digits in a rev_id as a prediction (378428499 = 99% & True).

super().__init__([last_two_in_rev_id], version=version)

def score(self, feature_values):
probability = feature_values[0] / 100
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one of them should be float otherwise it gives zero ( 1 / 10 = 0 but 1/10.0 = 0.1)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only true in crazy python 2 land. Join the python 3 revolution where divisions don't silently do stupid things. :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:D

Ladsgroup added a commit that referenced this pull request Dec 9, 2015
Configures dev_server utility with rule-based scorer model.
@Ladsgroup Ladsgroup merged commit ddf2271 into master Dec 9, 2015
@he7d3r
Copy link
Contributor

he7d3r commented Dec 10, 2015

Could you elaborate on how this will be used?

@halfak
Copy link
Member Author

halfak commented Dec 10, 2015

Yes! So, we're working on testing the new ORES extension, but one problem we have is setting up a scoring model that can work against the vagrant wiki or testwiki or whatever! It would be a pain if we set up a machine learning model specifically for test wikis. So instead, we set up a rule-based scorer model that requires no assets to function and returns a deterministic prediction. This will help us test systems that use ORES independent of the models the useful models that ORES hosts.

In the short term, we want to get the testwiki ORES server included as a role for MediaWiki vagrant and to get a testwiki model loaded onto ores.wmflabs.org for testing. Both of those will use this scorer model.

@halfak
Copy link
Member Author

halfak commented Dec 10, 2015

Relevant tasks:

@he7d3r
Copy link
Contributor

he7d3r commented Dec 12, 2015

Thanks!

@halfak halfak deleted the test_server_model branch December 12, 2015 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants