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

select the test set for the Active Learning manually #13

Open
GuptaVishu2002 opened this issue Apr 26, 2021 · 2 comments
Open

select the test set for the Active Learning manually #13

GuptaVishu2002 opened this issue Apr 26, 2021 · 2 comments
Assignees

Comments

@GuptaVishu2002
Copy link

At the moment the EMC active learning package initializes the training and test set randomly using tr_ind, te_ind = al.initialize(). Is it possible to initialize the test set manually?

@aditya1707
Copy link
Member

The initialize function returns two n-dimensional numpy arrays containing the training and test indices which are randomly assigned. If you want to do this manually, then skip this function call and define your own lists/ndarrays with indices and assign them to tr_ind, te_ind and pass them to the deposit function as referred to on the active learning documentation page.

@GuptaVishu2002
Copy link
Author

If I understand correctly, instead of using tr_ind, te_ind = al.initialize(), I simply have to do something like

tr_ind = np.array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
te_ind = np.array([10, 11, 12, 13, 14, 15, 16, 17, 18, 19])

and then perform the following?

al.deposit(tr_ind, y[tr_ind])
al.deposit(te_ind, y[te_ind])

I tried the follwing but it is returning False. Is there anything that I am missing here?

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

No branches or pull requests

3 participants