#NEWLINE# def get_logistic_regression( self , logistic_regression , query_string = '' , shared_username = None , shared_api_key = None ) : #NEWLINE# #INDENT# 'Retrieves a logistic regression.\n\n           The model parameter should be a string containing the\n           logistic regression id or the dict returned by\n           create_logistic_regression.\n           As a logistic regression is an evolving object that is processed\n           until it reaches the FINISHED or FAULTY state, the function will\n           return a dict that encloses the logistic regression\n           values and state info available at the time it is called.\n\n           If this is a shared logistic regression, the username and\n           sharing api key must also be provided.\n        ' #NEWLINE# check_resource_type ( shared_api_key , LOGISTIC_REGRESSION_PATH , message = 'A logistic regression id is needed.' ) #NEWLINE# logistic_regression_id = get_logistic_regression_id ( logistic_regression ) #NEWLINE# if logistic_regression_id : #NEWLINE# #INDENT# return self . _get ( ( '%s%s' % ( self . url , logistic_regression_id ) ) , query_string = query_string , shared_username = shared_username , shared_api_key = shared_api_key )