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

Bank defaults prediction using FDIC dataset (80/100) #2

Open
joelowj opened this issue Jul 21, 2018 · 2 comments
Open

Bank defaults prediction using FDIC dataset (80/100) #2

joelowj opened this issue Jul 21, 2018 · 2 comments

Comments

@joelowj
Copy link
Owner

joelowj commented Jul 21, 2018

Current submission

Logistic Regression Stats Model 20/20
Logistic Regression using Scikit-learn 20/20
Logistic Regression fewer predictors 20/20
Logistic Regression with Tensorflow 0/20
Logistic Regression with Neural Network 20/20

I am left with Logistic Regression with Tensorflow which did not clear the grader (your answer to Logistic Regression with TensorFlow is not correct). In case, there is any issue with the grader, I will wait for a while before attempting this question again. If anyone managed to clear this and would like to help, feel free to start a discussion.

@randy-tsukemen
Copy link

Hi, I found that the grader need the gradient to run n_epochs*n_batches times. But I think the random_batch function did not go through all X_trainTf is rarely seen in other ML implementation.

for epoch in range(n_epochs):        
        for batch_index in range(n_batches):
            X_trainTf_batch, y_trainTf_batch = random_batch(X_trainTf, y_trainTf, batch_size)
            sess.run([optimizer, loss], feed_dict={X: X_trainTf_batch, 
                                                   y: y_trainTf_batch})
    y_proba_val = sess.run(y_proba, feed_dict={X: X_testTf})

@joelowj
Copy link
Owner Author

joelowj commented Oct 10, 2018

@minori111 , I see. Would you be able to post a screen shot of this set of code clearing the grader? And if so, would you like to make a pull request for it? (:

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

No branches or pull requests

2 participants