Giter Site home page Giter Site logo

dr1dl-dask's People

Contributors

crumleyc avatar

Watchers

 avatar  avatar

dr1dl-dask's Issues

Implement CuPy/Cuda

How to make this function work with or without a GPU available. What is the best way? Checking if this https://github.com/anderskm/gputil will return anything (None type if no GPUs available) i.e.

GPUtil.showUtilization()

OR:

try: 
  import cupy
  make cupy array
else:
  Make dask array

Titile of Thesis/Joss paper

I want this thread to be used for coming up with names for for my thesis and JOSS submission.

Thesis:
Rank 1 Dictionary Learning: Comparing Distributed Frameworks
Comparing Dask and Spark: Scalable Rank 1 Dictionary Learning

JOSS Paper:
dR1DL-Dask: Scalable Rank 1 Dictionary Learning in Dask

Issues with CuPy and the Sparse Implementation

Currently implemented is pydata's sparse.COO but it isn't compatable with cupy yet! It is part of their future plans, but currently not.

Other option but not really. Cupy has scipy coo_matrix implemented but it doesn't support 1D vectors.

The S Matrix is a cupy array, so the 1D array must be cupy or compatible with cupy and numpy aka sparse.COO

Outer Product with sparse vector and dask array

A = da.random.random(200) 
B = da.random.random(200)
B[B<.90] = 0
B = B.map_blocks(sparse.COO)
da.outer(A,B.compute().todense())

This test works great. A is a dask array and B is a Dask Sparse array. By calling B.compute() it converts it back to a sparse.COO array. In order for the outer function to work, we have to have the dense the sparse array by calling todense().

In the code, by the time the sparse array goes through calculation da.outer will no longer accept the type.

Command Line arguments

In the Pyspark implementation, there were two arguments that I really had to do anything with.

  1. Partitions --> Chunks
    • Dask Chunks
    • If an int x is supplied then each chunk will be (x,x)
    • A tuple of things can be applied as well so give Dask a more specific structure of all the chunks
    • I changed the default value to 'auto' because that is the default for Dask.
  2. execmem
    • I can't really decide if this is needed. I have checked the parameters of the client and there isnt a way to establish how much memory a worker should have. Plus when run locally, Dask sets its regardless in the LocalCluster class.

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.