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

Set a fixed number of pairs for GA2M #5

Closed
wants to merge 2 commits into from

Conversation

sds-dubois
Copy link

As discussed, I've added a new parameter '-p' to set the number of pairs we'd like to use (default is all of them). When reading the interactions file, we stop when we've reached the desired number of pairs.

This PR also fixes a bug: setPairs was missing in main.

@@ -68,6 +69,9 @@

@Argument(name = "-l", description = "learning rate (default: 0.01)")
double learningRate = 0.01;

@Argument(name = "-p", description = "maximum number of pairs")
Copy link
Owner

Choose a reason for hiding this comment

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

I would not add this parameter since the input pairs is required and specified by '-I'. If called from other program, the caller should have a sense how many pairs to use and provide the list of pairs.

Copy link
Author

Choose a reason for hiding this comment

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

So you would rather modify the interaction file created by FAST to keep only the first numPairs lines ? but this mean one would always have to create a new file whenever we want to test another value of numPairs

Copy link
Owner

Choose a reason for hiding this comment

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

FAST only ranks all pairs. The typical usage of this code is run FAST to get the ranking of all pairs, use head command to get the top K pairs and save it to a new file, feed the new file to GA2MLearner.

@sds-dubois sds-dubois closed this Mar 9, 2016
@sds-dubois sds-dubois deleted the selectPairs branch March 9, 2016 19:11
yinlou pushed a commit that referenced this pull request Apr 1, 2016
Latest changes from yinlou/mltk
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