Тёмный
Tutorials with Gary
Tutorials with Gary
Tutorials with Gary
Подписаться
TurorialsWithGary | Programming | Genetic Algorithms | C# | Signal Processing | Software Engineer

About me:
I am a 30-year-old software engineer who works with genetic algorithms. I have been a long time watcher here on RU-vid, and partially owe my success through university to it.

I love programming, it is not only a job but a hobby. I also love working with genetic algorithms and believe that they are underutilized, incorrectly used, and misjudged. I wanted to take this opportunity to share some of the things that I find most exciting. So if you're interested, come along for the ride.
Introduction to Genetic Algorithms
9:40
4 года назад
DSPGuide - Signal Processing #26
1:53
7 лет назад
Комментарии
@taxessux
@taxessux 14 дней назад
Good job,, good walkthrough
@FractAlkemist
@FractAlkemist Месяц назад
Possible answer to question at end: First add up all the "x" values. Then add up all the "y" values. Then square them both, add those results. Take the square root of that. .
@FractAlkemist
@FractAlkemist Месяц назад
Can the code be downloaded somewhere? I am a Pythonista, but have been thinking about learning C# , this looks like a goo way to o it as I am already familiar with GA.
@TutorialsWithGary
@TutorialsWithGary Месяц назад
Yeah you can! I provide the code as it is at the end of each video, with the final code being located here: github.com/Gary-The-Cat/Convergence
@dakirmossadeq1675
@dakirmossadeq1675 5 месяцев назад
Hey! Thanks for such a great video however a question crossed my mind concerning the implementation of a fitness function for a multi-objective optimization (MO) problem. Since you explained that for MO problems, different objectives need to have their separate scales/axes, then to find the fittest individual wouldn't it work if I calculated the distance magnitude (for a 2D minimization problem, or two objective functions x and y to be minimized it would be d=sqrt(x^2+y^2))? Therefore, the fittest individual would be the one with the shortest d, meaning it is closest to the origin in terms of x and y. Thanks in advance for your response.
@TutorialsWithGary
@TutorialsWithGary 5 месяцев назад
Hey, Imagine if you have three solutions A = (1,5) B = (5,1) C = (2,2) By your logic, C would be the best solution, however it is worse in the first objective than solution A, and is worse in the second objective than solution B. Additionally say you only had A and B, your logic would not be able to tell them apart. The purpose of the Pareto front is a way for us to trade objectives against one another - specifically when we have more than one objective because direct comparisons are not possible without giving up some information.
@dakirmossadeq1675
@dakirmossadeq1675 5 месяцев назад
@@TutorialsWithGary Alright it makes sense, thank you !
@ritanovitasari9653
@ritanovitasari9653 6 месяцев назад
heloo can u help me ValueError Traceback (most recent call last) Cell In[12], line 15 12 return y 14 ###Read in desired frequency from command line ---> 15 frequency = int(sys.argv[1]) 17 ### Create empty arrays 18 input = [0]*48000 ValueError: invalid literal for int() with base 10: '-f'
@TutorialsWithGary
@TutorialsWithGary 6 месяцев назад
Hey, what value are you passing in for your frequency? It looks like python can’t parse it to an integer
@dannap8831
@dannap8831 7 месяцев назад
why does x2 shift to the left when evaluated at n+1? I can't udnerstand that! I thought n was in the time domain so adding to it would shift x2 to the right....
@andresoares921
@andresoares921 7 месяцев назад
Hey Gary, I found your videos extremely useful to do uni assignment. Never have I thought I would enjoy a series so much regarding GA. Unfortunately, I have to build one in MatLab, so I mostly saw the theoretical approach and skimmed through the code writing. Nevertheless, a huge huge thank you for your effort and I wish you the best!
@dragolov
@dragolov 7 месяцев назад
Bravo!
@akashram1547
@akashram1547 8 месяцев назад
Really Amazing stuff. Why have you stopped uploading tho ? With this quality, the chances of you becoming a big channel is huge
@TutorialsWithGary
@TutorialsWithGary 8 месяцев назад
Hey, I really appreciate the feedback. I really enjoy making videos and want to make more but they are very time consuming & I’ve had some real life changes come up that are consuming more of my time now. I still plan to make more but will likely be moving onto other topics & concepts
@brandonsamuelcruzsilva7626
@brandonsamuelcruzsilva7626 10 месяцев назад
Superb!
@kheangngov8005
@kheangngov8005 10 месяцев назад
I have a question? Do we need to scale our objective function to 0-1 for better trade off between 2 objectives?
@TutorialsWithGary
@TutorialsWithGary 10 месяцев назад
That is part of the beauty of having each objective in its own axis, the scale of different objectives will not interact with one another, always providing the best trade off between objectives.
@mr.k2201
@mr.k2201 11 месяцев назад
hey gary! thanks for defination of genetics algorithm video , do you have any video in this article on python ?
@TutorialsWithGary
@TutorialsWithGary 11 месяцев назад
Hey mate, I don’t have any videos going through python on my channel other than quite an old one (and that was about creating digital filters). The theory in my videos will work across any language though, so it would be worth watching these and finding a Python tutorial. I’ve found freeCodeCamp to be good, they have a channel here on RU-vid, ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-rfscVS0vtbw.html.
@mr.k2201
@mr.k2201 11 месяцев назад
@@TutorialsWithGary I like channel and content, despite it's not python that i need to focus on it, but I'll keep watching, thank you for the link ✌️☺️
@xingyusu9613
@xingyusu9613 Год назад
thanks for your video!!! really really helpful!!
@jeanbaptisteminani9546
@jeanbaptisteminani9546 Год назад
Thanks for wonderful video. Can we display the sequence of town may be in console? I want to see different sequences.
@TutorialsWithGary
@TutorialsWithGary Год назад
Of course :) you can use a Console.WriteLine any in the app to log to console
@jeanbaptisteminani9546
@jeanbaptisteminani9546 Год назад
@@TutorialsWithGary Yes... I tried this before but just wanted to know exactly where to put it. I mean, where to write this statement. I am just learning it.
@mukanyandwihilary5935
@mukanyandwihilary5935 Год назад
Thank you for this wonderful video. However, I am having issue with references. I try to add them by clicking project, add references but nothing happens. even System one is not found. Is it caused by visual studio version you have used to create the project? I was able to run all previous examples by setting project path to lib folder of the project with no issue but this one is blocking me.
@r.bhargavram3546
@r.bhargavram3546 Год назад
What is difference between convolution and correlation?
@TutorialsWithGary
@TutorialsWithGary Год назад
Hey while I do cover both on my channel and they are effectively two sides of the same coin. That said, how they are used practically are quite different. Correllation is used to determine how one signal correlates with another, in other words how similar two signals are, or how similar a portion of a signal is to another. Convolution is used to determine one signals impact on another / on a system. Practically, they are the same operation with the kernel or smaller signal has its samples flipped.
@artemkopyl7060
@artemkopyl7060 Год назад
awesome tutorial man. just wanted to ask about one thing, why do we return the individual with higher fitness value in tournament selection? Shouldn’t we minimise the distance for next generations?
@TutorialsWithGary
@TutorialsWithGary Год назад
That is a very good question, that we will (shameless plug) cover in my multi objective video.
@KARANAMHEMASUDHADIWAKAR
@KARANAMHEMASUDHADIWAKAR Год назад
Can use Manhattan distance for evaluation
@TutorialsWithGary
@TutorialsWithGary Год назад
Great idea :)
@arctan-k
@arctan-k Год назад
my guess is to iteratively go pairwise of two parents and randomly taking one element from each parent
@overratedprogrammer
@overratedprogrammer Год назад
Is it standard to keep some of the previous generation after you get the offspring and sort them? Or just keeping offspring?
@TutorialsWithGary
@TutorialsWithGary Год назад
Yes it is common, during the breeding process, there’s no guarantee that offspring will be more fit than their parents, so we add them all into a big group and take the top X for the next generation.
@jeanbaptisteminani9546
@jeanbaptisteminani9546 Год назад
Thank you for replying quickly... The tutorial is super amazing for new comers like me. However, I could not find out how to zoom since the screen freezes. Is there a way, I can run it and see output on console or in form without seeing those graphical computations? that could remove the barriers for those who wants to experiment it without concept of gaming. Just to run it on console.
@jeanbaptisteminani9546
@jeanbaptisteminani9546 Год назад
is there any preferred screen size or library? I get only city displayed on screen as very big image and almost another one appearing but after that nothing else
@TutorialsWithGary
@TutorialsWithGary Год назад
Hey, in a later video I added in the concept of a camera that allows you to zoom out & use any screen size. It would be worth grabbing that code
@jeanbaptisteminani9546
@jeanbaptisteminani9546 Год назад
Thank you for replying quickly... The tutorial is super amazing for new comers like me. However, I could not find out how to zoom since the screen freezes. Is there a way, I can run it and see output on console or in form without seeing those graphical computations? that could remove the barriers for those who wants to experiment it without concept of gaming
@jeanbaptisteminani9546
@jeanbaptisteminani9546 Год назад
Do you have its implementation? could you put it a link in description?
@TutorialsWithGary
@TutorialsWithGary Год назад
Certainly! The next video in the series has code attached in the description.
@kachidereodumeh2040
@kachidereodumeh2040 Год назад
Good day sir. I really love your videos. Can Is it possible to implement the algorithm in PHP? I want to build an automate timetable generator. Also sir. Please can you make a video about hybridizing genetic and firefly algorithms? Thank you sir
@stevenpehrson711
@stevenpehrson711 Год назад
Thank you! I enjoyed the clear audio and great graphics. This was excactly the level of detail I needed!
@zz9758
@zz9758 Год назад
Nice video! thank you very much ! I notice you choose circle shift when m increase. can you explain a bit more why or what difference to choose circle shift ?
@aminuabdulsalami4325
@aminuabdulsalami4325 Год назад
Awesome video.
@TutorialsWithGary
@TutorialsWithGary Год назад
Thanks!
@mohdmeawad8366
@mohdmeawad8366 Год назад
when I try to modify the reference like in the vid I do not reference paths under properties
@matteoarciuli3672
@matteoarciuli3672 Год назад
Amazing explanations, since i'm facing this stuffs for the first time. No other better content online about this stuff in a friendly approach.
@haresmahmood
@haresmahmood Год назад
The best explanation of the pareyo front I've seen so far and that includes all the time my uni lecturer spent trying to explain it
@TutorialsWithGary
@TutorialsWithGary Год назад
Thanks I really appreciate that! I don’t make any money off this channel, but if you think others in your class might benefit from the content id appreciate a recommendation :)
@syedumair3172
@syedumair3172 Год назад
Awesome video! I like your teaching method. You have any full courses online? I would love to register and pay.
@TutorialsWithGary
@TutorialsWithGary Год назад
Thank you! I don’t have any other courses sorry, but it’s something I’d love to do.
@lorenzomauro-zy8pm
@lorenzomauro-zy8pm Год назад
Hey hey spectacular video, extremely clear and accurate: I need to learn GA for my job but every resource that I read was mentioning the pareto front without explaining it... Thank you!
@TutorialsWithGary
@TutorialsWithGary Год назад
I’m glad you found it helpful!
@bootzach2
@bootzach2 Год назад
your a fucking genius mate. Thankyou
@TutorialsWithGary
@TutorialsWithGary Год назад
I live to give
@asmaarefaatVO
@asmaarefaatVO Год назад
You were right when you said that this playlist is going to be one of a kind!
@CodingJourney20
@CodingJourney20 Год назад
I'm happy I found this video series. Thank you for making it available.
@TutorialsWithGary
@TutorialsWithGary Год назад
You’re welcome, thanks for watching!
@CodingJourney20
@CodingJourney20 Год назад
I'm learning GA so I can build a course scheduler for the computer science department in my school. I've read a lot of materials and I have questions mostly on the implementation aspect. This series has helped me get an answer to some of those questions at the same time making GA easy to understand and I'm not done with the series yet... thank you 🙂
@yagzyalcntas553
@yagzyalcntas553 2 года назад
too general explanation, this is like introduction to introduction video.
@peacekipu3720
@peacekipu3720 2 года назад
for the Vo/Vi = -SCR2, when you choose both the currents to be moving away from the node, the final result is +SCR2 which isn't consistent with the case for currents going into the node. could it be that the direction of currents chosen matters?
@martinp.617
@martinp.617 2 года назад
Good day, nice series, keep it up. Looking for the next. Although I have a concern, do you have any recommendation on how to setup the SFML you are using. It's kind a daunting to me because last time I remember when I initiate to use SFML, I installed it and it looks like I messed up regarding the minGW something, thus one of my program (GridLab-D) ended up not working as I expected it to be. I don't know if that's the real reason, though. Thank you in advance.
@TutorialsWithGary
@TutorialsWithGary 2 года назад
Hey, thanks for the kind words. It sounds like you were using SFML with C++, with C# it's a lot simpler. You should be able to download my same project and be up and running without much issue. If you can't get it working, send me a message here and I can provide some help. - Luke
@jeanbaptisteminani9546
@jeanbaptisteminani9546 Год назад
I downloaded it too but SFML probably is causing unexpected behavior. what is the preferred target platform? 64-bit, 32-bit or AnyCPU. in my case, I am selecting AnyCPU.
@TheMajoris
@TheMajoris 2 года назад
Very clear video on a complicated topic!
@orgnism896
@orgnism896 2 года назад
completely useless
@TutorialsWithGary
@TutorialsWithGary 2 года назад
Hey sorry this wasn’t what you were looking for. What was your issue with the content?
@redle1992
@redle1992 2 года назад
Hi Gary, I like to hire you to teach me signal processing. Is it possible you can contact me if I give you my email addr?
@frankietank8019
@frankietank8019 2 года назад
Great video - helped me a lot, thanks!
@TutorialsWithGary
@TutorialsWithGary 2 года назад
I’m glad it helped!
@zamanlashari4738
@zamanlashari4738 2 года назад
Awesome explaination
@gelding
@gelding 2 года назад
Great video, but you shouldn't name your parents as 'mother' or 'father', because I am assuming you are using genderless individuals. If you should you individuals with specific gender (male individuals for example would have different inner traits and so on) this naming convention would be proper.
@TutorialsWithGary
@TutorialsWithGary 2 года назад
That is a good point, I was honestly looking to introduce a gendered crossover at some point - but it would have been a better idea to refactor the name when I did. Thanks for the feedback
@gelding
@gelding 2 года назад
@@TutorialsWithGary very good tutorial for beginners though
@copeboys6659
@copeboys6659 2 года назад
good, very easy to understand.
@TutorialsWithGary
@TutorialsWithGary 2 года назад
Thanks! I’m glad you found it helpful
@copeboys6659
@copeboys6659 2 года назад
@@TutorialsWithGary I have exams and you make dsp easy as possible.
@Happy_General
@Happy_General 2 года назад
Great work, Gary
@TutorialsWithGary
@TutorialsWithGary 2 года назад
Thanks!
@watson8087
@watson8087 2 года назад
Thank you Garry, for this tutorial series. It's one of the best I've found online.
@conor1577
@conor1577 2 года назад
Love the channel! Have you ever looked into NSGA for VRP?
@TutorialsWithGary
@TutorialsWithGary 2 года назад
I can’t say I have, I have used GA’s for a lot of random problems, but mostly in experimentation.
@sagarpingale1997
@sagarpingale1997 2 года назад
This is the best GA tutorial on youtube I have seen so far..
@TutorialsWithGary
@TutorialsWithGary 2 года назад
Thanks, I appreciate that & am glad you found it helpful