Module ImportFrom alias alias Import alias Import alias Import alias identifier ImportFrom alias alias Import alias Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr AttributeLoad NameLoad attr Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr BinOpMult Num Call NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListLoad Assign NameStore ListLoad For NameStore NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Num handlers ExceptHandler type NameLoad body Pass For NameStore NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Num handlers ExceptHandler type NameLoad body Pass Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body With Call NameLoad NameLoad NameStore body Return Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad NameLoad NameStore body Return Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call NameLoad SubscriptLoad NameLoad Index Num Str body Assign NameStore ListLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad ListLoad TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad body Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr BinOpMod Str NameLoad Return Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Num NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Return CompareEq SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Num decorator_list Return Call NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num NameLoad body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr BinOpMult ListLoad BinOpDiv NameLoad NameLoad NameLoad NameLoad Return ListComp NameLoad comprehension NameStore NameLoad comprehension NameStore NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpMult Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad NameLoad body TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad ListLoad handlers ExceptHandler type NameLoad name NameStore body Continue Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword NameLoad keyword NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str SubscriptLoad SubscriptLoad NameLoad Index Num Index Str For NameStore SubscriptLoad NameLoad Slice Num body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad GeneratorExp Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body If UnaryOpNot BoolOpAnd Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad Call NameLoad keyword NameLoad keyword NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Num With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad Call NameLoad NameLoad attr Return Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr GeneratorExp Call AttributeLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num attr ListLoad NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A itertools islice ifilter N/A warnings N/A logging N/A cPickle pickle zlib compress decompress N/A json N/A N/A N/A N/A N/A logging getLogger __name__ setLevel N/A logging DEBUG N/A numpy np sklearn.base clone decorators profile util chunk cloud_map Model N/A object N/A __init__ N/A N/A self extractor locator classifier N/A N/A N/A  Bundles together an extractor, locator, and classifier  N/A N/A self classifier classifier N/A N/A self extractor extractor N/A N/A self locator locator N/A N/A self training_data N/A N/A _default_on_off N/A N/A self on off N/A None None N/A N/A N/A on None N/A N/A on N/A N/A N/A self locator positives N/A N/A off None N/A N/A off N/A N/A self false_positives N/A 3 N/A len on N/A N/A on off N/A make_xy N/A N/A self on off N/A N/A N/A x N/A N/A y N/A N/A o on N/A N/A N/A N/A N/A N/A x append N/A N/A N/A N/A self extractor o reshape 1 -1 N/A N/A N/A y append 1 N/A N/A N/A ValueError N/A N/A N/A o off N/A N/A N/A N/A N/A N/A x append N/A N/A N/A N/A self extractor o reshape 1 -1 N/A N/A N/A y append 0 N/A N/A N/A ValueError N/A N/A N/A x N/A N/A np vstack x N/A y N/A N/A np hstack y N/A N/A N/A N/A N/A N/A np isfinite x all N/A N/A N/A N/A warnings warn Non-finite values in feature vectors. Fixing N/A x N/A N/A np nan_to_num x N/A N/A N/A N/A x shape N/A 0 N/A N/A y shape N/A 0 N/A N/A N/A x ndim 2 N/A N/A N/A y ndim 1 N/A N/A x y N/A save N/A N/A self path N/A N/A N/A N/A open path w outfile N/A N/A N/A N/A pickle dump self outfile N/A load N/A N/A cls path N/A N/A N/A N/A open path infile N/A N/A N/A N/A pickle load infile N/A classmethod save_training_data N/A N/A self path N/A N/A N/A N/A open path w outfile N/A N/A N/A N/A json dump N/A self training_data outfile N/A load_training_data N/A N/A path N/A N/A N/A N/A open path infile N/A N/A N/A N/A json load infile N/A staticmethod predict N/A N/A self params N/A N/A N/A N/A N/A hasattr N/A params N/A 0 __len__ N/A N/A params N/A params N/A N/A x y N/A N/A self make_xy params N/A N/A N/A N/A N/A N/A N/A self classifier predict x N/A N/A N/A ValueError N/A N/A N/A N/A np ones N/A len params dtype N/A np int N/A false_positives N/A N/A self num N/A N/A N/A N/A N/A N/A N/A logging getLogger __name__ debug N/A Locally scanning for %i false positives num N/A N/A list N/A islice N/A N/A self false_positives_iterator 0 num N/A profile false_positives_iterator N/A N/A self N/A N/A pos N/A N/A x N/A N/A N/A N/A N/A N/A N/A self predict x N/A 0 1 N/A N/A N/A ifilter pos N/A N/A N/A self locator negatives_iterator N/A cloud_false_positives N/A N/A self num workers jobs N/A 0 10 None N/A N/A 
        Use PiCloud to find false positives

        Usage:

        cloud_false_positives(15)

        or

        cloud_false_positives(jobs=range(15, 20))

        Parameters
        ----------
        num : int
            number of false positives to search for
        workers : int (optional, default=10)
            number of PiCloud jobs to use
        jobs : sequence of ints (optional)
            If provided, re-fetch a previous patch
            a previous batch of PiCloud jobs
         N/A results N/A cloud_map N/A self false_positives N/A N/A N/A num workers workers jobs N/A N/A r N/A j results N/A r j N/A profile cloud_decision_function N/A N/A self x workers jobs N/A 10 None N/A N/A results N/A cloud_map N/A self decision_function N/A chunk x workers jobs N/A N/A N/A np hstack results N/A decision_function N/A N/A self x N/A N/A N/A 
        Compute the decision function for a list of stamp descriptions

        Parameters
        ----------
        x : List of stamp description tuples

        Returns
        -------
        An ndarray of the decision function for each feature extracted
        from x
         N/A result N/A N/A N/A np empty N/A len x N/A np nan N/A N/A i ex N/A enumerate x N/A N/A N/A N/A N/A X _ N/A N/A self make_xy N/A ex N/A N/A N/A N/A ValueError N/A e N/A N/A N/A X N/A N/A X reshape 1 -1 N/A df N/A N/A N/A N/A N/A self classifier decision_function X ravel N/A N/A result N/A i df N/A result N/A _reset N/A N/A self N/A N/A N/A N/A self training_data N/A N/A N/A self classifier N/A clone N/A self classifier N/A add_layer N/A N/A self on off N/A None None N/A N/A N/A on off N/A N/A self _default_on_off on off N/A N/A N/A N/A self training_data append N/A dict pos on neg off N/A N/A x y N/A N/A self make_xy on off N/A N/A N/A N/A self classifier add_cascade_layer x y N/A retrain N/A N/A self training_data N/A N/A N/A N/A N/A self fit N/A N/A training_data N/A 0 N/A pos N/A N/A training_data N/A 0 N/A neg N/A td N/A training_data N/A 1 N/A N/A N/A N/A self add_layer N/A td N/A pos N/A td N/A neg N/A check_location N/A N/A self pars N/A N/A N/A 
        Test whether a sequence of parameters
        have longitudes compatible with the locator object

        Parameters
        ----------
        pars : list of postage stamp parameters

        Returns
        -------
        True if all parameters are at longitudes allowed by locator.
        False otherwise
         N/A N/A all N/A N/A N/A N/A self locator valid_longitude N/A p N/A 0 N/A p pars N/A fit N/A N/A self on off N/A None None N/A N/A N/A N/A N/A N/A self check_location on N/A N/A self check_location off N/A N/A N/A ValueError Cannot use this data for fitting: longitude incompatible with Locator N/A N/A N/A self _reset N/A N/A on off N/A N/A self _default_on_off on off N/A N/A self training_data N/A N/A dict pos on neg off N/A N/A x y N/A N/A self make_xy on off N/A N/A N/A N/A N/A logging getLogger __name__ debug Fitting N/A N/A N/A N/A self classifier fit x y N/A self N/A profile N/A ModelGroup N/A object N/A N/A Combine 3 models with different Locators,
    to classify data at all longitudes __init__ N/A N/A self m1 m2 m3 N/A N/A N/A N/A self m1 m1 N/A N/A self m2 m2 N/A N/A self m3 m3 N/A _choose_model N/A N/A self lon N/A N/A N/A m N/A N/A self m1 N/A self m2 N/A self m3 N/A N/A N/A N/A N/A N/A m locator valid_longitude lon N/A N/A m N/A N/A N/A ValueError N/A Invalid longitude: %s lon N/A save N/A N/A self path N/A N/A N/A result N/A N/A pickle dumps N/A N/A self m1 N/A self m2 N/A self m3 N/A result N/A compress result 9 N/A N/A open path w outfile N/A N/A N/A N/A outfile write result N/A load N/A N/A cls path N/A N/A N/A models N/A N/A pickle loads N/A decompress N/A N/A N/A open path read N/A N/A cls models N/A classmethod decision_function N/A N/A self params N/A N/A N/A N/A N/A np hstack N/A N/A N/A N/A N/A self _choose_model N/A p N/A 0 decision_function N/A p N/A p params N/A cloud_decision_function N/A N/A self params workers jobs N/A 10 None N/A N/A results N/A cloud_map N/A self decision_function N/A chunk params workers jobs N/A N/A N/A np hstack results N/A N/A