Комментарии:
I would be best if you had provided link of the dataset for the practice and confirmation.
Thanks.
Hello very nice video, but ONE QUESTION, what is the train/ test ratio in every iteration when you use stratiified k cross validation. I mean somehow combining stratified k fold cross validation with train test split
ОтветитьThis video could have been better.
ОтветитьYou are a saviour!
ОтветитьWe are living in a wonderful universe
ОтветитьKrish, In K fold validation, You fitted the classifier on diff sets of X train and Y train and got the different accuracies. This is fine to evaluate the model but you didn't mention on which data we need to train the model if we want to evaluate the performance using k fold. Are we going to train our classifier on full data i.e. X and Y? Final model which we want to use later on should be trained on full dataset?
ОтветитьHello Krish sir...What if need to perform customize prediction. I do need to perform classifier. predict(test). But in my code it shows me feature name missing. I'm using the Pima Diabetes dataset in kaggle
Ответитьhow about precision, recall and f-measure?
ОтветитьI love your content, it is very helpful. You are a treasure. But this video would have been loads better if you slowly allowed students to copy over the code.
ОтветитьSir plz upload github link also
Ответитьis this video notebook available in gitbut @krish
Ответитьso clear explanation
thanks
How can I find roc curve and confusion matrix from this project in all Train Test Split vs K Fold vs Stratified K fold Cross Validation please give us a video of this.
ОтветитьY.iloc[number] is not working. Error is
AttributeError: 'numpy.ndarray' object has no attribute 'iloc'
great video, thank you!
ОтветитьI've been wondering for this topic for a while, very happy to find your content!!!
ОтветитьThanks for very clear explanation Krish..can u pls share github link also
Ответитьhigher bias does not necessarily mean a good accuracy, best one is low variance and low bias
Ответитьwith stratified k-fold the only difference is that the classes of type Yes and No are also considered when choosing the test size and the rest of it is the same as k fold cross validation is that so
ОтветитьBy selecting n_splits as 4, i got highest accyracy in the 4th ie the last fold.. any idea on how to extract the exact dataset fed to train test so that i can replicate the output of the 4th split???
ОтветитьHow to get confusion matrix and auc roc curve after k fold varification?
ОтветитьHow to get confusion matrix after cross validation
Ответитьwhere can i get the dataset set 🙏
ОтветитьMay I have ur mail-id sir
ОтветитьHello sir can you share your Jupyter notebook, please.
Ответитьcross value is coming what does it mean
ОтветитьThank you for teaching can I get a link to the notebook.
Ответитьwow this is very enlightening!!!! thank you sir! one question tho. what if we need to have the confusion matrix? I am using Repeated Stratified K-Fold, and im curious on how to obtain a reasonable and easy to execute confusion matrix. Any suggestion on this?
ОтветитьIsn't stratified validation by default included in cross_val_score library..
ОтветитьHi Kris,
When we use cross_val_score and give the paramter to cv as int which tells about number of folds and if the model we are using is classification it chooses stratified by default right and not k-Fold type of cross validation. I found this in the sklearn library
cv: int, cross-validation generator or an iterable, default=None
Determines the cross-validation splitting strategy. Possible inputs for cv are:
1)None, to use the default 5-fold cross validation,
2)int, to specify the number of folds in a (Stratified)KFold,
3)CV splitter,
4)An iterable yielding (train, test) splits as arrays of indices.
For int/None inputs, if the estimator is a classifier and y is either binary or multiclass, StratifiedKFold is used. In all other cases, KFold is used.
This is just a query. Please let me know if my understanding is wrong.
Thank you! Keep going with other vids tutorial!!
ОтветитьIf i have 1000 rows in dataset. Then how can select first 200 rows for testing and last 800 rows for training instead of select randomly in splitting?
ОтветитьHello Krish
I have subscribed to your 799 plan, please let me know how i can add myself to your whatsapp group
Sir your content is great, thanks for uploading such important and informational videos. These videos are very helpful. Keep making these, more power to you. <3
ОтветитьSo my understanding is with cross-validation we can look up what is the achievable score however it lacks interpretability likeability to make confusion matrix out of it.
Ответитьthanks man
ОтветитьGud sir, I like your videos very much, sir I have a question that, in K fold validation, after score value getting how can i make confusion matrix sir....?
ОтветитьNamaskar Krish Ji! Great video, well done. The question I have is regarding the imbalanced dataset and StratifiedKFold validation. Taking your example of Churn, lets say your churn rate is 1% which means in total 50k observations your churners are 500. Now, because your data is high imbalanced with very rare events, suppose you want to do some balancing (over , under or both) and then do the stratifiedkfold validation. How would stratifiedkfold validation work in this case? Will stratifiedkfold validation take test data (lets say 10%) without balancing and build model on balanced dataset (90%), hence we would know the validation is done on real data? Or even validation is done on balanced data? If later, we would need a separate test dataset to see how model fits on real unbalanced dataset, isn't it? I hope its clear. thanks Sachin
ОтветитьHow different is this from in setting the stratify parameter (stratify=y) while splitting the data using train_test_split?
Ответитьsir in terms of skf you have miss the line nubmber 86. skf = StratifiedKFold()
Ответитьexcellent work
ОтветитьCan you provide the link of source code...
ОтветитьHello Sir, Stratified K fold works only for categorical and multiclass target variables. What if the target variable is continuous? Binning the target variable is the solution ?
Thanks
just awesome!!!!
But can it be possible that you also share GIT repository for its code
Hello Sir, Thanks for the wonderful explanation. However I have a naive question to ask, How is RandomizedSearchCV and GridSearchCV different from K-Fold, Stratified K-Fold?
Ответить