Module Expr Str TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias ImportFrom alias ImportFrom alias alias alias alias alias alias ImportFrom alias alias alias alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad Num Num body Expr Str Assign NameStore Dict If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse Assign NameStore Call NameLoad NameLoad If CompareEq NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If CompareNotIn Str NameLoad body TryExcept body Assign NameStore SubscriptLoad Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str attr Index Num Expr Call AttributeLoad NameLoad attr Dict Str NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr Dict Str NameLoad orelse If CompareEq NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad body Expr Str Expr Call NameLoad NameLoad NameLoad keyword Str Assign NameStore Call NameLoad NameLoad If NameLoad body Return Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Expr Call NameLoad NameLoad NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call NameLoad NameLoad NameLoad keyword Str Assign NameStore Call NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad NameLoad NameLoad keyword Str Assign NameStore Call NameLoad NameLoad If NameLoad body Return Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A Base class for models' REST calls

   https://bigml.com/developers/models

 N/A N/A N/A simplejson json N/A N/A N/A ImportError N/A N/A json bigml.resourcehandler ResourceHandler bigml.resourcehandler check_resource_type resource_is_ready get_resource_type check_resource get_model_id get_cluster_id bigml.constants MODEL_PATH CLUSTER_PATH DATASET_PATH TINY_RESOURCE ModelHandler N/A ResourceHandler N/A N/A This class is used by the BigML class as
       a mixin that provides the REST calls models. It should not
       be instantiated independently.

     __init__ N/A N/A self N/A N/A N/A Initializes the ModelHandler. This class is intended to be
           used as a mixin on ResourceHandler, that inherits its
           attributes and basic method from BigMLConnection, and must not be
           instantiated independently.

         N/A N/A self model_url N/A N/A self url MODEL_PATH N/A create_model N/A N/A self origin_resource args wait_time retries N/A None 3 10 N/A N/A Creates a model from an origin_resource.

        Uses a remote resource to create a new model using the
        arguments in `args`.
        The allowed remote resources can be:
            - dataset
            - list of datasets
            - cluster
        In the case of using cluster id as origin_resource, a centroid must
        also be provided in the args argument. The first centroid is used
        otherwise.

         N/A create_args N/A N/A N/A args None N/A N/A N/A N/A create_args update args N/A N/A isinstance origin_resource list N/A N/A create_args N/A N/A self _set_create_from_datasets_args origin_resource args create_args wait_time wait_time retries retries N/A N/A resource_type N/A get_resource_type origin_resource N/A N/A resource_type CLUSTER_PATH N/A N/A cluster_id N/A get_cluster_id origin_resource N/A cluster N/A check_resource cluster_id query_string TINY_RESOURCE wait_time wait_time retries retries raise_on_error True api self N/A N/A centroid create_args N/A N/A N/A N/A centroid N/A N/A N/A N/A N/A cluster N/A object N/A cluster_models keys N/A 0 N/A N/A N/A create_args update N/A centroid centroid N/A N/A N/A KeyError N/A N/A N/A KeyError Failed to generate the model. A centroid id is needed in the args argument to generate a model from a cluster. N/A N/A N/A create_args update N/A cluster cluster_id N/A N/A N/A resource_type DATASET_PATH N/A N/A create_args N/A N/A self _set_create_from_datasets_args origin_resource args create_args wait_time wait_time retries retries N/A N/A N/A Exception N/A A dataset, list of dataset ids or cluster id plus centroid id are needed to create a dataset. %s found. resource_type N/A body N/A N/A json dumps create_args N/A N/A N/A self _create N/A self model_url body N/A get_model N/A N/A self model query_string shared_username shared_api_key N/A None None N/A N/A Retrieves a model.

           The model parameter should be a string containing the
           model id or the dict returned by create_model.
           As model is an evolving object that is processed
           until it reaches the FINISHED or FAULTY state, the function will
           return a dict that encloses the model values and state info
           available at the time it is called.

           If this is a shared model, the username and sharing api key must
           also be provided.
         N/A N/A check_resource_type model MODEL_PATH message A model id is needed. N/A model_id N/A get_model_id model N/A model_id N/A N/A N/A N/A self _get N/A %s%s N/A N/A self url model_id query_string query_string shared_username shared_username shared_api_key shared_api_key N/A model_is_ready N/A N/A self model N/A kwargs N/A N/A Checks whether a model's status is FINISHED.

         N/A N/A check_resource_type model MODEL_PATH message A model id is needed. N/A resource N/A N/A self get_model model kwargs N/A N/A resource_is_ready resource N/A list_models N/A N/A self query_string N/A N/A N/A Lists all your models.

         N/A N/A N/A self _list N/A self model_url query_string N/A update_model N/A N/A self model changes N/A N/A N/A Updates a model.

         N/A N/A check_resource_type model MODEL_PATH message A model id is needed. N/A model_id N/A get_model_id model N/A model_id N/A N/A body N/A N/A json dumps changes N/A N/A N/A self _update N/A %s%s N/A N/A self url model_id body N/A delete_model N/A N/A self model N/A N/A N/A Deletes a model.

         N/A N/A check_resource_type model MODEL_PATH message A model id is needed. N/A model_id N/A get_model_id model N/A model_id N/A N/A N/A N/A self _delete N/A %s%s N/A N/A self url model_id N/A N/A