Skip to content

Commit 294c0d2

Browse files
authored
Feature/initial random state (#5)
- Saved initial random state for the model
1 parent 7095635 commit 294c0d2

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

changelog.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
# Changelog
22

3+
## [1.17.2][2024-10-20]
4+
5+
### Added
6+
7+
- Saving of initial random state
8+
39
## [1.17.1][2024-07-24]
410

511
### Fixed
612

713
- Installation no attribute `'__LIGHTFM_SETUP__'` error
814

9-
1015
# Releases below were made in the original repo
1116

1217
## [1.17][2023-03-19]

lightfm/lightfm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ def __init__(
231231
self.item_alpha = item_alpha
232232
self.user_alpha = user_alpha
233233

234+
self.initial_random_state = random_state # for reproducibility
234235
if random_state is None:
235236
self.random_state = np.random.RandomState()
236237
elif isinstance(random_state, np.random.RandomState):

lightfm/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.17.1"
1+
__version__ = "1.17.2"

0 commit comments

Comments
 (0)