Added p_iter and q_iter

This commit is contained in:
Andrew Kane
2022-09-23 12:28:44 -07:00
parent 9608ab9172
commit e276db1cec
3 changed files with 40 additions and 5 deletions

View File

@@ -40,8 +40,8 @@ model.predict(row_index, column_index);
Get the latent factors (these approximate the training matrix)
```rust
model.p_factors();
model.q_factors();
model.p_iter().collect::<Vec<&[f32]>>();
model.q_iter().collect::<Vec<&[f32]>>();
```
Get the bias (average of all elements in the training matrix)