Changed Model::load to return Result

This commit is contained in:
Andrew Kane
2021-10-16 17:32:28 -07:00
parent 03db5805c6
commit af64e749cd
3 changed files with 20 additions and 5 deletions

View File

@@ -57,7 +57,7 @@ model.save("model.txt");
Load the model from a file
```rust
let model = libmf::Model::load("model.txt");
let model = libmf::Model::load("model.txt").unwrap();
```
Pass a validation set