-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Predict function for logistic regression. #92
Conversation
y_pred = classifier.y_pred | ||
|
||
# find the input to theano graph | ||
inputs = graph.inputs([y_pred]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we told we don't use that as this is for the DLT. In the __init__
, keep a reference to input. Do that for each example to be consistent, but you don't need to add a predict() function for each example
@@ -109,6 +109,9 @@ def __init__(self, input, n_in, n_out): | |||
# parameters of the model | |||
self.params = [self.W, self.b] | |||
|
|||
# keep track of model input | |||
self.input = input | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you check if this is needed for the other models? That way, all pickled files will have the needed information.
This should cover all the supervised learning scripts that have same structure. |
thanks. This made me discover that some class use self.x while others use self.input. I made a separate ticket for this gh-99 |
Predict function for logistic regression.
Predict function for logistic regression.
Predict function for logistic regression. Former-commit-id: c0217ab
fixed #79