Commit e1be348a by gradyward

Changed the grade.py file sytlisitcally, and streamlined code.

Made insignifigant changes to the create.py, and added an error to errors.py.
parent 07080d1e
...@@ -44,7 +44,7 @@ def dump_input_data(text, score): ...@@ -44,7 +44,7 @@ def dump_input_data(text, score):
def create(examples, scores, prompt_string, dump_data=False): def create(examples, scores, prompt_string, dump_data=False):
""" """
Creates a machine learning model from basic inputs (essays, associated scores and a prompt) Creates a machine learning model from basic inputs (essays, associated scores and a prompt) and trains the model.
The previous version of this function took an additional argument which specified the path to the model. The previous version of this function took an additional argument which specified the path to the model.
......
...@@ -10,3 +10,6 @@ class ExampleCreationInternalError(Exception): ...@@ -10,3 +10,6 @@ class ExampleCreationInternalError(Exception):
class EaseError(Exception): class EaseError(Exception):
pass pass
class GradingRequestError(Exception):
pass
\ No newline at end of file
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