Added support for use case in which user submits single training and tes...

...ting files via train_file and test_file in the configuration file.

This pull request addresses the following issue:

"Train/test requires feature files to have the same name but in different directories". #12

Let me know what you think about this solution--it's both hacky and elegant at the same time.  It's elegant in the sense that it is able to reuse all of the run_configuration() code as-is, with no modifications to the general architecture.  It's hacky in the sense that some of the pre-existing variables are being reused with new meanings for this new use case (e.g., train_path and test_path specify the full file paths of the input files instead of the directory paths).  The code passes nosetests and works for the use cases I envisioned, but new unit tests and documentation need to be added.  Please point me in the right direction for this if you'd like me to do it.
Good point.  I added this check before deciding on the approach of setting test_file to test_path, and forgot to remove it.

I’ve made this change.

Thanks,
Keelan

From: Dan Blanchard [mailto:notifications@github.com]
Sent: Sunday, October 19, 2014 12:56 PM
To: EducationalTestingService/skll
Cc: Evanini, Keelan
Subject: Re: [skll] Added support for use case in which user submits single training and tes... (#180)


In skll/experiments.py:

>                           ' or predict.')

> -    if (task == 'cross_validate' or task == 'train') and test_path:

> -        raise ValueError('The test set path should not be set ' +

> +    if (task == 'cross_validate' or task == 'train') and (test_path or test_file):

Same as above.

—
Reply to this email directly or view it on GitHub<https://github.com/EducationalTestingService/skll/pull/180/files#r19061498>.

________________________________

This e-mail and any files transmitted with it may contain privileged or confidential information. It is solely for use by the individual for whom it is intended, even if addressed incorrectly. If you received this e-mail in error, please notify the sender; do not disclose, copy, distribute, or take any action in reliance on the contents of this information; and delete it from your system. Any other use of this e-mail is prohibited.


Thank you for your compliance.

________________________________