I was checking the Rasa 1.3.X git hub code. Wanted to know the exact code that triggers the training of the models. When I was digging in, the flow was,
train.py in the rasa folder.
From their to rasa.core.train.py
from rasa.core.train.py to agent.train
from agent.train to policy_ensemble.train
from ensemble.train to policy.train
Now I kind of didn’t get the train function inside the policy.py.
the function is as follows.
def train(self,training_trackers: List[DialogueStateTracker],domain: Domain, **kwargs: Any ) -> None: """Trains the policy on given training trackers.""" raise NotImplementedError("Policy must have the capacity to train.")
The above function is just raising an exception.
I quite don’t understand how does these functions run and what code they are executing ?