prediction package#

Subpackages#

Submodules#

prediction.export_to_notebook module#

prediction.jwt_access module#

class prediction.jwt_access.Authenticate(api_address, username, password)#

Bases: object

Logs into the ecosystem server and retrieves an access token for authentication.

Parameters:
  • api_address – The url of the ecosystem server.

  • username – The username of the user.

  • password – The password of the user.

get_access_token()#
get_auth_headers()#
get_expiry_date()#
get_password()#
get_refresh_token()#
get_server()#
get_username()#
exception prediction.jwt_access.AuthenticationError#

Bases: Exception

Exception raised for incorrect authentication details.

exception prediction.jwt_access.AuthenticationExpiry(expiry)#

Bases: Exception

Exception raised for expired authentication token.

prediction.jwt_access.stringify_data(data)#

prediction.nlp_utils module#

prediction.nlp_utils.apply_tfidf(verbs)#
prediction.nlp_utils.clean(df, field)#
prediction.nlp_utils.drop_eng_sentence(sentence)#
prediction.nlp_utils.drop_non_eng_sentence(sentence)#
prediction.nlp_utils.drop_stop_df(df, field)#
prediction.nlp_utils.drop_stop_sentence(sentence)#
prediction.nlp_utils.remove_english(df, field)#
prediction.nlp_utils.remove_non_english(df, field)#
prediction.nlp_utils.stem_df(df, field, language)#
prediction.nlp_utils.stem_sentences(sentence)#

prediction.notebook_functions module#

prediction.prediction_utils module#

prediction.prediction_utils.async_upload(auth, dataframe, db_name, col_name)#
prediction.prediction_utils.frame_csv_file(auth, filename, prefix, description)#

prediction.request_utils module#

exception prediction.request_utils.ApiError(*args, **kwargs)#

Bases: OSError

There was an ambiguous exception that occurred while handling your request.

exception prediction.request_utils.RequestTypeError(t)#

Bases: Exception

Exception raised for non existant request type.

prediction.request_utils.auto_format_params(d)#
prediction.request_utils.create(auth, endpoint, json=None, data=None, params=None, ep_arg=None, stream=None, info=False)#
prediction.request_utils.create_only_auth(auth, endpoint, **kwargs)#
prediction.request_utils.create_only_auth_no_error(auth, endpoint, **kwargs)#
prediction.request_utils.get_type(t)#

Module contents#