Skip to content

Commit

Permalink
move open_model from init to run
Browse files Browse the repository at this point in the history
  • Loading branch information
eacharles committed Aug 15, 2023
1 parent b53de67 commit 74504ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rail/estimation/algos/minisom_som.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ def __init__(self, args, comm=None):
self.n_dim = None

def run(self):
self.open_model(**self.config)
self.som = self.model['som']
self.usecols = self.model['usecols']
self.column_usage = self.model['column_usage']
Expand Down
1 change: 1 addition & 0 deletions src/rail/estimation/algos/somoclu_som.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ def get_som_coordinates(self, data, weight_col):
return som_coords

def run(self):
self.open_model(**self.config)
self.som = self.model['som']
self.usecols = self.model['usecols']
self.column_usage = self.model['column_usage']
Expand Down

0 comments on commit 74504ae

Please sign in to comment.