Closed captainvera closed 4 years ago
The function kiwi.lib.train.train_from_file was not working as expected for two different reasons:
It expected a Path object, so calling it as:
from kiwi.lib.train import train_from_file run_info = train_from_file('config/bert.yaml')
Did not work.
We were loading the config file directly and not passing it through hydra, this made it so that defaults weren't being processed.
defaults
This PR fixes both issues.
The problem has been solved, thank you very much for your help, your rigorous academic attitude is worth learning.
@kepler this has been reviewed. Tests and Docstrings added.
The function kiwi.lib.train.train_from_file was not working as expected for two different reasons:
It expected a Path object, so calling it as:
Did not work.
We were loading the config file directly and not passing it through hydra, this made it so that
defaults
weren't being processed.This PR fixes both issues.