{"id":14893,"date":"2019-07-09T09:55:57","date_gmt":"2019-07-09T13:55:57","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/ai-ml-data-science-cross-validation-kfold-cross-validation-concepts-examples-projects\/"},"modified":"2020-02-08T09:40:40","modified_gmt":"2020-02-08T14:40:40","slug":"ai-ml-data-science-cross-validation-kfold-cross-validation-concepts-examples-projects","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=14893","title":{"rendered":"AI\/ML\/Data Science: Cross Validation: KFold Cross validation: Concepts, Examples, Projects"},"content":{"rendered":"<h1>Train\/Test Split and Cross Validation in Python<\/h1>\n<p><a href=\"https:\/\/towardsdatascience.com\/train-test-split-and-cross-validation-in-python-80b61beca4b6\">https:\/\/towardsdatascience.com\/train-test-split-and-cross-validation-in-python-80b61beca4b6<\/a><\/p>\n<h1><a href=\"https:\/\/scikit-learn.org\/stable\/modules\/classes.html#module-sklearn.ensemble\" title=\"sklearn.ensemble\"><code>sklearn.ensemble<\/code><\/a>.RandomForestRegressor<a href=\"https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.ensemble.RandomForestRegressor.html#sklearn-ensemble-randomforestregressor\" title=\"Permalink to this headline\">\u00b6<\/a><\/h1>\n<p><a href=\"https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.ensemble.RandomForestRegressor.html\">https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.ensemble.RandomForestRegressor.html<\/a><\/p>\n<p>&quot;A random forest regressor.<br \/>\nA random forest is a meta estimator that fits a number of classifying decision trees on various sub-samples of the dataset and uses averaging to improve the predictive accuracy and control over-fitting. The sub-sample size is always the same as the original input sample size but the samples are drawn with replacement if <code>bootstrap=True<\/code> (default).&quot;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Train\/Test Split and Cross Validation in Python https:\/\/towardsdatascience.com\/train-test-split-and-cross-validation-in-python-80b61beca4b6 sklearn.ensemble.RandomForestRegressor\u00b6 https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.ensemble.RandomForestRegressor.html &quot;A random forest regressor. A random forest is a meta estimator that fits a number of classifying decision trees on various sub-samples of the dataset and uses averaging to improve the predictive accuracy and control over-fitting. The sub-sample size is always the same as the &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=14893\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1910,182],"tags":[],"class_list":["post-14893","post","type-post","status-publish","format-standard","hentry","category-ai-ml-ds-rl-dl-nn-nlp-data-mining-optimization","category---blog","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":16744,"url":"http:\/\/bangla.sitestree.com\/?p=16744","url_meta":{"origin":14893,"position":0},"title":"Misc. : Classifier Performance and Model Selection","author":"Sayed","date":"February 6, 2020","format":false,"excerpt":"Cross Validation: \" en.wikipedia.org Cross-validation is a resampling procedure used to evaluate machine learning models on a limited data sample. The procedure has a single parameter called k that refers to the number of groups that a given data sample is to be split into. As such, the procedure is\u2026","rel":"","context":"In &quot;AI ML DS RL DL NN NLP Data Mining Optimization&quot;","block_context":{"text":"AI ML DS RL DL NN NLP Data Mining Optimization","link":"http:\/\/bangla.sitestree.com\/?cat=1910"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2020\/02\/image-1.jpeg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":22629,"url":"http:\/\/bangla.sitestree.com\/?p=22629","url_meta":{"origin":14893,"position":1},"title":"Resources for Data Science Based Project Development","author":"Sayed","date":"March 16, 2021","format":false,"excerpt":"Projects mentioned on: http:\/\/sitestree.com\/prediction-bayesian-regression-concepts-example-projects\/ Insurance HealthCare Costs: https:\/\/github.com\/techshot25\/HealthCare Linear and Bayesian modeling in R: Predicting movie popularity https:\/\/towardsdatascience.com\/linear-and-bayesian-modelling-in-r-predicting-movie-popularity-6c8ef0a44184 Bayesian-Stock-Price-Prediction https:\/\/github.com\/lschlessinger1\/Bayesian-Stock-Price-Prediction Bayesian Prediction: Well (Oil) Production https:\/\/github.com\/jpgrana\/bayesian-approach-predicting-well-production Binary Classification on Stock Market (S&P 500) using Naive Bayes and Logistic Regression https:\/\/github.com\/NeilPrabhu\/Stock-Prediction Naive Bayes Weather Prediction https:\/\/github.com\/husnainfareed\/simple-naive-bayes-weather-prediction\/blob\/master\/bayes.py Regression Predict Fuel Efficiency: https:\/\/www.tensorflow.org\/tutorials\/keras\/basic_regression\u2026","rel":"","context":"In &quot;\u09ac\u09cd\u09b2\u0997 \u0964 Blog&quot;","block_context":{"text":"\u09ac\u09cd\u09b2\u0997 \u0964 Blog","link":"http:\/\/bangla.sitestree.com\/?cat=182"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":20577,"url":"http:\/\/bangla.sitestree.com\/?p=20577","url_meta":{"origin":14893,"position":2},"title":"Machine Learning (and related) Resources as may have consulted in the past","author":"Sayed","date":"February 23, 2021","format":false,"excerpt":"References Projects mentioned on: http:\/\/sitestree.com\/prediction-bayesian-regression-concepts-example-projects\/ Insurance HealthCare Costs: https:\/\/github.com\/techshot25\/HealthCare Linear and Bayesian modeling in R: Predicting movie popularity https:\/\/towardsdatascience.com\/linear-and-bayesian-modelling-in-r-predicting-movie-popularity-6c8ef0a44184 Bayesian-Stock-Price-Prediction https:\/\/github.com\/lschlessinger1\/Bayesian-Stock-Price-Prediction Bayesian Prediction: Well (Oil) Production https:\/\/github.com\/jpgrana\/bayesian-approach-predicting-well-production Binary Classification on Stock Market (S&P 500) using Naive Bayes and Logistic Regression https:\/\/github.com\/NeilPrabhu\/Stock-Prediction Naive Bayes Weather Prediction https:\/\/github.com\/husnainfareed\/simple-naive-bayes-weather-prediction\/blob\/master\/bayes.py Regression Predict Fuel Efficiency:\u2026","rel":"","context":"In &quot;\u09ac\u09cd\u09b2\u0997 \u0964 Blog&quot;","block_context":{"text":"\u09ac\u09cd\u09b2\u0997 \u0964 Blog","link":"http:\/\/bangla.sitestree.com\/?cat=182"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":78242,"url":"http:\/\/bangla.sitestree.com\/?p=78242","url_meta":{"origin":14893,"position":3},"title":"Statistics for Data Analytics and Machine Learning Projects","author":"Sayed","date":"May 22, 2025","format":false,"excerpt":"\u2022Null Hypothesis \u2022[2] \u2022Paired t-test \u2022Unpaired t-test \u2022Pearson Correlation \u2022One Way: Analysis of variance \u2022Spearman Correlation \u2022Spearman \u2022Kendal Tau Coef \u2022Wilcoxon Sum test \u2022Basic EDA \u2022Mcnaimer\u2019s test \u2022Friedman test \u2022Kruskal-Wallis Test \u2022Two Way Analysis of variance \u2022K-Fold Cross Validation paired t-test \u2022Wilcoxon Signed Rank Test Data Analytics, Machine Learning, Data\u2026","rel":"","context":"In &quot;Analytics and Machine Learning Project Development&quot;","block_context":{"text":"Analytics and Machine Learning Project Development","link":"http:\/\/bangla.sitestree.com\/?cat=1974"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/05\/image-37.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/05\/image-37.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/05\/image-37.png?resize=525%2C300 1.5x"},"classes":[]},{"id":76091,"url":"http:\/\/bangla.sitestree.com\/?p=76091","url_meta":{"origin":14893,"position":4},"title":"Spearman Correlation Coefficient and Graph Mining","author":"Sayed","date":"May 19, 2024","format":false,"excerpt":"#!\/usr\/bin\/env python coding: utf-8 # 3rd Model: Deepgraph CNN: Stock Price Prediction using DeepGraphCNN Neural Networks. It includes GCN layers and CNN layers. I have added an MLP at the last layer to predict stock prices. # # Input graphs were created for spearman, Spearman, and Kendal Tau correlations\/coefficients from\u2026","rel":"","context":"In &quot;\u09ac\u09cd\u09b2\u0997 \u0964 Blog&quot;","block_context":{"text":"\u09ac\u09cd\u09b2\u0997 \u0964 Blog","link":"http:\/\/bangla.sitestree.com\/?cat=182"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":16296,"url":"http:\/\/bangla.sitestree.com\/?p=16296","url_meta":{"origin":14893,"position":5},"title":"Deep Learning (DL): can you answer these introductory questions on DL? Target: Starters in DL","author":"Sayed","date":"October 5, 2019","format":false,"excerpt":"Deep Learning - 001: Introduction to Deep Learning. Deep Learning (DL): can you answer these introductory questions on DL? Target: Starters in DL Can you define AI, ML, DL? Can you draw a diagram to show the relations of AI, ML, DL? What is Symbolic AI? Is Symbolic AI good\u2026","rel":"","context":"In &quot;\u09ac\u09cd\u09b2\u0997 \u0964 Blog&quot;","block_context":{"text":"\u09ac\u09cd\u09b2\u0997 \u0964 Blog","link":"http:\/\/bangla.sitestree.com\/?cat=182"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/14893","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14893"}],"version-history":[{"count":1,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/14893\/revisions"}],"predecessor-version":[{"id":16771,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/14893\/revisions\/16771"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14893"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}