Commit 06f69411 by Vik Paruchuri

Fix some weird docstrings

parent 92d51e67
"""" """
Functions to score specified data using specified ML models Functions to score specified data using specified ML models
"""" """
import sys import sys
import pickle import pickle
...@@ -162,13 +162,13 @@ def grade_generic(grader_data, numeric_features, textual_features): ...@@ -162,13 +162,13 @@ def grade_generic(grader_data, numeric_features, textual_features):
return results return results
def get_confidence_value(algorithm,model,grader_feats,score): def get_confidence_value(algorithm,model,grader_feats,score):
"""" """
Determines a confidence in a certain score, given proper input parameters Determines a confidence in a certain score, given proper input parameters
algorithm- from util_functions.AlgorithmTypes algorithm- from util_functions.AlgorithmTypes
model - a trained model model - a trained model
grader_feats - a row of features used by the model for classification/regression grader_feats - a row of features used by the model for classification/regression
score - The score assigned to the submission by a prior model score - The score assigned to the submission by a prior model
"""" """
min_score=min(numpy.asarray(score)) min_score=min(numpy.asarray(score))
max_score=max(numpy.asarray(score)) max_score=max(numpy.asarray(score))
if algorithm == util_functions.AlgorithmTypes.classification: if algorithm == util_functions.AlgorithmTypes.classification:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment