d7cde4856a2081590d9c7c07a620e75bc31fe471,skll/utilities/compute_eval_from_predictions.py,,main,#Any#,140
Before Change
parser.add_argument("metric_names",
help="metrics to compute",
nargs="+")
parser.add_argument("--probability", "-p",
help="Whether the predictions file contains probabilities.",
action="store_true")
parser.add_argument("--prediction_method", "-P",
help="How to generate a prediction from the class probabilities "
"(only use with -p flag). Supported methods: "choose_best" "
"(default) and "expected_value" (only works with integer "
After Change
version="%(prog)s {0}".format(__version__))
args = parser.parse_args(argv)
supported_prediction_methods = {"highest", "expected_value"}
if (args.method is not None) and (args.method not in supported_prediction_methods):
raise KeyError("Unrecognized prediction method "{}". Supported methods are "
""highest" and "expected_value".")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances Project Name: EducationalTestingService/skll
Commit Name: d7cde4856a2081590d9c7c07a620e75bc31fe471
Time: 2017-12-06
Author: rpugh@ets.org
File Name: skll/utilities/compute_eval_from_predictions.py
Class Name:
Method Name: main
Project Name: mynlp/ccg2lambda
Commit Name: a651b0632f8f9ac9dbcff6c041d29e886ce54bd1
Time: 2017-05-30
Author: pascual@nii.ac.jp
File Name: scripts/restruct.py
Class Name:
Method Name: main
Project Name: prody/ProDy
Commit Name: 110fa50c65865440e64f071834f62b5f3938c4dd
Time: 2012-09-20
Author: lordnapi@gmail.com
File Name: lib/prody/routines/nmaoptions.py
Class Name:
Method Name: addNMAFigureOptions