Тёмный

Feature Selection With Genetic Algorithms - Code and Plots 

Enlightenment
Подписаться 1,1 тыс.
Просмотров 17 тыс.
50% 1

Опубликовано:

 

9 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 39   
@enlightenment609
@enlightenment609 2 года назад
Many people want to know how to get the best model at the end. See the code below: : www.dropbox.com/s/uxqr2dmioa30c53/getBestLmModel.R?dl=0
@pattarapolsumreddee1053
@pattarapolsumreddee1053 3 года назад
Thank you for sharing. I need to learn more about GA.
@enlightenment609
@enlightenment609 3 года назад
watch this space and I shall upload more videos about extensions of GA.
@jessicacarballido9240
@jessicacarballido9240 12 дней назад
EXCELLENT! Would it be ok to use logistic regression for the fitness function in the case of classification problems?
@ahmedhossain7771
@ahmedhossain7771 Год назад
Can you please share the data used in this video in CSV format?
@knighttime19
@knighttime19 2 года назад
Thanks!! a lot!!
@pravindurgani1276
@pravindurgani1276 3 года назад
Amazing explanation of the algorithm and the code! Thank you. It is very helpful for my dissertation.
@enlightenment609
@enlightenment609 3 года назад
Hi Pravin. I am glad to help. At some stage I play to move from feature selection to automatic feature engineering. In my experience it boosts the performance many times. If you are subscribed, you will get notified.
@pravindurgani1276
@pravindurgani1276 3 года назад
@@enlightenment609 Oh that's cool. Looking forward for that. I have subscribed you. You have a lot of useful content.
@ushanandhini1942
@ushanandhini1942 2 года назад
Excellent explanation. But finally you didn't specify the selected features from given data
@enlightenment609
@enlightenment609 2 года назад
@@ushanandhini1942 you can extract the best model at the end. See the description beneath the video to find the code that can help you do that.
@arielleeliasarantes5266
@arielleeliasarantes5266 Год назад
Hi, have you ever used other regression equations such as PLS regression or ANN regression as the fitness function?
@ashawsum1960
@ashawsum1960 2 года назад
can i know why the AIC value get even higher over generation? i thought the better regression model have lower AIC. great explanation anyhow!
@shathaabuabed3161
@shathaabuabed3161 Год назад
thanks for your efforts.this is a hybird feature selection via GA,is that true?
@syahdanharisabdillah5286
@syahdanharisabdillah5286 2 года назад
Amazing explanation. Is there any command to show the summary of the fittest linear regression? (like its regressors coeffiecient, p-value, etc.)
@enlightenment609
@enlightenment609 2 года назад
Happy to help. You can get the fittest model using the code here: www.dropbox.com/s/uxqr2dmioa30c53/getBestLmModel.R?dl=0
@tusuubiraedward9600
@tusuubiraedward9600 2 года назад
Hello, Tried to follow up these steps but am getting stack with errors, kindly help with full script
@enlightenment609
@enlightenment609 2 года назад
The full script is provided in the links below the the video. Download it and follow the instructions.
@tusuubiraedward9600
@tusuubiraedward9600 2 года назад
@@enlightenment609 Thanks I was able to understand the entire process and successful run the code. The only thing is my code tend to generate the same iteration result in each run.
@enlightenment609
@enlightenment609 2 года назад
@@tusuubiraedward9600 There can be many reasons. If the problem is too easy, population size is too small, or the random seed is the same then you will get the same answer. For the encoded problem, it is likely to be too easy: Picking from 4/5 attributes is not hard for a large enough population. Try some other problem where number of features is larger.
@TareqShaaban
@TareqShaaban 2 года назад
Thank you very much.. Please excuse me. I would like you if you would explain to me the possibility of modifying the chromosome.. I am working on a master's thesis in the field of predicting missing values. Can you help me with a code that predicts them? Or you can give me a reference that I can benefit from.. and I repeat my thanks to you
@enlightenment609
@enlightenment609 2 года назад
Your comment does not clarify why and how do you want to modify the chromosome just to predict missing values (from what?). ) If you want to build a classifier that predicts if a dataset/record has missing values then GA must only select features for such a classifier. In this case the same binary chromosome applies.
@DoItwithSabari
@DoItwithSabari 3 года назад
Can anyone help me to frame fitness function for the breast cancer.. out of 30 features I have selected 5 features using genetic algorithm
@enlightenment609
@enlightenment609 3 года назад
if you have already selected 5 features using genetic algorithm, then you must already have written a fitness function. Did you use a classification algorithm with the GA?
@DoItwithSabari
@DoItwithSabari 3 года назад
@@enlightenment609 logistic regression
@enlightenment609
@enlightenment609 3 года назад
Yes, so just like the video uses linear Regression inside the fitness function, you can I stead call logistic Regression inside it. In fact the drop box code gives you a file called class feature fitness.R that uses classification with GA. Only it uses decision tree instead of logistic Regression.
@lacorreia65
@lacorreia65 3 года назад
Hello, great video. Thanks for posting it. Any chance to have the dataset used in the example to run the R code? Thank you.
@lacorreia65
@lacorreia65 3 года назад
nvm I just found it
@enlightenment609
@enlightenment609 3 года назад
Hi Luis. The code provided in the description beneath the video also contains the code to access the dataset. It is all self contained. Let me know if you didn't follow that.
@arwamoh7889
@arwamoh7889 3 года назад
sir, can I use GA in classification with 23 features? if possible how can I do it?
@enlightenment609
@enlightenment609 3 года назад
Yes, that's very easy. You set the chromosome length = 23 in runGA.R. Then set the fitness function up to use the right dataset as well. See examples in class-feature-fitness.R.
@arwamoh7889
@arwamoh7889 3 года назад
@@enlightenment609 thanks a lot
@alinaghinejad5288
@alinaghinejad5288 3 года назад
please create video the feature selection with Genetic Programming
@enlightenment609
@enlightenment609 3 года назад
You mean feature engineering with Genetic Programming? Yes, I have it in the plans. And in my experience it works very well. I have done it with Grammatical Evolution and it is a lot easier to do than with Genetic Programming.
@johnowusukonduah2305
@johnowusukonduah2305 3 года назад
hOW DO WE IMPLEMENT THIS ALGORITHM IN PYTHON
@enlightenment609
@enlightenment609 3 года назад
You can search for GA toolkits in Python. You must then write a fitness function similar to what you have seen here and attach it to the Python code. For example, you can search for DEAP toolkit.
@mohamedhjkm5025
@mohamedhjkm5025 2 года назад
@@enlightenment609 Thank you for these efforts...me too I need a similar code with python can you help me...
@shathaabuabed3161
@shathaabuabed3161 Год назад
if you currently have a code, please share it with me
Далее
Particle Swarm Optimisation
21:18
Просмотров 10 тыс.
312 - What are genetic algorithms?
13:07
Просмотров 6 тыс.
Apple Event - September 9
1:38:19
Просмотров 23 млн
Feature selection in machine learning | Full course
46:41
13. Learning: Genetic Algorithms
47:16
Просмотров 521 тыс.
Polynomial Regression in Python
20:18
Просмотров 45 тыс.
Genetic Algorithm In Python Super Basic Example
17:42
Просмотров 125 тыс.
Genetic Algorithms - Jeremy Fisher
50:07
Просмотров 53 тыс.
R package reviews | glmulti | Find The Best Model !
13:27