Skip to content

Commit

Permalink
Simplify params
Browse files Browse the repository at this point in the history
  • Loading branch information
reidjohnson committed Aug 31, 2024
1 parent cc2021a commit ecfea72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 0 additions & 3 deletions quantile_forest/_quantile_forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,6 @@ def _get_y_train_leaves(self, X, y, sorter=None, sample_weight=None):
bootstrap_indices=bootstrap_indices[:, i],
leaf_indices=leaf_indices,
leaf_values_list=leaf_values_list,
max_node_count=max_node_count,
max_samples_leaf=max_samples_leaf,
n_outputs=n_outputs,
)

return y_train_leaves
Expand Down
6 changes: 2 additions & 4 deletions quantile_forest/_quantile_forest_fast.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -562,16 +562,14 @@ cpdef map_leaf_nodes(
cnp.ndarray[intp_t, ndim=2] bootstrap_indices,
vector[intp_t] leaf_indices,
vector[vector[intp_t]] leaf_values_list,
int max_node_count,
int max_samples_leaf,
int n_outputs,
) noexcept:
cdef intp_t n_samples, n_leaves
cdef intp_t n_samples, n_outputs, n_leaves
cdef intp_t i, j, k
cdef vector[intp_t] leaf_values
cdef intp_t leaf_index, leaf_value, y_index
cdef intp_t[:, :, :] y_train_leaves_view

n_outputs = bootstrap_indices.shape[1]
n_leaves = leaf_indices.size()

y_train_leaves_view = y_train_leaves # memoryview
Expand Down

0 comments on commit ecfea72

Please sign in to comment.