alexanderbutyaev / kern_smooth Goto Github PK
View Code? Open in Web Editor NEWPorting popular R library KernSmooth to python
License: MIT License
Porting popular R library KernSmooth to python
License: MIT License
Consider changing this line to be the following:
if bandwidth is None:
I had trouble passing in my own 2 bandwidths as an array until I tried that change
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.
Line 48 in bcf0b6d
I'm using kern-smooth version 1.0.12 and numpy version 1.18.2.
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.
Open up https://lnkd.in/gUm4Ns5 in colab and run it to generate yourself a write key.
Save the key as a Github secret called WRITE_KEY
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.