GithubHelp home page GithubHelp logo

Comments (5)

izeigerman avatar izeigerman commented on June 21, 2024 1

Hey @StrikerRUS, sorry, didn't expect you to reply so quickly :) I've edited my previous message right when you posted your reply. I've read your post carefully one more time and came to a conclusion that what you're saying makes sense.

from m2cgen.

izeigerman avatar izeigerman commented on June 21, 2024

Hey @StrikerRUS! Thanks for creating this issue.

Besides using pow and exp we also perform vector additions and multiplications by scalar. This can be potentially replaced with manually written functions similar to ones we introduced in other languages. However I don't see much benefit of doing this, especially considering that numpy is basically a de facto standard in the Data Science and Machine Learning community.

UPD However I don't have strong arguments against using exp and pow from math package. If there is an evidence that they perform faster than numpy (and apparently there is) then we should consider using them instead.

from m2cgen.

StrikerRUS avatar StrikerRUS commented on June 21, 2024

@izeigerman Thanks a lot for your prompt response!

Besides using pow and exp we also perform vector additions and multiplications by scalar.

Is self.with_vectors indicator used for that? I'm not suggesting replacing vector operators with manually written functions. I just suggested dropping numpy for fully scalar operations.

However I don't see much benefit of doing this,

I guess ~8x speedup worth it!

especially considering that numpy is basically a de facto standard in the Data Science and Machine Learning community.

Sure, but generated runtime Python module can be used far away from data science community 🙂 .

from m2cgen.

izeigerman avatar izeigerman commented on June 21, 2024

Great research btw 👍

from m2cgen.

StrikerRUS avatar StrikerRUS commented on June 21, 2024

@izeigerman No problem! I'm sorry too: I read fast, type slowly and GitHub doesn't provide live updates for editions. 😃
I'm glad you liked the idea!

from m2cgen.

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.