Skip to content
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

Merged
merged 4 commits into from
Jul 2, 2015
Merged

Conversation

memimo
Copy link
Member

@memimo memimo commented Jun 22, 2015

fixed #79

y_pred = classifier.y_pred

# find the input to theano graph
inputs = graph.inputs([y_pred])
Copy link
Member

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

Copy link
Member

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.

@memimo
Copy link
Member Author

memimo commented Jul 2, 2015

This should cover all the supervised learning scripts that have same structure.

@nouiz
Copy link
Member

nouiz commented Jul 2, 2015

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

nouiz added a commit that referenced this pull request Jul 2, 2015
Predict function for logistic regression.
@nouiz nouiz merged commit 55db5cd into lisa-lab:master Jul 2, 2015
@memimo memimo deleted the predict branch July 2, 2015 20:11
taneishi pushed a commit to taneishi/DBN_CPI that referenced this pull request Nov 28, 2019
Predict function for logistic regression.
taneishi pushed a commit to taneishi/DBN_CPI that referenced this pull request Feb 13, 2020
Predict function for logistic regression.

Former-commit-id: c0217ab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a "predict" function for logistic regression model
3 participants