Generating BET in Python
Basic element table is the key for all the steps in Adaptive real time machine learning(ART-ML) technique. Although, there is no particular data structure and process that needs to be used for generating BET, this example explains one of the methods to generate BET in an Atomic level.
Here, BET is stored in the form of a square Matrix (N*N) where N is number of features.Below python code shows how BET can be generated in layman form in the most atomic level:
After generating BET, this table can be used for Data exploration & for Modeling. To use this in real time, BET can be updated in real time using the real time equation for BET. As, BET is updated with the new Data, we can update the model in real time.
Updating BET in Real-Time:
BET has the flexibility to be modified with the new data in multiple ways as mentioned below.
- Incremental learning (Learn)
- Decremental learning (Forget)
- Attribute addition (Grow)
- Attribute deletion (Shrink)
This gives us flexibility for on the fly attribute addition or deletion to update the models. Check GITHUB for python code of each of these functions.