Giter Site home page Giter Site logo

keras-sparse-check's Introduction

keras-sparse-check

This code is for comparison of training on dense vs sparse data used in neutrino experiments. In common.py file there are:

  • code that reads data into dense or sparse format. In case of dense format data is stored in numpy array. For sparse representation data is stored as list of sparse scipy matrices
  • code that creates network
  • sparse data generator - it generates batches with dense data based on list of sparse matrices

To run comparison please run:

  • for training with dense data python train_dense.py
  • for training with sparse data python train_sparse.py

Prerequisites

  1. You have installed keras, numpy, scipy.
  2. Please provide proper paths to your data in functions: get_y_data, get_x_data_sparse, get_x_data_dense in common.py file. This example is for data with 3 classes and images size is 32x32 with depth 1.

keras-sparse-check's People

Contributors

pplonski avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

keras-sparse-check's Issues

About the test data

Where can I find the test data? I have tried your code, but it could not find data and raised an error:"No such file or directory: /media/2t/CNN_DATA/subset_db_x_view_1_1000.npy"

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.