Can you use C++ for Machine Learning?

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ส.ค. 2024
  • Why do beginner programmers think that Python is the only language that can do ML?

ความคิดเห็น • 34

  • @thendimension4816
    @thendimension4816 6 หลายเดือนก่อน +47

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

    • @waldemir5621
      @waldemir5621 4 หลายเดือนก่อน +8

      Give me

    • @philtoa334
      @philtoa334 2 หลายเดือนก่อน +7

      @@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 หลายเดือนก่อน

      @thendimension4816, What about pytorch?

    • @thendimension4816
      @thendimension4816 หลายเดือนก่อน +1

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

    • @FILISPEEN
      @FILISPEEN หลายเดือนก่อน

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

  • @powerHungryMOSFET
    @powerHungryMOSFET 6 หลายเดือนก่อน +27

    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 3 หลายเดือนก่อน

      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 3 หลายเดือนก่อน

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

  • @barberb
    @barberb 6 หลายเดือนก่อน +21

    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.

  • @GabrielxC
    @GabrielxC 4 หลายเดือนก่อน +3

    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 4 หลายเดือนก่อน

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

  • @harth1026
    @harth1026 หลายเดือนก่อน

    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...

  • @GooogleGoglee
    @GooogleGoglee 6 หลายเดือนก่อน +4

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

  • @budgetarms
    @budgetarms 6 หลายเดือนก่อน +6

    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  6 หลายเดือนก่อน +1

      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 6 หลายเดือนก่อน +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 6 หลายเดือนก่อน

      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

  • @hanielulises841
    @hanielulises841 6 หลายเดือนก่อน +1

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

  • @albiemer
    @albiemer 3 หลายเดือนก่อน

    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.

  • @jeremyed9507
    @jeremyed9507 3 หลายเดือนก่อน +1

    Im using the Eigen library for ML in c++

  • @eprofengr6670
    @eprofengr6670 12 วันที่ผ่านมา

    Good info

  • @user-yg5gv1vv4s
    @user-yg5gv1vv4s 5 หลายเดือนก่อน +1

    Is it me or this guy in UNDERATED AF

    • @user-yg5gv1vv4s
      @user-yg5gv1vv4s 5 หลายเดือนก่อน

      look at like counts
      and views TF?

  • @3TTriple
    @3TTriple 6 หลายเดือนก่อน +3

    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  6 หลายเดือนก่อน

      try this developers.google.com/machine-learning/crash-course I also enjoyed th-cam.com/video/8SF_h3xF3cE/w-d-xo.html

  • @waldemir5621
    @waldemir5621 4 หลายเดือนก่อน

    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

  • @dilipisharagg
    @dilipisharagg 6 หลายเดือนก่อน

    Julia is better than anything for ML :?

  • @user-wn4wk3gq3k
    @user-wn4wk3gq3k 2 หลายเดือนก่อน

    Yes, C++ good for AI

  • @sa1t938
    @sa1t938 5 หลายเดือนก่อน

    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  5 หลายเดือนก่อน

      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 5 หลายเดือนก่อน +2

      @@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