Can you use C++ for Machine Learning?

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

Комментарии • 49

  • @thendimension4816
    @thendimension4816 8 месяцев назад +71

    I am already writing a library for machine learning in C++

    • @waldemir5621
      @waldemir5621 6 месяцев назад +9

      Give me

    • @philtoa334
      @philtoa334 4 месяца назад +8

      @@waldemir5621 you're going to be very cute and start by saying please.
      and then you start by being less lazy S.O.B.

    • @FILISPEEN
      @FILISPEEN 3 месяца назад

      @thendimension4816, What about pytorch?

    • @thendimension4816
      @thendimension4816 3 месяца назад +1

      @@FILISPEEN good if you want a simpler syntax over more detailed one like tensor flow

    • @FILISPEEN
      @FILISPEEN 3 месяца назад

      @@thendimension4816 sorry, I confused pytorch with libtorch for c++/java

  • @playingracoon3782
    @playingracoon3782 Месяц назад +12

    Tbh working with c++ is going to be a lot harder then working in python, but who needs sleep anyway

  • @barberb
    @barberb 8 месяцев назад +27

    Nobody thinks that, but at the same time, nobody wants to spend time writing a custom kernel, type management, and will simply opt for a python wrapper.

    • @Anonymous-fr2op
      @Anonymous-fr2op 15 дней назад

      Well I did. To learn, and now, at work, I'm yet to touch c++ for training our models.

  • @powerHungryMOSFET
    @powerHungryMOSFET 8 месяцев назад +44

    I learned x86 Assembly last year, it just blew my mind. It made my C++ code much cleaner and better and I feel I can write more optimized code than I would have without knowledge of Assembly language. Now plan is to bulid my own microprocessor RISC-V softcore on 20K LUTs FPGA and create my own ISA and assembly lanauge and after that make a C complier. Its going to be a fun ride 🤠

    • @Smurdy1
      @Smurdy1 5 месяцев назад

      I wish I could use x86 assembly, it's really hard to find x64 tutorials. But yeah assembly as a whole is awesome and underrated

    • @powerHungryMOSFET
      @powerHungryMOSFET 5 месяцев назад

      @@Smurdy1 there are many online tutorials and courses, books available

    • @denyboi
      @denyboi Месяц назад

      I also wanna learn assembly, this comment is my biggest motivation rn

    • @powerHungryMOSFET
      @powerHungryMOSFET Месяц назад +1

      @@denyboi thanks and good luck! take a look at FPGA design as well for embedded systems

    • @mister-ace
      @mister-ace Месяц назад

      @@powerHungryMOSFETany recommendations (sources)?

  • @GabrielxC
    @GabrielxC 7 месяцев назад +9

    If you're not a beginner and you want to do machine Learning in c++ do it it going to be better and faster when you understand the stuff and don't want to use any library like me for example. I just want to write my own ml library in cuda and do my own models. If you want to do it... Do it

    • @revelari
      @revelari 6 месяцев назад

      what if you’re a complete beginner and want to create a personal ai agent

  • @lawclerksanbar3790
    @lawclerksanbar3790 2 часа назад

    As someone who's proficient in both python and C++... i would prefer C++ any day. It's really interesting to code something new especially for ML projects

  • @chrjs90
    @chrjs90 26 дней назад +1

    You can program rollercoster in to excel or Doom on a thootbrush. Answers the question also pretty well.

  • @harth1026
    @harth1026 3 месяца назад +1

    I wrote my interpretation of NEAT AI in C++. Wrote a few sample "games" that use this library. One of which is of tank bots that roll around and try to hit a moving target while not hitting friendlies. It works really well and processes much faster than an equivalent Python library. Now I'm writing up a Deep Q Learning library in C++ just because...

  • @hanielulises841
    @hanielulises841 8 месяцев назад +3

    It would be wonderful if you made a series of this, trust me

  • @GooogleGoglee
    @GooogleGoglee 8 месяцев назад +6

    Nice video, I learnt something about Machine Learning from an animated profile picture. 😅😊

  • @budgetarms
    @budgetarms 8 месяцев назад +10

    You are right about the hardest things for beginners are pointer/references, passing by x, classes and further on templates, smart pointers, function pointers, etc.
    But generally, I think C++ is the best language to start with, it is not as complex as people might think/say.
    It's like every (normal) programming language, high level languages are of course, extremely easy, but you lack the fundaments of the language by that.
    When learning C++, you need to know the fundamentals before you can begin, which I think is really good about the language.
    Later on in C++ you will learn about stl, the preprocessor directives, marco's, etc.
    So, I dont see any reason why people shouldn't be learning C++ as their first language.

    • @TheBuilder
      @TheBuilder  8 месяцев назад +2

      Well, pragmatism would direct people to Python. There is no reason to tech an accountant who uses Excel C. People who are in the science fields don't need complex language features that C++ offers because they will never use them

    • @budgetarms
      @budgetarms 8 месяцев назад +1

      ​@@TheBuilder There is no reason for an accountant to learn python.
      People in the science fields use applications that doesn't require programming skills.

    • @alanjimcy2441
      @alanjimcy2441 8 месяцев назад

      You'll be surprised​.
      In India, accountants in some firms need to learn a bit of python to do their work or they spend hours looking manually doing it often on an old PC monitor, not a laptop@@budgetarms. Hmmm why did the reference come here instead of the beginning, anyway, the python they learn is like a 1hr or 3hr crash course on simpler numpy and pandas rather than basics of python

  • @cryptoeraser5439
    @cryptoeraser5439 4 дня назад

    All the ML tools (except a bunch written in Rust) are written in C. So why it wouldn’t be possible to do it in C++???

  • @DataPastor
    @DataPastor 11 дней назад +1

    Scikit-learn is mostly written in Python and Cython (not in C++), and thus it is not interchangeable with any other language. Neither sktime which is also written in Python.

    • @TheBuilder
      @TheBuilder  11 дней назад

      I'm sure there are machine learning libraries written in all popular languages

  • @albiemer
    @albiemer 6 месяцев назад +1

    there are some machine learning libraries built for c++ but its for in house only and not distributed publicly.. they actually use only for production.

  • @3TTriple
    @3TTriple 8 месяцев назад +5

    Do you have any good learning sources though? I found "Geek For Geek - Machine learning with c++", a book called "Hands on Machine Learning with c++" and the usual library documentaries. But not to much else thats non-Phyton. Are there actually better places to start? Or paths that are usually taken?
    (My higher math is ok and c++ is getting there)

    • @TheBuilder
      @TheBuilder  8 месяцев назад +1

      try this developers.google.com/machine-learning/crash-course I also enjoyed ruclips.net/video/8SF_h3xF3cE/видео.html

  • @jeremyed9507
    @jeremyed9507 5 месяцев назад +1

    Im using the Eigen library for ML in c++

  • @waldemir5621
    @waldemir5621 6 месяцев назад

    Interesting, would C++ be actually much faster than python in Machine Learning as well? I heard that overall c++ just kills python in speed, but does it also translate to much faster and power efficient ML? I would like to learn it if so

  • @sa1t938
    @sa1t938 7 месяцев назад

    If you actually want to do machine learning though, your work will probably be using python and the open source you are building off of is probably also written in python

    • @TheBuilder
      @TheBuilder  7 месяцев назад

      The program I attended put more emphasis on HPC which is why I'm surprised when I see every resource on the net recommending Python.

    • @sa1t938
      @sa1t938 7 месяцев назад +3

      @@TheBuilderim a machine learning engineer and have never dealt with ML in any language other that python (with the exception of things like custom cuda kernels). I know there are positions that exist that use languages other than python for ML but they are just not as common, so it makes a lot of sense to me that resources would suggest the most commonly used language which also happens to be a very easy language

  • @Pratyushchauhan-p7m
    @Pratyushchauhan-p7m 7 месяцев назад

    Is it me or this guy in UNDERATED AF

  • @eprofengr6670
    @eprofengr6670 2 месяца назад

    Good info

  • @greydogyoutube
    @greydogyoutube 8 месяцев назад

    Julia is better than anything for ML :?

  • @Сергей-и4б7к
    @Сергей-и4б7к 4 месяца назад +1

    Yes, C++ good for AI