Revise vowpal_wabbit notebook

This commit is contained in:
Bagatur 2023-10-05 18:18:19 -07:00
parent 8fafa1af91
commit a3a2ce623e
3 changed files with 841 additions and 834 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -45,7 +45,13 @@ class ModelRepository:
shutil.copyfile(self.model_path, self.folder / f"model-{self.get_tag()}.vw")
def load(self, commandline: List[str]) -> "vw.Workspace":
import vowpal_wabbit_next as vw
try:
import vowpal_wabbit_next as vw
except ImportError as e:
raise ImportError(
"Unable to import vowpal_wabbit_next, please install with "
"`pip install vowpal_wabbit_next`."
) from e
model_data = None
if self.model_path.exists():