141 - Regression using Neural Networks and comparison to other models

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ต.ค. 2024

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

  • @developer_novice4237
    @developer_novice4237 9 หลายเดือนก่อน +5

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

  • @ДенисТараканов-ъ5г
    @ДенисТараканов-ъ5г ปีที่แล้ว +1

    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!!

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

    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?

  • @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

  • @sam-kw7up
    @sam-kw7up 3 ปีที่แล้ว +4

    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 3 ปีที่แล้ว

      It's random..you can choose any.

  • @ShiftKoncepts
    @ShiftKoncepts 9 หลายเดือนก่อน

    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.

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

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

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

    Wonderful ! Thank you for the video Sreeni.

  • @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

  • @SS-zq5sc
    @SS-zq5sc ปีที่แล้ว

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

  • @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?

  • @dudefromsa
    @dudefromsa 3 ปีที่แล้ว +1

    This was actually awesome. Really enjoyed it

  • @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

  • @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?

  • @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

  • @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 :)

  • @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 ?

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

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

  • @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?

  • @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? 😔

  • @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 ?

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

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

  • @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

  • @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!

  • @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 .

  • @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.

  • @michelematsuo8996
    @michelematsuo8996 3 ปีที่แล้ว +1

    Yor channel is very useful! Thanks!

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

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

  • @alishaparveen3603
    @alishaparveen3603 3 ปีที่แล้ว +1

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

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

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

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

    Love this tutorial... ❤ Sir. Thanks

  • @sajansudhir1859
    @sajansudhir1859 3 ปีที่แล้ว

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

  • @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

  • @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.

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

    Which architecture has been used here?

  • @MSingh-jq5me
    @MSingh-jq5me 4 ปีที่แล้ว +2

    Amazing Sir!

  • @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?

  • @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

  • @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

  • @mojtabaparvizi538
    @mojtabaparvizi538 3 ปีที่แล้ว

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

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

    Love the video man!

  • @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?

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

    Amazing!!! Thank you!!

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

    fantastic

  • @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

  • @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.

  • @samarafroz9852
    @samarafroz9852 4 ปีที่แล้ว

    Nice tutorial sir

  • @Amin-ez2ps
    @Amin-ez2ps 2 ปีที่แล้ว

    LOVE U

  • @ManishKumar-rz9ub
    @ManishKumar-rz9ub 10 วันที่ผ่านมา

    Loss is coming as loss: nan.
    Epoch 1/100
    11/11 ━━━━━━━━━━━━━━━━━━━━ 0s 7ms/step - loss: nan - mae: nan - val_loss: nan - val_mae: nan
    Epoch 2/100
    11/11 ━━━━━━━━━━━━━━━━━━━━ 0s 2ms/step - loss: nan - mae: nan - val_loss: nan - val_mae: nan
    Epoch 3/100
    11/11 ━━━━━━━━━━━━━━━━━━━━ 0s 2ms/step - loss: nan - mae: nan - val_loss: nan - val_mae: nan
    Epoch 4/100
    11/11 ━━━━━━━━━━━━━━━━━━━━ 0s 2ms/step - loss: nan - mae: nan - val_loss: nan - val_mae: nan

  • @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

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

    Ty

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

    Wow...

  • @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 2 ปีที่แล้ว

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