Giter VIP home page Giter VIP logo

kern_smooth's People

Contributors

alexanderbutyaev avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

kern_smooth's Issues

hello

Hi devs. Just stopping by to let you know that could use this library to continuously set up estimation and submission, and maybe win a prize. It's easy to use github actions to set and forget. I'd have put this in discussion if it were enabled.

  1. Fork https://lnkd.in/g6AEMYW

  2. Open up https://lnkd.in/gUm4Ns5 in colab and run it to generate yourself a write key.

  3. Save the key as a Github secret called WRITE_KEY

  4. Click on "accept" when Github asks you if you want to enable GitHub actions. Go to Actions and you'll see the only action used in your repo (similar to https://lnkd.in/gv_Agt6). Enable it.

Or see links from this post.
https://www.linkedin.com/posts/petercotton_micropredictionmicroactors-activity-6746618350325104640-UIW3

RuntimeWarning when calling densCols with arrays with length one

When passing x and y with length one to densCols I get the following error message (I'm not sure if the second one refers to the same problem).

/AAA/lib/python3.8/site-packages/kern_smooth/ks.py:48: RuntimeWarning: invalid value encountered in true_divide
  cols[select] = colpal / (len(dens) - 1.) if len(dens) > 0 else colpal
<__array_function__ internals>:5: UserWarning: Warning: converting a masked element to nan.
/AAA/lib/python3.8/site-packages/numpy/core/_asarray.py:85: UserWarning: Warning: converting a masked element to nan.
  return array(a, dtype, copy=False, order=order)

I didn't trace values through the function, but I wonder if len(dens) - 1. evaluates to 0 in these cases leading to division by zero.

cols[select] = colpal / (len(dens) - 1.) if len(dens) > 0 else colpal

I'm using kern-smooth version 1.0.12 and numpy version 1.18.2.

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.