141 - Regression using Neural Networks and comparison to other models

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024

Комментарии • 82

  • @developer_novice4237
    @developer_novice4237 9 месяцев назад +4

    every time I watch this video, I always gain a new appreciation for it.

  • @ДенисТараканов-ъ5г

    Dear Screenivas, I am really thank you for your lessons, work and time spent, You don't imagine how you help me. Your lessons are very useful and informative, especially I like lessons concerning time series forecasting, regression using different models, it is very cool. Thank you so much!

  • @NavinKumar-tv9hg
    @NavinKumar-tv9hg Год назад

    You are amazing. You explain some of the very intricate concepts so easily that everyone can understand it. Tanks a ton!!

  • @fabiotateo9140
    @fabiotateo9140 3 года назад +2

    You are my hero!!!!
    I am a beginner, but your videos have raised me a lot of doubts
    thank you so much
    I hope to be able to realize my idea soon

  • @dudefromsa
    @dudefromsa 3 года назад +1

    This was actually awesome. Really enjoyed it

  • @SS-zq5sc
    @SS-zq5sc Год назад

    Thank you very much for this. I'm so glad to find your channel. It's very well explained.

  • @dhakalsandeep3452
    @dhakalsandeep3452 Год назад

    Wonderful ! Thank you for the video Sreeni.

  • @nicolaser55
    @nicolaser55 2 года назад

    Awesome video man, this was by far the most helpful one out there for me

  • @juanangelmartinezramirez4604
    @juanangelmartinezramirez4604 Год назад

    Nice content man, i'm making my masters degree and all your tutorials are very helpful, keep the great job

  • @MSingh-jq5me
    @MSingh-jq5me 4 года назад +2

    Amazing Sir!

  • @michelematsuo8996
    @michelematsuo8996 3 года назад +1

    Yor channel is very useful! Thanks!

  • @arefhemati1897
    @arefhemati1897 2 года назад +2

    Dear Seeeni, thanks a million for sharing such a helpful tutorial. I have a question. How can I define a multivariate regression neural network with a weighted mean square error loss function?

  • @sajansudhir1859
    @sajansudhir1859 3 года назад

    Thanks for the knowledge share in detail......

  • @rajeswarireddypatil3281
    @rajeswarireddypatil3281 Год назад

    @ rajeswari reddy patil Sir , your videos are very knowledgeable. Thanks for your contribution . Please provide more videos on object detection with bounding box & its variations .

  • @junaidlatif2881
    @junaidlatif2881 2 года назад

    Love this tutorial... ❤ Sir. Thanks

  • @sam-kw7up
    @sam-kw7up 3 года назад +3

    model = Sequential()
    model.add(Dense(128, input_dim=13, activation='relu'))
    model.add(Dense(64, activation='relu'))
    I m a little new to this, How do we select the number of neurons here as 128 and 64

    • @KumarHemjeet
      @KumarHemjeet 2 года назад

      It's random..you can choose any.

  • @ShiftKoncepts
    @ShiftKoncepts 8 месяцев назад

    Is deep learning the best model for data that has both linear and non-linear values? Also what does Dense 128 and 64 value mean? thank you! love this video, straight to the point.

  • @alishaparveen3603
    @alishaparveen3603 3 года назад +1

    Thank you. Please add multi-output regression using Keras and TensorFlow

  • @kaluleramanzani9212
    @kaluleramanzani9212 4 года назад

    Thank you so much. I would like to see one video on Bayesian Regularization methods applied to neural networks

    • @DigitalSreeni
      @DigitalSreeni  4 года назад

      Dropout is an approximation of Bayesian regularization for neural networks. I’m not sure if adding a separate Bayesian regularization makes any sense if you already introduce dropout. It would be a cool exercise to compare the effects of dropout, L2, l1, and Bayesian regularization techniques. I. Know for sure L2 and l1 are available in Keras as layers. All you do is: from Keras import regularizers then add them to your dense layers. Also, do not forget that data augmentation also helps generalize the model.

    • @kaluleramanzani9212
      @kaluleramanzani9212 4 года назад

      @@DigitalSreeni Thank you so much for this advice. Let me try them out.

  • @lucastomesek2304
    @lucastomesek2304 2 года назад

    Amazing!!! Thank you!!

  • @zerihunchere1036
    @zerihunchere1036 Год назад

    You are doing a great job!!!!
    I am a beginner, but your videos improved me a lot.
    can you do a tutorial on how to use LSTM for spatial prediction?

  • @rafidbinsadeque499
    @rafidbinsadeque499 Год назад

    fantastic

  • @chadgregory9037
    @chadgregory9037 2 года назад

    Love the video man!

  • @bhargavchinni
    @bhargavchinni 2 года назад

    Thank you for creating this amazing knowledge database and they are very helpful and easy to absorb.
    How do you set seed for the sequential model to generate the same model output ?

  • @nicolamenga8943
    @nicolamenga8943 2 года назад

    Hello.
    Thank you for this tutorial, it is very useful.
    I have a question.
    What type of neural network was built in this video?
    Is it a Feed Forward Neural Network?
    Thank you :)

  • @mojtabaparvizi538
    @mojtabaparvizi538 3 года назад

    دمت گرم، خیلی خوب بودی

  • @mhaidar82
    @mhaidar82 2 года назад

    Hi Sreeni, thank you for the excellent video. I have question on data scaling for features that collected after training the model and will be used to predict based on existing model . If I scale this newly collected features, then the means and the standard deviation of newly collected features are most likely different from means and the standard deviation in original features. In this case how to appropriately preprocessed newly collected features?

  • @ziqijia5203
    @ziqijia5203 2 года назад +1

    Hi, Screeni, Thank you for the video. At the end you said that the random forest can give you the contribution list of features, does it the same for PCA method? Since PCA also gives you a bunch of eigen values.

    • @DigitalSreeni
      @DigitalSreeni  2 года назад +2

      Random forest allows you to rank your features based on their contribution towards the decision making. PCA is actually remapping your features into a new set of features (components). In other words, PCA creates completely new features using your existing features.

    • @ziqijia5203
      @ziqijia5203 2 года назад

      @@DigitalSreeni Thank you for the explanation!

  • @junaidlatif2881
    @junaidlatif2881 2 года назад

    Sir. How to find R2 score? Model accuracy? In NN? We can find easily in other machine learning algorithm R2 score.

  • @vivek6389
    @vivek6389 2 года назад

    Hi Sreeni, a quick question. When using linear regression with 'Scaled' regressors, did you exclude the intercept term? I assume since the regressors are standardized, the intercept term no longer exists in lr

  • @toninehme
    @toninehme 3 года назад

    Thank you for this!!!! I have a question please: Can I use a multilayer perceptron for regression problem with one output but without using an activation function? Is this is more efficient? If yes, can you reply by the line code of the output layer without using activation function? THANKSSS

  • @samarafroz9852
    @samarafroz9852 4 года назад

    Nice tutorial sir

  • @junaidlatif2881
    @junaidlatif2881 2 года назад

    Sir. Do we have tutorial on gaussian process regression GCR for non parametric data?

  • @shivanshawasthi27
    @shivanshawasthi27 2 года назад

    How to find the grapfh of predicted and real value? with Rsqaure value

  • @junaidlatif2881
    @junaidlatif2881 2 года назад

    If we have labeled columns? I have 21 columns total. And 21st colum is prediction. All are float values. How can i proceed? 😔

  • @evyatarcoco
    @evyatarcoco 2 года назад

    Thank you sir, if i want the model to give me the most expensive/cheap apartment. is there any way to do that? or the model is just a prediction model to input parameters?

  • @vikashkumar-cr7ee
    @vikashkumar-cr7ee Год назад

    Dear Sreeni. Could you please provide a tutorial on multi-target/ objective regression problems using ML?

    • @shakeelahmad3162
      @shakeelahmad3162 Год назад

      Hi, i am looking for the same..if you get any info share it here. thanks

  • @farahamirah2091
    @farahamirah2091 Год назад

    Hi I want to ask, I put random_state=42, in both model random forest regressor and neural network regressor., If I copy the code and run it again, random forest give the same result for metric mae and mse, while neural network produce different result , why is that? They said because each run for neural network model, it will initiate weight and bias, but then I already put random_state as a seed, so that the weight and bias stay the same. So I'm a bit confused

  • @Amirhosein_shirzad
    @Amirhosein_shirzad 5 месяцев назад

    Hi there. I developed a model based on your video. But I get a negative R2. What is the problem?

  • @harshajasnitc9491
    @harshajasnitc9491 2 года назад

    hello sir,
    currently I am working on artificial neural network using keras library on google Collab. when using feature importance code there, its showings that 'Sequential' object has no attribute 'feature_importances_' . could you please help me to solve this

  • @aomo5293
    @aomo5293 2 года назад

    Thank you very much;
    Please I would like to know why you have chosen 128 (Dense(128...)) and 64, is there any criteria ?
    For my case, I have 3 features and one as label; what is the best number for both values. Thank you

    • @DigitalSreeni
      @DigitalSreeni  2 года назад +1

      Start with your best guess. I don't think anyone can tell you what a good number of neurons are for your specific problem. You can build a few different models and compare the accuracies.

    • @aomo5293
      @aomo5293 2 года назад

      @@DigitalSreeni ok Thank y bro

    • @aomo5293
      @aomo5293 2 года назад

      @@DigitalSreeni an other question please, how to get R square for neuroun model ?

  • @sadafmehdi2991
    @sadafmehdi2991 3 года назад +1

    we do not need to scale y(targeted output)?

    • @DigitalSreeni
      @DigitalSreeni  3 года назад +1

      Y is what you are trying to predict so no need for scaling. Scaling is needed if you have multiple parameters that affect the outcome/output and if these parameters vary a lot in range.

    • @sadafmehdi2991
      @sadafmehdi2991 3 года назад

      @@DigitalSreeni i have six inputs that varies from 0.0003 to 688956

  • @rathnakumarv3956
    @rathnakumarv3956 2 года назад

    in line 81, val_loss is extracted from history. but where the val_loss defined?

    • @DigitalSreeni
      @DigitalSreeni  2 года назад

      Please have a look at what is stored in the 'history' variable and you will understand what's going on. In summary, the history variable stores the information about loss values and any tracking metrics for each epoch. If the training involves any validation data, it also stores validation loss in addition to the training loss.

    • @rathnakumarv3956
      @rathnakumarv3956 2 года назад

      @@DigitalSreeni okay sir. Understood now. Thanks

  • @Amin-ez2ps
    @Amin-ez2ps 2 года назад

    LOVE U

  • @mahhhhh2599
    @mahhhhh2599 4 года назад

    Hi sir, I need some advice. I already passed the split test. But the problem comes when I try the regression. My dataset have dtypes of object, int and float. And my X is to predict what kind of the cell (whether G GM or M). But there will be an error raise of cannot convert string to float. so what should I do?

    • @DigitalSreeni
      @DigitalSreeni  4 года назад

      Not sure what the exact problem is but if you are trying to train using strings (e.g. G, GM, M) then it will give an error. You need to encode them first into numbers, for example 1 for G, 2 for GM and 3 for M.
      I have done this in one of my recent videos. Video number 149.

  • @samgeethsen2452
    @samgeethsen2452 2 года назад

    Which architecture has been used here?

  • @patrickjane276
    @patrickjane276 2 года назад

    Ty

  • @bhavinmoriya9216
    @bhavinmoriya9216 2 года назад

    Do I need to scale price too? Or it does not make no difference?

    • @bhavinmoriya9216
      @bhavinmoriya9216 2 года назад

      While doing NNs.

    • @DigitalSreeni
      @DigitalSreeni  2 года назад +1

      You need to scale all inputs that will be used in training the neural network. You do not need to scale the outputs.

    • @junaidlatif2881
      @junaidlatif2881 2 года назад

      Sir. What github repository number of this code?

  • @ivangomezlopez5361
    @ivangomezlopez5361 2 года назад

    Hi sir! I've written you an email asking for some problems I had while running the code... I'd really appreciate if you could help me mr. DigitalSreeni!!

    • @DigitalSreeni
      @DigitalSreeni  2 года назад

      I am getting 100+ emails a day asking for help. I wish I had that kind of time and bandwidth to help everyone. Unfortunately, I cannot help with individual projects. I structure my lectures such a way that they are easily digestible by anyone with some basics in python. I do understand that some issues need help which is why I created the Discord server so we can all help each other as community. Here is the link to my Discord server: discord.gg/QFe9dsEn8p

    • @ivangomezlopez5361
      @ivangomezlopez5361 2 года назад

      @@DigitalSreeni thank you very much and sorry for the inconvenience

  • @priyankasinha7
    @priyankasinha7 2 года назад

    Wow...

  • @melissa1343
    @melissa1343 3 года назад

    i can't find the code in github there are many can you help me please

    • @DigitalSreeni
      @DigitalSreeni  3 года назад +1

      Code is organized based on video number, so for video number 141 please look at the file name starting with 141.

    • @melissa1343
      @melissa1343 3 года назад

      @@DigitalSreeni thank you sir

  • @The-KP
    @The-KP 2 года назад

    Hello! You did not have a 'W' column for Whites, or 'A' for Asians -or 'I' as Indian for that matter. Is the 'B' column there to ensure racism is baked into the future?
    Some people are surprised when Google engineers and other FAANG employees come forward to talk about implicit racism. At least here you have explicit racism.
    Good day!

    • @DigitalSreeni
      @DigitalSreeni  2 года назад

      This is the original source of the data used in this python tutorial, a Dataset derived from information collected by the U.S. Census Service concerning housing in the area of Boston Mass. :
      Harrison, D. and Rubinfeld, D.L. `Hedonic prices and the demand for clean air', J. Environ. Economics & Management, vol.5, 81-102, 1978
      Looks like the study was done back in 1978. I am sure there are recent studies that include larger demographics.

  • @junaidlatif2881
    @junaidlatif2881 2 года назад +1

    acc = history.history['mean_absolute_error']
    val_acc = history.history['val_mean_absolute_error']
    plt.plot(epochs, acc, 'y', label='Training MAE')
    plt.plot(epochs, val_acc, 'r', label='Validation MAE')
    plt.title('Training and validation MAE')
    plt.xlabel('Epochs')
    plt.ylabel('Accuracy')
    plt.legend()
    plt.show()
    This code is not working

    • @iangleeson3338
      @iangleeson3338 Год назад

      I think you need to add 'mean_absolute_error' to the metrics list on line 73