ofs_aif.batch package

Submodules

ofs_aif.batch.ml4aml module

class ml4aml(connect_with_default_workspace=True)

Bases: ofs_aif.aif.aif

create_event(ficmisdate=None)

API is to create event in compliance studio schema based on AIF output score for an entity.

Parameters

ficmisdate – Input date for which event to be created.

Returns

Success/Failure status based on output of underlying SQL procedure.

data_load_supervised(model_group_name=None, prod_flag=None, benford_flag=None, benford_digit=None, from_date=None, to_date=None)

API is to invoke underlying SQL code for supervised historical data aggregation. Historical aggregation computes number of machine learning input features for supervised modeling. It consists of features which is fixed and variable in nature.

Parameters
  • model_group_name – Name of the Model Group , as per it created in AIF-Admin notebook.

  • production_flag – (Y/N) Flag which decide for training or scoring.

  • benford_flag – (Y/N) to compute benform deviation.

  • benford_digit – (0/1/2) if above parameter is Y then beneford digit.

  • from_date – from date range

  • to_date – To date range

Returns

Success/Failure status based on output of underlying SQL procedure.

data_load_unsupervised(model_group_name=None, production_flag=None, from_date=None, to_date=None)

API is to invoke underlying SQL code for unsupervised historical data aggregation. Historical aggregation computes number of machine learning input features for unsupervised modeling. It consists of features which is fixed and variable in nature.

Parameters
  • model_group_name – Name of the Model Group , as per it created in AIF-Admin notebook.

  • production_flag – Flag which decide for training or scoring.

  • from_date – from date range

To_date to_date

To date range

Returns

Success/Failure status based on output of underlying SQL procedure.

invoke_dm_utility(debug=False)
update_event_labels(from_date=None, to_date=None)

API is to update event’s lables

Parameters

from_date – from date range

To_date to_date

To date range

Returns

Success/Failure status based on output of underlying SQL procedure.

update_event_score(ficmisdate=None)

API is to update AMLES event score back to AML.

Parameters

ficmisdate – Input date for which event score to be updated.

Returns

Success/Failure status based on output of underlying SQL procedure.

Module contents