GithubHelp home page GithubHelp logo

Comments (14)

VidhyaVarshanyJS avatar VidhyaVarshanyJS commented on August 25, 2024 1

Can I take this one if available?💖

from temporian.

VidhyaVarshanyJS avatar VidhyaVarshanyJS commented on August 25, 2024 1

Sure!!
I skimmed through the contribution guidelines as well. I'll start the work!
Thank you...

from temporian.

ianspektor avatar ianspektor commented on August 25, 2024

Hey @VidhyaVarshanyJS - of course!

This is the first time anyone's contributing a new operator, so please do give any feedback you have on the Developing a new operator guide! And of course I'm here for any questions or help on any design decision 😊

from temporian.

ianspektor avatar ianspektor commented on August 25, 2024

Also - we're setting up a Discord to have closer communication with contributors. I'll post the link as soon as it's up!

from temporian.

VidhyaVarshanyJS avatar VidhyaVarshanyJS commented on August 25, 2024

Hi....
For the float operator ..
You have mentioned to implement them in the unary.py but in the guidelines it mentioned as creating new operators in the init.py or event_set_ops.py file.
Can you clarify this?

from temporian.

VidhyaVarshanyJS avatar VidhyaVarshanyJS commented on August 25, 2024

could you provide me with the discord channel?

from temporian.

ianspektor avatar ianspektor commented on August 25, 2024

Hey!

Yep - implementation can be done in unary.py (see both temporian/core/operators/unary.py and temporian/implementation/numpy/operators/unary.py), since it already implements some logic that can be reused (see that round() and abs(), which is implemented in unary.py already, are very similar operations).

However, you'll also need to add the three new functions in event_set_ops.py to make them available in the EventSet, which call the functions defined in unary.py.

Will create the Discord today/tomorrow and post the link here as soon as it's up!

from temporian.

VidhyaVarshanyJS avatar VidhyaVarshanyJS commented on August 25, 2024

Hi...
Here in the event_set_ops.py . Look at line 598 and then at line 1477 why there are two time abs function is defined but for other operator say for example invert the function is defined only at line 558.

Kindly clarify me if I misunderstood .

from temporian.

VidhyaVarshanyJS avatar VidhyaVarshanyJS commented on August 25, 2024

I have implemented the round() function . Can I commit that to my branch and make pull request for your review once?

from temporian.

ianspektor avatar ianspektor commented on August 25, 2024

abs is defined both as abs() and __abs__() so that it can be called both with EventSet.abs() and abs(EventSet) (defining the abs magic method enables this). __invert__ is only defined as a magic method.

round, floor and ceil all have magic methods with the same name that should be implemented, so round for example needs to be defined both as round() (with a docstring) and __round__() (no docstring needed).

For sure, push the PR and I'll take a look!

from temporian.

ianspektor avatar ianspektor commented on August 25, 2024

Discord is up! https://discord.gg/7ySyZ4YE

from temporian.

VidhyaVarshanyJS avatar VidhyaVarshanyJS commented on August 25, 2024

I have created the pull request..

from temporian.

akshatvishu avatar akshatvishu commented on August 25, 2024

Hello there! I'm interested in contributing to open issues related to .floor() and .ceil(). Could you please point me to any available tasks or provide more information about the current status of these issues? I'd love to help out if there's still work to be done! Thank you.

from temporian.

ianspektor avatar ianspektor commented on August 25, 2024

Hey @akshatvishu! .floor() and .ceil()'s should be sharing base classes/logic with .round(), which is why they were one same issue (implementing the remaining 2 after implementing the first is super straightforward).

@VidhyaVarshanyJS are you still working on this?

from temporian.

Related Issues (20)

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.