Thank you for the answer.
I came here again because I found another functionality and I don't find documentation anywhere.
Looking for a solution, I came with another quesiton, so I have two questions: (maybe I am more worried about the second question, because I think I would not depend more on any documentation in case I can inspect the code by myself)
Question 1:
Inspecting the recipe terms.teach
I found this import:
from prodigy.components.sorters import Probability
I visited the sorters documentation. There is explained the general API of sorters and three sorters functions are specified:
- prefer_uncertain
- prefer_high_scores
- prefer_low_scores
But nothing about the class Probablity.
Question 2:
In order to understand its functionality, I tried to inspect the code by myself.
Inspecting the code I realized that all functions/classes are empty. I've never seen this before. I think maybe it is something related to cython...or the way you deploy the package in order to keep it secret....I don't know...This is an example:
class Probability(object):
""" Given a stream of (p, item) pairs, ask questions with probability 1-p. """
def __init__(self, stream): # real signature unknown; restored from __doc__
""" Probability.__init__(self, stream) """
pass
def __iter__(self): # real signature unknown; restored from __doc__
""" Probability.__iter__(self) """
pass
__weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""list of weak references to the object (if defined)"""
or
def get_uncertainty(score, bias=0.0): # real signature unknown; restored from __doc__
""" get_uncertainty(score, bias=0.0) """
pass
def prefer_high_scores(stream, bias=0.0): # real signature unknown; restored from __doc__
""" prefer_high_scores(stream, bias=0.0) """
pass
def prefer_low_scores(stream, bias=0.0): # real signature unknown; restored from __doc__
""" prefer_low_scores(stream, bias=0.0) """
pass
def prefer_uncertain(stream, bias=0.0, algorithm=None): # real signature unknown; restored from __doc__
""" prefer_uncertain(stream, bias=0.0, algorithm=UNSET) """
pass
In case there is no way to see the code, it is a pitty for me, as I would like to go through the code in order to understand all things in detail.
Greeting
Sergio M.