GithubHelp home page GithubHelp logo

credit-classifier's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

credit-classifier's Issues

Cross validation folds ran in a same tensorflow session

Hi,

I reproduced your code but found some problems with the cross validation step.

Since the 10 cv folds are run in the same tensorflow session, the data used for validation in later folds are already seen by the model when they were used as training data in earlier folds. In my opinions, this produces overly optimistic estimations.

In fact, when I tried leaving some data out just for testing, the test results give a precision at about 0.7, not very far from the results of the linear regression.

Is validation correct??

I reproduced your code getting similar results.

I have some doubts on the validation strategy.

The following line made me think that the code was selecting different sets of rows for train and validation:

for train_indices, val_indices in kf:

On the other hand, looking at the complete snippet:

for train_indices, val_indices in kf:
    # split the data into train and validation
    train_dataset = dataset[train_indices,:]
    val_dataset = dataset[train_indices,:]

Actually val_indices is not used in any other part of the code, and in reality looking at the above code it appears that we are using the same set for training and validation.

Am I missing something?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.