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

modified: sktree/tree/manifold/_morf_splitter.pyx #89

Closed
wants to merge 1 commit into from

Conversation

YuxinB
Copy link
Member

@YuxinB YuxinB commented Jun 22, 2023

Modify the morf_splitter for multi-view of MORF.

@YuxinB
Copy link
Member Author

YuxinB commented Jun 22, 2023

Added one new attributes named n_features_1, and change sample_proj_mat code. my problem is, If the change below is doable, how to define n_features_1 in classes, can I set it as an input?

for proj_i in range(0, max_features):

##### suposse randomly select one feature set to find a best split
cdef np.ndarray[int, ndim=1] choices = np.array([0, n_features_1])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't work inside nogil. To instantiate an array requires the GIL.

I thought what you are trying to do is pass in n_features_1 = the # of features in dataset 1. Then X[:, :n_features_1] is dataset 1 and X[:, n_features_1:] is dataset 2?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes! Sorry, I didn't check the git timely

@YuxinB YuxinB closed this Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants