Skip to content

Commit

Permalink
fix spelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
RCmags committed Jun 11, 2024
1 parent 75b28cf commit ea98689
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ The first time I dabbled with machine learning was during college for a undergra

![image](https://www.mdpi.com/symmetry/symmetry-12-00985/article_deploy/html/images/symmetry-12-00985-g001-550.jpg)

This project introduced me to some of the frameworks of that are used for ML. The python scripts used [Tensorflow 1.x](https://www.tensorflow.org/) and the Julia scripts used a mixture of [DeepRL](https://github.com/mkschleg/DeepRL.jl), [DeepQLearning](https://github.com/JuliaPOMDP/DeepQLearning.jl), [JuliaML](https://github.com/JuliaML), [Flux](https://fluxml.ai/Flux.jl/stable/), and probably some other stuff I've forgotten. At the time I didn't understand any of these libraries, and even less how they worked, so needless to say I completely failed to fix the code. I also felt ML was a bit of a fad and wasn't interested in getting caught up in a short-lived wave of popularity.
This project introduced me to some of the frameworks of that are used for ML. The python scripts used [Tensorflow 1.x](https://www.tensorflow.org/) and the Julia scripts used a mixture of [DeepRL](https://github.com/mkschleg/DeepRL.jl), [DeepQLearning](https://github.com/JuliaPOMDP/DeepQLearning.jl), [JuliaML](https://github.com/JuliaML), [Flux](https://fluxml.ai/Flux.jl/stable/), and probably some other stuff I've forgotten. At the time I didn't understand any of these libraries and even less how they worked, so I completely failed to fix the code. I also felt ML was a bit of a fad and wasn't interested in getting caught up in a short-lived wave of popularity.

With time, it made sense it wasn't just a fad and that learning more about ML would be positive, as the last time I encountered it I was completely dumbfounded. After stumbling upon __FreeCodeCamps's__ [Machine Learning with Python](https://www.freecodecamp.org/learn/machine-learning-with-python/) and completing the course (which involved multiple choice questions, there are no code exercise unfortunately), I vaguely understood that there were a few popular python frameworks for ML. Some of these include:
With time it made sense it wasn't just a fad and that learning about ML would be positive (especially as the last time I encountered it I was completely dumbfounded). After stumbling upon __FreeCodeCamps's__ [Machine Learning with Python](https://www.freecodecamp.org/learn/machine-learning-with-python/) and completing the course (which involved multiple choice questions, there are no code exercise unfortunately), I vaguely understood that there were a few popular python frameworks for ML. Some of these include:

- [Tensorflow](https://www.tensorflow.org/): _An end-to-end open source machine learning platform for everyone._
- [Keras](https://keras.io/): _Keras is an API designed for human beings, not machines._
- [Pytorch](https://pytorch.org/): _PyTorch is a fully featured framework for building deep learning models._
<br>

The course focused on Keras (despite claiming its focused on tensorflow), which is a layer that goes atop another package that actually handles the ML algorithms. The default back-end is Tensorflow but you can also use __Pytorch__. Unfortunately, I recall my experience with Tensorflow and it wasn't the best one. While I didn't understand the library, the code felt confusing and read like a convoluted mess. Objects upon object upon nested objects. By comparison, Pytorch's code seems a lot less dependant on special objects and uses more of Python's basic building blocks. Pytorch feel more... [Pythonic](https://builtin.com/data-science/pythonic)?.
The course focused on Keras (despite claiming its focused on tensorflow), which is a layer that goes atop another package that actually handles the ML algorithms. The default back-end is Tensorflow but you can also use __Pytorch__. Unfortunately, I recall my experience with Tensorflow and it wasn't the best one. While I didn't understand the library the code felt confusing and read like a convoluted mess. Objects upon object upon nested objects. By comparison, Pytorch's code seems a lot less dependant on special objects and uses more of Python's basic building blocks. Pytorch feel more... [Pythonic](https://builtin.com/data-science/pythonic)?.

![image](/img/machine-learning/framworks.jpg)

For a beginner this familiarity feels a lot simpler and easier to understand. A more tecnical comparison between the two libraries can be found here: [Pytorch vs Tensorflow](https://realpython.com/pytorch-vs-tensorflow/). Instead of using Python it's also possible to use Julia, but its ecosystems seem smaller and less newbie friendly than their python equivalents. The [pre-compiled](https://julialang.github.io/PrecompileTools.jl/stable/) nature of Julia can benefit re-running code, but that's an optimization thats irrelevant for a student learning through small projects. As a beginner, it makes more sense to stick to what's popular due to the plethora of answered questions that can be found online.
For a beginner this familiarity feels a lot simpler and easier to understand. A more tecnical comparison between the two libraries can be found here: [Pytorch vs Tensorflow](https://realpython.com/pytorch-vs-tensorflow/). Instead of using Python it's also possible to use Julia but its ecosystems seem smaller and less newbie friendly than their python equivalents. The [pre-compiled](https://julialang.github.io/PrecompileTools.jl/stable/) nature of Julia can benefit re-running code, but that's an optimization thats irrelevant for a student learning through small projects. As a beginner, it makes more sense to stick to what's popular due to the plethora of answered questions that can be found online.

0 comments on commit ea98689

Please sign in to comment.