Skip to content

Commit

Permalink
Add explicit returns for interactive doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekjoshy committed Jan 21, 2022
1 parent fc747eb commit d82d93c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ Ties should have either equivalent rank or score.
```python
>>> a1 = b1 = c1 = d1 = Rating()
>>> result = [[a2], [b2], [c2], [d2]] = rate([[a1], [b1], [c1], [d1]], score=[37, 19, 37, 42])
>>> result
[[[24.68943500312503, 8.179213704945203]], [[22.826045021875203, 8.179213704945203]], [[24.68943500312503, 8.179213704945203]], [[27.795084971874736, 8.263160757613477]]]
```

Expand Down
1 change: 1 addition & 0 deletions docs/manual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Ties should have either equivalent rank or score.
>>> a1 = b1 = c1 = d1 = Rating()
>>> result = [[a2], [b2], [c2], [d2]] = rate([[a1], [b1], [c1], [d1]], score=[37, 19, 37, 42])
>>> result
[[[24.68943500312503, 8.179213704945203]], [[22.826045021875203, 8.179213704945203]], [[24.68943500312503, 8.179213704945203]], [[27.795084971874736, 8.263160757613477]]]
Choosing Models
Expand Down

0 comments on commit d82d93c

Please sign in to comment.