Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 05 2020 10:55
    Ponicode-bot opened #252
  • Oct 19 2020 15:20

    hameerabbasi on master

    Updates to requirements and dro… (compare)

  • Oct 19 2020 15:17

    hameerabbasi on master

    Updates to requirements and dro… (compare)

  • Oct 19 2020 15:17

    hameerabbasi on master

    Updates to requirements and dro… (compare)

  • Oct 19 2020 15:12

    hameerabbasi on master

    Updates to requirements and dro… (compare)

  • Oct 19 2020 15:09

    hameerabbasi on master

    Updates to requirements and dro… (compare)

  • Oct 19 2020 15:05

    hameerabbasi on master

    Updates to requirements and dro… (compare)

  • Oct 19 2020 15:04

    hameerabbasi on master

    Updates to requirements and dro… (compare)

  • Oct 19 2020 14:53

    hameerabbasi on master

    Fix errors on MSVC. (compare)

  • Oct 19 2020 14:52

    hameerabbasi on master

    Fix errors on MSVC. (compare)

  • Oct 19 2020 14:50

    hameerabbasi on master

    Fix errors on MSVC. (compare)

  • Sep 28 2020 11:43
    hameerabbasi commented #245
  • Sep 28 2020 11:43
    hameerabbasi closed #245
  • Sep 28 2020 11:42
    hameerabbasi closed #250
  • Sep 28 2020 11:42
    hameerabbasi closed #251
  • Sep 28 2020 11:42
    hameerabbasi commented #251
  • Sep 28 2020 11:41
    hameerabbasi commented #37
  • Sep 28 2020 11:40

    hameerabbasi on master

    update docs Fix up Azure. Merge pull request #37 from san… (compare)

  • Sep 28 2020 11:40
    hameerabbasi closed #37
  • Sep 28 2020 11:36
    hameerabbasi synchronize #37
Quansight
@quansightai_twitter
[Unknown, Quansight]
*1 new commit pushed to master*
Quansight-Labs/unumpy@8d1ca5c - Fix up backends and metaclass so subclasses work correctly. (#68)
[Unknown, Quansight]
Pull request merged by hameerabbasi
Quansight-Labs/unumpy#68
Quansight
@quansightai_twitter
[Unknown, Quansight]
*1 new commit pushed to master*
Quansight-Labs/udiff@f6f0407 - control the base of the differentiation (#30)
[Unknown, Quansight]
Pull request merged by hameerabbasi
Quansight-Labs/udiff#30
Quansight
@quansightai_twitter
[Unknown, Quansight]
Pull request opened by joaosferreira
Quansight-Labs/unumpy#69
As first discussed in #67 (review), this PR intends to extend class overriding to CuPy.
Reviewers: @hameerabbasi, @peterbell10
Quansight
@quansightai_twitter
[Unknown, Quansight]
*1 new commit pushed to master*
Quansight-Labs/unumpy@cc124c2 - Add overridden_class to CuPy backend (#69)
[Unknown, Quansight]
Pull request merged by hameerabbasi
Quansight-Labs/unumpy#69
Quansight
@quansightai_twitter

[Unknown, Quansight]
Pull request opened by sangyx
Quansight-Labs/udiff#31
I have added the diff function of np.stack.

When we extend the code to higher-order derivatives, the situation becomes a bit more complicated. There are some places to improve:

• In some derivative functions, the program may enter an infinite loop. For example, np.sum is used when registering the gradient of np.sum. I plan to add depth attributes to DiffArray or to() to control the order of gradients.
• The function registered in nograd_functions will register the gradient when it is called in the form of ufunc.__call__.
• Consider a cleaner way to control whether the calculation should derive.

Do you have any idea about the above questions?

Quansight
@quansightai_twitter

[Unknown, Quansight]
Pull request opened by joaosferreira
Quansight-Labs/unumpy#70
This pull request adds multimethods for statistical functions. The multimethods added are the following:

Order statistics

percentile
nanpercentile
quantile
nanquantile

Averages and variances

median
average
mean
nanmedian
nanmean
nanstd
nanvar

Correlating

corrcoef
correlate
cov

Histograms

histogram
histogram2d
histogramdd
bincount
histogram_bin_edges
digitize

A few things to discuss:

  1. Why is dtype not being dispatched in std and var? Other multimethods that use _reduce_argreplacer also don't dispatch dtype.
  2. The previously added min and max seem to be equal to amin and amax that this PR intends to add:
In [2]: onp.amin                                                                
Out[2]: <function numpy.amin(a, axis=None, out=None, keepdims=<no value>, initial=<no value>, where=<no value>)>

In [3]: onp.min                                                                 
Out[3]: <function numpy.amin(a, axis=None, out=None, keepdims=<no value>, initial=<no value>, where=<no value>)>
  1. I'm looking into implementing some defaults as well. Multimethods like median that reduce array slices along an axis might be the easier ones for now. As I understand these require a for loop over the given axis, so in terms of complexity it would be O(n) where n is the length of that dimension.
joaosferreira
@joaosferreira
Hey everyone! Here is my latest blog post. Have a nice week! :)
Quansight
@quansightai_twitter
[Unknown, Quansight]
Pull request opened by peterbell10
Quansight-Labs/unumpy#71
Quansight
@quansightai_twitter
[Unknown, Quansight]
*2 new commits pushed to master*
Quansight-Labs/unumpy@76a279f - Misc fixes found by the cupy backend
Quansight-Labs/unumpy@9a42b49 - Merge pull request #71 from Quansight-Labs/cupy-fixes
[Unknown, Quansight]
Pull request merged by hameerabbasi
Quansight-Labs/unumpy#71
Quansight
@quansightai_twitter
[Unknown, Quansight]
Pull request opened by joaosferreira
Quansight-Labs/unumpy#72
This fixes some issues regarding the correct dispatching of methods and classes like the one mentioned in #67 (review). It also allows proper dispatching of methods in modules such as unumpy.linalg as demonstrated by the fixed tests.
Quansight
@quansightai_twitter
[Unknown, Quansight]
*3 new commits pushed to master*
Quansight-Labs/unumpy@a52e773 - Add _get_from_name_domain to __ua_function__
Quansight-Labs/unumpy@986b492 - Fix tests for Linear Algebra routines
Quansight-Labs/unumpy@8f1d962 - Merge pull request #72 from joaosferreira/fix-backends
[Unknown, Quansight]
Pull request merged by hameerabbasi
Quansight-Labs/unumpy#72
Quansight
@quansightai_twitter
[Unknown, Quansight]
*15 new commits pushed to master*
Quansight-Labs/unumpy@0a168c9 - Add multimethods for indexing routines
Quansight-Labs/unumpy@0981d47 - Add defaut implementation for ravel_multi_index
Quansight-Labs/unumpy@bda0ab9 - Add default implementation for unravel_index
Quansight-Labs/unumpy@a30f2d4 - Add order kwarg to ravel_multi_index's and unravel_index's defaults
Quansight-Labs/unumpy@810e580 - Add more multimethods for indexing routines
Quansight-Labs/unumpy@ea0e0fe - Add default implementation for indices
Quansight-Labs/unumpy@57cf4de - Add c_, r_ and s_
Quansight-Labs/unumpy@b1e875e - Add lib.Arrayterator
Quansight-Labs/unumpy@eaefc2d - Add default implementation for ix_
Quansight-Labs/unumpy@5c46c50 - Add overriding metaclass for Arrayterator
Quansight-Labs/unumpy@3413b30 - Add dispatching of choices to choose
Quansight-Labs/unumpy@e7aa4f9 - Add default implementation for putmask
Quansight-Labs/unumpy@3833cc6 - Add backend fixes in #71 and #72 by merging branch 'master'
Quansight-Labs/unumpy@95321f9 - Add CClass, RClass and IndexExpression
Quansight-Labs/unumpy@f5a1d62 - Merge pull request #67 from joaosferreira/indexing-routines
[Unknown, Quansight]
Pull request merged by hameerabbasi
Quansight-Labs/unumpy#67
Quansight
@quansightai_twitter

[Unknown, Quansight]
Pull request opened by peterbell10
Quansight-Labs/uarray#247
Should fix the segfaults in Quansight-Labs/udiff#31

Returning selected_backend.get() instead of .release() from determine_backend meant the refcount was decreased without dropping the reference. The net result is decreasing the refcount of the backend once for each call to determine_backend. Eventually it gets GC'd and the python interpreter accesses invalid memory causing the segfault.

The GC issues are unrelated but were spotted while debugging this. The context managers had tp_traverse defined but the GC will only use these if the type has the Py_TPFLAGS_HAVE_GC flag set.
Reviewers: @hameerabbasi

Quansight
@quansightai_twitter
[Unknown, Quansight]
Pull request opened by hameerabbasi
Quansight-Labs/uarray#248
Kartik Shukla
@kartiks-21
Hello I am Kartik,I would like to know more about the projects and would want to contribute to the same can any mentor help me out with the information?
Quansight
@quansightai_twitter

[Hameer Abbasi, Quansight] Hello, Kartik. Are you looking for GSoC? If so, the selections are already over and have been for some time.

If not, head on over to https://labs.quansight.org/blog/2019/07/uarray-update-api-changes-overhead-and-comparison-to-array_function/ and read the blog. Play around with it, explore, and come back to us with any specific questions you may have.

[Unknown, Quansight]
*2 new commits pushed to master*
Quansight-Labs/uarray@33c6558 - Remove MyPy linting.
Quansight-Labs/uarray@dc9b68f - Merge pull request #248 from hameerabbasi/remove-mypy
[Unknown, Quansight]
Pull request merged by hameerabbasi
Quansight-Labs/uarray#248
Kartik Shukla
@kartiks-21
Thank you sir
Quansight
@quansightai_twitter
[Unknown, Quansight]
Pull request merged by hameerabbasi
Quansight-Labs/uarray#247
[Unknown, Quansight]
*2 new commits pushed to master*
Quansight-Labs/uarray@60deba9 - Fix refcount and GC issues
Quansight-Labs/uarray@2e03d53 - Merge pull request #247 from Quansight-Labs/refcount-gc-errors
Quansight
@quansightai_twitter
[Unknown, Quansight]
Pull request ready for review by joaosferreira
Quansight-Labs/unumpy#70
joaosferreira
@joaosferreira
Hey everyone, hope you are doing well! Sorry for the delay, here is my latest blog post. Have a great week!
Quansight
@quansightai_twitter
[Unknown, Quansight]
*1 new commit pushed to master*
Quansight-Labs/udiff@9cd95d9 - add np.stack (#31)
[Unknown, Quansight]
Pull request merged by hameerabbasi
Quansight-Labs/udiff#31
Quansight
@quansightai_twitter

[Unknown, Quansight]
Issue opened by hameerabbasi
Quansight-Labs/udiff#32
@sangyx I noticed quite a bit of comments in Quansight-Labs/udiff#31 that contained commented out code.

If it's code for functionality you're working on, it's best to put it in a branch, that you'll merge later. If it's useless code, I'd just delete it.
Assignees: sangyx

Quansight
@quansightai_twitter

[Unknown, Quansight]
Pull request opened by joaosferreira
Quansight-Labs/unumpy#73
This picks up the work started in Quansight-Labs/unumpy#46 that added multimethods for random routines. Most of the multimethods added in the previous PR where revised and hopefully some corrections were made. These were mostly changing the argument replacers and marking arguments for dispatching. This PR also adds two classes, RandomState and Generator. The multimethods added are manifold and are listed below:

Seeding and State

get_state
set_state
seed

Simple random data

rand
randn
randint
random_integers
random_sample
choice
bytes

Permutations

shuffle
permutation

Distributions

beta
binomial
chisquare
dirichlet
exponential
f
gamma
geometric
gumbel
hypergeometric
laplace
logistic
lognormal
logseries
multinomial
multivariate_normal
negative_binomial
noncentral_chisquare
noncentral_f
normal
pareto
poisson
power
rayleigh
standard_cauchy
standard_exponential
standard_gamma
standard_normal
standard_t
triangular
uniform
vonmises
wald
weibull
zipf

Notes:

  1. Some aliases not included in the above list were also added, they are random, ranf and sample. Although they are documented as aliases for random_sample they all reference different objects and so they have their own multimethods.
  2. The Generator class is commented out in the tests because I'm not entirely sure on what argument I should pass it.
  3. Most of CuPy's random methods should be working since its API follows NumPy's closely but we need to check the tests (some arguments might need to be unmarked).
Quansight
@quansightai_twitter
[Unknown, Quansight]
Pull request opened by sangyx
Quansight-Labs/udiff#33
Clean code as Quansight-Labs/udiff#32
Quansight
@quansightai_twitter
[Unknown, Quansight]
*2 new commits pushed to master*
Quansight-Labs/udiff@f800c34 - clean code & move unimplement code to dev
Quansight-Labs/udiff@938dc13 - Merge pull request #33 from sangyx/master
[Unknown, Quansight]
Pull request merged by hameerabbasi
Quansight-Labs/udiff#33
Hameer Abbasi
@hameerabbasi
Hello, GSoC students @sangyx and @joaosferreira. This is to remind you we can only grade your work until the end of August. You can continue working into September if you like, but that won't be a part of GSoC and won't be graded.
Quansight
@quansightai_twitter
[Unknown, Quansight]
Pull request merged by hameerabbasi
Quansight-Labs/unumpy#70
[Unknown, Quansight]
*12 new commits pushed to master*
Quansight-Labs/unumpy@c2b61fb - Add multimethods for statistical functions
Quansight-Labs/unumpy@7275f20 - Add default implementation for median
Quansight-Labs/unumpy@c7149fe - Remove _reduce_argreplacer
Quansight-Labs/unumpy@586a9e1 - Refactor default implementation for median
Quansight-Labs/unumpy@ddde1fd - Add default implementation for mean
Quansight-Labs/unumpy@764d78f - Add helper function for reduction methods
Quansight-Labs/unumpy@3b39aa7 - Add more default implementations for reduction methods
Quansight-Labs/unumpy@3059246 - Fix some default implementations
Quansight-Labs/unumpy@8fa8b52 - Merge branch 'master' and resolve conflicts with #67
Quansight-Labs/unumpy@3f10876 - Remove _reduce from most default implementations
Quansight-Labs/unumpy@f35a274 - Refactor median's default in terms of partition
Quansight-Labs/unumpy@1607d9b - Merge pull request #70 from joaosferreira/statistical-functions
Quansight
@quansightai_twitter
[Unknown, Quansight]
Pull request opened by sangyx
Quansight-Labs/udiff#34
Sudeep Sidhu
@sidhu1012
I have read the blog , how can i contribute
Can I get a task to work on?
Hameer Abbasi
@hameerabbasi
Well, the good thing is: You can choose your task. Anything that's on the roadmap. How about a JAX backend?
Sudeep Sidhu
@sidhu1012
Okay let me see the roadmap
Thanks @hameerabbasi sir
Quansight
@quansightai_twitter
[Unknown, Quansight]
*4 new commits pushed to master*
Quansight-Labs/udiff@5b4157e - implement jvp
Quansight-Labs/udiff@84d35ff - clean code
Quansight-Labs/udiff@9f7e3b5 - add test cases
Quansight-Labs/udiff@ffe037e - Merge pull request #34 from sangyx/master
[Unknown, Quansight]
Pull request merged by hameerabbasi
Quansight-Labs/udiff#34
joaosferreira
@joaosferreira
Hey everyone, hope you are doing well! Here is my latest blog post. Have a nice week!
joaosferreira
@joaosferreira
Thanks!
Quansight
@quansightai_twitter

[Unknown, Quansight]
Pull request opened by sangyx
Quansight-Labs/udiff#35
Hi, I have updated the docs. While I found my setting doctest_global_setup in docs/conf.py does not work. Could you help check? Many thanks!

Besides, I want to change the diff function form of JVP from lambda g, ans, x, y: to lambda ans, x, y: lambda g: , so as to separate the calculation of the result from the derivation process and solve the limitations of grad_variables, jacobian, and higher derivative. But this may not be done before September, so I will submit the GSoC result document first.