Heart Disease Prediction using SVM , KNN , Random Forest , Logistic Regression .

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 มิ.ย. 2021
  • Heart Disease Classifier using
    SVM , KNN , Random Forest , Logistic Regression . and changing categorical columns to "One Hot Encoding ". explained each and every steps .
    link of dataset - drive.google.com/file/d/1y3cx...
    my website - www.ainewgeneration.com

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

  • @mounikas9608
    @mounikas9608 2 ปีที่แล้ว +5

    In SVM classfier in prediction line you have given rc_clf.so only same output as same as random forest.
    It is very helpful.Thanks a lot.

  • @themadtitan5544
    @themadtitan5544 2 ปีที่แล้ว +1

    Thankyou soo much

  • @bongogappo38
    @bongogappo38 ปีที่แล้ว

    thank you

  • @divyareddy7622
    @divyareddy7622 2 ปีที่แล้ว +4

    Sir PLEASE upload more videos! It's truly incredible, even these complex concepts you made me understand as a beginner!! Thank you

    • @generativemindai
      @generativemindai  2 ปีที่แล้ว +2

      Thanks ! you can check out I already uploaded projects on ML.

    • @RoyalRealReview
      @RoyalRealReview 2 ปีที่แล้ว +1

      @@generativemindai Sir plz resolve my confusion 🙏. As I want to publish the research paper in the same i.e. Heart disease prediction using machine learning but the problem is that already using these models papers have been published so how mine will differentiate from others. Hope you will resolve my doubt as soon as possible. Thanks in advance ☺

    • @generativemindai
      @generativemindai  2 ปีที่แล้ว

      @@RoyalRealReview You can shift to XGBOOST boosting algorithm where you can do some tuning parameters and write some default python code to optimise the model parameters .

    • @RoyalRealReview
      @RoyalRealReview 2 ปีที่แล้ว +1

      @@generativemindai thanks sir for your suggestion 🙏

    • @RoyalRealReview
      @RoyalRealReview 2 ปีที่แล้ว +1

      @@generativemindai sir I am getting 100% accuracy by using random forest and decision tree classifier andI don'thaveused the dataset same as you but updated one frim Kaggle. Have I done something wrong?

  • @dreamsports9768
    @dreamsports9768 2 ปีที่แล้ว +1

    Excellent knowledge bro

  • @sashanksai8441
    @sashanksai8441 2 ปีที่แล้ว

    May I know briefly the particular reason, why do we use only those features.

  • @rohithd7874
    @rohithd7874 ปีที่แล้ว

    ValueError: could not convert string to float: 'no'
    i am getting this error please help me bro
    x,y = get_features_and_target_arrays(df_train,cat_cols,numerical_cols,scaler)
    at this point i am getting this error

  • @rahmatnurkholis3738
    @rahmatnurkholis3738 ปีที่แล้ว

    Hi, can i get the code? Thank you!

  • @anandsai8049
    @anandsai8049 2 ปีที่แล้ว +1

    Sir i need the complete code can u share that

  • @lastmarara9149
    @lastmarara9149 2 ปีที่แล้ว +4

    After writing this code, x , y = get_features_and_target_arrays(marara_train, numerical_cols, cat_cols,scaler) i am having the following error, KeyError: "['num '] not in index" kindly help

    • @rehanmlengineer
      @rehanmlengineer 2 ปีที่แล้ว

      Try to rename num column with something other actually after num they are using whitespace so when you only write num it will display error. Either you can copy paste using your dataframe.columns() then copy all num including whitesapce after that then it will not display you key error.

  • @saniyamahiveen9474
    @saniyamahiveen9474 ปีที่แล้ว

    Why are we using 4 algorithms here? Can you please say what is the use of each algorithm in this project?

    • @generativemindai
      @generativemindai  ปีที่แล้ว

      you can even use single also. basically the main use of 4 ML also we are checking on which ML also we are getting good results.

  • @Adityaverma-gb9oe
    @Adityaverma-gb9oe 8 หลายเดือนก่อน

    sir your website is not working can you share the code

  • @amombraangeopportunekatche6409
    @amombraangeopportunekatche6409 ปีที่แล้ว

    Please can you provide python file (.py) ?

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

    Why it gives Hindi subtitles?

  • @asthaaherrao5893
    @asthaaherrao5893 2 ปีที่แล้ว

    Why you didn't print the Predicted values? is that is binary or decimal ?

  • @niranjan8466
    @niranjan8466 2 ปีที่แล้ว

    Can I get the source code

  • @user-gy6cb6vy7z
    @user-gy6cb6vy7z 2 ปีที่แล้ว

    Hi, can you please help me do the above prediction using Random forest in R?

    • @generativemindai
      @generativemindai  2 ปีที่แล้ว

      yeah soon I will upload using R

    • @user-gy6cb6vy7z
      @user-gy6cb6vy7z 2 ปีที่แล้ว

      @@generativemindai Looking forward to it...

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

    but the accuracy is not good... how to get good accuracy
    for exampe: we need accuracy more then 80% without over train it.
    but you are only getting 66% accuracy

  • @asampathmihir1725
    @asampathmihir1725 ปีที่แล้ว +2

    can you do it with deep neural network

  • @28pavithasrip67
    @28pavithasrip67 ปีที่แล้ว

    sir i have a doubt how to render for this particular project.Could you pls reply me soon actually i have my project submission on monday

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

    Can you share code please?

  • @shivamjoshi3930
    @shivamjoshi3930 2 ปีที่แล้ว +2

    when I used the data, there were no missing values

  • @suhaibkhan2592
    @suhaibkhan2592 2 ปีที่แล้ว

    Hello i am getting the error as could not convert string to float: chol

    • @suhaibkhan2592
      @suhaibkhan2592 2 ปีที่แล้ว

      Pls reply @AI Next Generation

    • @generativemindai
      @generativemindai  2 ปีที่แล้ว

      float(string) to convert string to float

  • @akanasunilkumarakana2636
    @akanasunilkumarakana2636 ปีที่แล้ว

    code?

  • @akhilb.n.s3311
    @akhilb.n.s3311 2 ปีที่แล้ว +1

    Please send it bro

  • @vishwajeetsingh5301
    @vishwajeetsingh5301 2 ปีที่แล้ว +1

    There is no graph nothing bro, actually day after tomorrow is my submission can you tell me how to include graph in this?

    • @rehanmlengineer
      @rehanmlengineer 2 ปีที่แล้ว

      Related to Decision Tree ? To add graph flow

  • @be_a_42_el_tadviaslam17
    @be_a_42_el_tadviaslam17 2 ปีที่แล้ว +1

    Sir please provide Python file

  • @gauranshluthra7520
    @gauranshluthra7520 ปีที่แล้ว

    can someone share the .py file please it urgent. Thanks in advance

    • @generativemindai
      @generativemindai  ปีที่แล้ว

      Hi you can find out github.com/rehanfazalkhan

    • @gauranshluthra7520
      @gauranshluthra7520 ปีที่แล้ว

      @@generativemindai can u please send its specific link as i am unable to find it out. Thank You

  • @terlivinaysatyanarayana5975
    @terlivinaysatyanarayana5975 2 ปีที่แล้ว +1

    Please provide python file (.py)

    • @generativemindai
      @generativemindai  2 ปีที่แล้ว

      you can find in my website www.ainewgeneration.com

  • @gauranshluthra7520
    @gauranshluthra7520 ปีที่แล้ว

    can somebody tell the error in this?
    scaler=StandardScaler()
    def get_features_and_target_arrays(df, numerical_cols, cat_cols, scaler):
    x_numeric_scaled=scaler.fit_transform (df[numerical_cols])
    x_categorical = df[cat_cols].to_numpy()
    x= np.hstack((x_categorical, x_numeric_scaled))
    y= df["target"]

    return x,y
    x_train,y_train = get_features_and_target_arrays(df_train,cat_cols,numerical_cols,scaler)

    • @generativemindai
      @generativemindai  ปีที่แล้ว

      what is error in this ?

    • @gauranshluthra7520
      @gauranshluthra7520 ปีที่แล้ว

      @@generativemindai it is showing error in "target" that it is not defined

  • @12-bhanupriya62
    @12-bhanupriya62 2 ปีที่แล้ว +2

    Plz speak louder

  • @manishreddy954
    @manishreddy954 ปีที่แล้ว

    df=pd.read_csv("/HeartAttack (1) (1).csv")