Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tqz/utils refactor #14

Merged
merged 5 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/rail/estimation/algos/k_nearneigh.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ def _process_chunk(self, start, end, data, first):
dists, idxs = self.kdtree.query(testcolordata, k=self.numneigh)
dists += TEENY
test_ens = _makepdf(dists, idxs, self.trainszs, self.sigma)

zmode = test_ens.mode(grid=self.zgrid)
test_ens.set_ancil(dict(zmode=zmode))
self._do_chunk_output(test_ens, start, end, first)
4 changes: 2 additions & 2 deletions tests/sklearn/test_algos.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import pytest
import scipy.special

from rail.core.algo_utils import one_algo
from rail.utils.testing_utils import one_algo
from rail.core.stage import RailStage
from rail.core.utils import RAILDIR
from rail.utils.path_utils import RAILDIR
from rail.core.data import TableHandle
from rail.estimation.algos import k_nearneigh, sklearn_neurnet, random_forest

Expand Down
Loading