GithubHelp home page GithubHelp logo

Import CSV about n2d2 HOT 3 CLOSED

cea-list avatar cea-list commented on June 15, 2024
Import CSV

from n2d2.

Comments (3)

olivierbichler-cea avatar olivierbichler-cea commented on June 15, 2024

Hi. There are several ways to import your own dataset.
For data with a single label per data, you can save each data to a separate file and categorize the files in sub-folders corresponding to each label. Then you can use the built-in DIR_Database database driver to load your data, as explained in the manual.
If all inputs are saved in one file and labels in a separate file, I guess you are looking to a driver similar to the MNIST_IDX_Database. But depending on how the data is stored, you may need to write your own database driver module.
Do you have an example of input data and labels you want to handle? Is it images, vector of numbers?
We will see what is the best way to handle them!

from n2d2.

mwessley avatar mwessley commented on June 15, 2024

Thank you for the fast response. You are right, the data is stored in a MNIST kind of way.
As an example the data is stored one input per line and comma separated:
2.070008516069267,4.339715409523769,-1.2698122291539113,-7.00010533569940957

As the Input should be 2D a reshaping needs to be performed, but as far as I have seen this can be handled by N2D2.

Another point would be whether the output data need to be the labels themselves or also could be probabilities for each label. (So basically the output of a teacher-network.)

from n2d2.

olivierbichler-cea avatar olivierbichler-cea commented on June 15, 2024

Closing this old issue, which should be solved using the new CSV_Database driver.

from n2d2.

Related Issues (20)

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.