Skip to content

Commit

Permalink
[refact] Use the recently created attributes in the 'evaluate' method
Browse files Browse the repository at this point in the history
  • Loading branch information
pdGruby committed Mar 25, 2024
1 parent d3739f7 commit 8ff118e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geokrige/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ def evaluate(self, groups: int = 5, seed: int = None, return_: bool = False) ->
np.random.seed(seed)

evaluator = copy.deepcopy(self)
data = np.column_stack([self.X, self.scaler.inverse_transform(self.y.reshape(1, -1)).ravel()])
data = np.column_stack([self.X, self.y_loaded]) # self.X since GDF object is not wanted here
np.random.shuffle(data)

mae_result = 0
Expand Down

0 comments on commit 8ff118e

Please sign in to comment.