{
  "id": 294928,
  "title": "[Compilation] - 5 Feature Engineering Notebooks for newcomers joining in",
  "url": "/competitions/g-research-crypto-forecasting/discussion/294928",
  "author_name": "",
  "post_date": "2021-12-13T14:45:24.468817Z",
  "votes": 19,
  "comment_count": 5,
  "views": 0,
  "content": "<p>Hi Guys, </p>\n<p>I prepared some feature engineering notebooks for all of you to play around with!</p>\n<p>The Basic idea of those notebooks is to provide some simple \"cookbook\" for feature engineering functions you can all copy&amp;paste from! <br>\nThey basically all have lists of feature engineering functions of different kinds and a demo for each function usage! </p>\n<h2>The Notebooks:</h2>\n<hr>\n<p><strong><a href=\"https://www.kaggle.com/yamqwe/g-research-avoid-overfit-feature-neutralization/\" target=\"_blank\">Neutralization</a></strong><br>\nNeutralization is a technique used to battle overfitting. The main idea is to use a small linear model and subtract it's prediction from the target / features. Doing so, we \"neutralize\" the linear market trend effect on the features / target and allow our models to learn only from the \"unique\" information presented in the data.</p>\n<hr>\n<p><strong><a href=\"https://www.kaggle.com/yamqwe/features-all-time-series-aggregations-ever\" target=\"_blank\">Time Series Agg</a></strong><br>\nA huge collection of Window-based aggregation functions (groupby-&gt;agg) that can be used via a simple interface to generate features. </p>\n<hr>\n<p><strong><a href=\"https://www.kaggle.com/yamqwe/crypto-prediction-technical-analysis-features\" target=\"_blank\">Technical Analysis #1</a></strong></p>\n<p>Simple technical analysis feature extraction notebook that can be used as features for a model.</p>\n<hr>\n<p><strong><a href=\"https://www.kaggle.com/yamqwe/crypto-prediction-technical-analysis-feats-2\" target=\"_blank\">Technical Analysis #2</a></strong></p>\n<p>A bit more complex than the first notebook: This is a large collection of technical analysis indicators written in python (refactored by myself), all are tested and can be used as features. </p>\n<hr>\n<p><strong><a href=\"https://www.kaggle.com/yamqwe/crypto-prediction-volatility-features\" target=\"_blank\">Volatility Features</a></strong></p>\n<p>Features that are based on common financial Volatility estimation methods. </p>\n<hr>\n<p>Hope it helps fellow Kagglers!<br>\nHappy Kaggling!</p>",
  "messages": [
    {
      "id": "1616621",
      "postDate": "12/13/2021 14:45:24",
      "content": "<p>Hi Guys, </p>\n<p>I prepared some feature engineering notebooks for all of you to play around with!</p>\n<p>The Basic idea of those notebooks is to provide some simple \"cookbook\" for feature engineering functions you can all copy&amp;paste from! <br>\nThey basically all have lists of feature engineering functions of different kinds and a demo for each function usage! </p>\n<h2>The Notebooks:</h2>\n<hr>\n<p><strong><a href=\"https://www.kaggle.com/yamqwe/g-research-avoid-overfit-feature-neutralization/\" target=\"_blank\">Neutralization</a></strong><br>\nNeutralization is a technique used to battle overfitting. The main idea is to use a small linear model and subtract it's prediction from the target / features. Doing so, we \"neutralize\" the linear market trend effect on the features / target and allow our models to learn only from the \"unique\" information presented in the data.</p>\n<hr>\n<p><strong><a href=\"https://www.kaggle.com/yamqwe/features-all-time-series-aggregations-ever\" target=\"_blank\">Time Series Agg</a></strong><br>\nA huge collection of Window-based aggregation functions (groupby-&gt;agg) that can be used via a simple interface to generate features. </p>\n<hr>\n<p><strong><a href=\"https://www.kaggle.com/yamqwe/crypto-prediction-technical-analysis-features\" target=\"_blank\">Technical Analysis #1</a></strong></p>\n<p>Simple technical analysis feature extraction notebook that can be used as features for a model.</p>\n<hr>\n<p><strong><a href=\"https://www.kaggle.com/yamqwe/crypto-prediction-technical-analysis-feats-2\" target=\"_blank\">Technical Analysis #2</a></strong></p>\n<p>A bit more complex than the first notebook: This is a large collection of technical analysis indicators written in python (refactored by myself), all are tested and can be used as features. </p>\n<hr>\n<p><strong><a href=\"https://www.kaggle.com/yamqwe/crypto-prediction-volatility-features\" target=\"_blank\">Volatility Features</a></strong></p>\n<p>Features that are based on common financial Volatility estimation methods. </p>\n<hr>\n<p>Hope it helps fellow Kagglers!<br>\nHappy Kaggling!</p>",
      "rawMarkdown": "Hi Guys, \n\nI prepared some feature engineering notebooks for all of you to play around with!\n\nThe Basic idea of those notebooks is to provide some simple \"cookbook\" for feature engineering functions you can all copy&paste from! \nThey basically all have lists of feature engineering functions of different kinds and a demo for each function usage! \n\n## The Notebooks:\n\n____\n\n\n**[Neutralization](https://www.kaggle.com/yamqwe/g-research-avoid-overfit-feature-neutralization/)**\nNeutralization is a technique used to battle overfitting. The main idea is to use a small linear model and subtract it's prediction from the target / features. Doing so, we \"neutralize\" the linear market trend effect on the features / target and allow our models to learn only from the \"unique\" information presented in the data.\n_____\n\n**[Time Series Agg](https://www.kaggle.com/yamqwe/features-all-time-series-aggregations-ever)**\nA huge collection of Window-based aggregation functions (groupby->agg) that can be used via a simple interface to generate features. \n\n_____\n**[Technical Analysis #1](https://www.kaggle.com/yamqwe/crypto-prediction-technical-analysis-features)**\n\nSimple technical analysis feature extraction notebook that can be used as features for a model.\n\n_____\n\n**[Technical Analysis #2](https://www.kaggle.com/yamqwe/crypto-prediction-technical-analysis-feats-2)**\n\nA bit more complex than the first notebook: This is a large collection of technical analysis indicators written in python (refactored by myself), all are tested and can be used as features. \n\n_____\n\n**[Volatility Features](https://www.kaggle.com/yamqwe/crypto-prediction-volatility-features)**\n\nFeatures that are based on common financial Volatility estimation methods. \n\n____\n\nHope it helps fellow Kagglers!\nHappy Kaggling!",
      "votes": null
    },
    {
      "id": "1620057",
      "postDate": "12/16/2021 11:48:06",
      "content": "<p>Very nice collection of notebooks <a href=\"https://www.kaggle.com/yamqwe\" target=\"_blank\">@yamqwe</a> !<br>\nYou can also check out the new <a href=\"https://github.com/AutoViML/featurewiz\" target=\"_blank\">featurewiz library</a> that creates most of these time series features and also helps you select the best features with just a couple of lines of code. It also runs on DASK which means that it can process millions of rows using parallelization. That could mean tremendous savings in time and effort.<br>\nLet me know after you have taken a look and may be you can write a notebook about it.<br>\nRam</p>",
      "rawMarkdown": "Very nice collection of notebooks @yamqwe !\nYou can also check out the new [featurewiz library](https://github.com/AutoViML/featurewiz) that creates most of these time series features and also helps you select the best features with just a couple of lines of code. It also runs on DASK which means that it can process millions of rows using parallelization. That could mean tremendous savings in time and effort.\nLet me know after you have taken a look and may be you can write a notebook about it.\nRam",
      "votes": null
    },
    {
      "id": "1620071",
      "postDate": "12/16/2021 12:08:25",
      "content": "<p><a href=\"https://www.kaggle.com/yamqwe\" target=\"_blank\">@yamqwe</a> :<br>\nHere is another notebook that might help you and others win Kaggle competitions since I have used this notebook extensively to score high ranks in the following competitions:</p>\n<p><a href=\"https://www.kaggle.com/rsesha/featurewiz-kaggle-template\" target=\"_blank\">Featurewiz Kaggle Template</a></p>\n<h2>The above Featurewiz+SimpleXGBModel Template has Received Top Scores in Multiple Hackathons - Current Ranks in the following Hackathons are:</h2>\n<p>AnalyticsVidhya Hackathons: <a href=\"https://datahack.analyticsvidhya.com/contest/all/\" target=\"_blank\">https://datahack.analyticsvidhya.com/contest/all/</a></p>\n<ol>\n<li>Big_Mart Sales Prediction Score: 1147  -- Rank 250 out of 41,361 = That's a Top &lt;1% Rank!!</li>\n<li>Loan Status Predictions Score 0.791  -- Rank 850 out of 67,424 - Top 1.25% Rank</li>\n</ol>\n<p>Machine Hack Hackathons: <a href=\"https://www.machinehack.com/hackathon\" target=\"_blank\">https://www.machinehack.com/hackathon</a></p>\n<ol>\n<li>Machine Hack Flight Ticket Score 0.9389 -- Rank 165 out of 2723 - Top 6% Rank!</li>\n<li>Machine Hack Data Scientist Salary class Score 0.417 -- Rank 58 out of 1547 - Top 3.7% Rank! (Autoviml Score was 0.329 -- less than 0.417 of Featurewiz+Simple even though an NLP problem!)</li>\n<li>MCHACK Book Price NLP Score 0.7336 -- Rank 104 Autoviml NLP problem and should have done better</li>\n</ol>",
      "rawMarkdown": "yamqwe :\nHere is another notebook that might help you and others win Kaggle competitions since I have used this notebook extensively to score high ranks in the following competitions:\n\n[Featurewiz Kaggle Template](https://www.kaggle.com/rsesha/featurewiz-kaggle-template)\n\n## The above Featurewiz+SimpleXGBModel Template has Received Top Scores in Multiple Hackathons - Current Ranks in the following Hackathons are:\nAnalyticsVidhya Hackathons: https://datahack.analyticsvidhya.com/contest/all/\n1.  Big_Mart Sales Prediction Score: 1147  -- Rank 250 out of 41,361 = That's a Top <1% Rank!!\n1.  Loan Status Predictions Score 0.791  -- Rank 850 out of 67,424 - Top 1.25% Rank\n\nMachine Hack Hackathons: https://www.machinehack.com/hackathon\n1.  Machine Hack Flight Ticket Score 0.9389 -- Rank 165 out of 2723 - Top 6% Rank!\n1.  Machine Hack Data Scientist Salary class Score 0.417 -- Rank 58 out of 1547 - Top 3.7% Rank! (Autoviml Score was 0.329 -- less than 0.417 of Featurewiz+Simple even though an NLP problem!)\n1.  MCHACK Book Price NLP Score 0.7336 -- Rank 104 Autoviml NLP problem and should have done better",
      "votes": null
    },
    {
      "id": "1621953",
      "postDate": "12/18/2021 08:34:47",
      "content": "<p>Quick question, apart from derived features from High, Low, Volume, count none of it are given. So since train dataset is not updated and leadtime is 3 months in batches we will not able able to use any rolling time series features in the model as train data will have it filled as nulls.</p>",
      "rawMarkdown": "Quick question, apart from derived features from High, Low, Volume, count none of it are given. So since train dataset is not updated and leadtime is 3 months in batches we will not able able to use any rolling time series features in the model as train data will have it filled as nulls.",
      "votes": null
    },
    {
      "id": "1629602",
      "postDate": "12/26/2021 10:51:11",
      "content": "<p>Thank you 👍</p>",
      "rawMarkdown": "Thank you 👍",
      "votes": null
    },
    {
      "id": "1630265",
      "postDate": "12/27/2021 05:51:42",
      "content": "<p>can't they be accumulated during predictions?</p>",
      "rawMarkdown": "can't they be accumulated during predictions?",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1620057,
      "author_name": "rsesha",
      "author_url": "",
      "post_date": "12/16/2021 11:48:06",
      "content": "<p>Very nice collection of notebooks <a href=\"https://www.kaggle.com/yamqwe\" target=\"_blank\">@yamqwe</a> !<br>\nYou can also check out the new <a href=\"https://github.com/AutoViML/featurewiz\" target=\"_blank\">featurewiz library</a> that creates most of these time series features and also helps you select the best features with just a couple of lines of code. It also runs on DASK which means that it can process millions of rows using parallelization. That could mean tremendous savings in time and effort.<br>\nLet me know after you have taken a look and may be you can write a notebook about it.<br>\nRam</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1620071,
      "author_name": "rsesha",
      "author_url": "",
      "post_date": "12/16/2021 12:08:25",
      "content": "<p><a href=\"https://www.kaggle.com/yamqwe\" target=\"_blank\">@yamqwe</a> :<br>\nHere is another notebook that might help you and others win Kaggle competitions since I have used this notebook extensively to score high ranks in the following competitions:</p>\n<p><a href=\"https://www.kaggle.com/rsesha/featurewiz-kaggle-template\" target=\"_blank\">Featurewiz Kaggle Template</a></p>\n<h2>The above Featurewiz+SimpleXGBModel Template has Received Top Scores in Multiple Hackathons - Current Ranks in the following Hackathons are:</h2>\n<p>AnalyticsVidhya Hackathons: <a href=\"https://datahack.analyticsvidhya.com/contest/all/\" target=\"_blank\">https://datahack.analyticsvidhya.com/contest/all/</a></p>\n<ol>\n<li>Big_Mart Sales Prediction Score: 1147  -- Rank 250 out of 41,361 = That's a Top &lt;1% Rank!!</li>\n<li>Loan Status Predictions Score 0.791  -- Rank 850 out of 67,424 - Top 1.25% Rank</li>\n</ol>\n<p>Machine Hack Hackathons: <a href=\"https://www.machinehack.com/hackathon\" target=\"_blank\">https://www.machinehack.com/hackathon</a></p>\n<ol>\n<li>Machine Hack Flight Ticket Score 0.9389 -- Rank 165 out of 2723 - Top 6% Rank!</li>\n<li>Machine Hack Data Scientist Salary class Score 0.417 -- Rank 58 out of 1547 - Top 3.7% Rank! (Autoviml Score was 0.329 -- less than 0.417 of Featurewiz+Simple even though an NLP problem!)</li>\n<li>MCHACK Book Price NLP Score 0.7336 -- Rank 104 Autoviml NLP problem and should have done better</li>\n</ol>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1621953,
      "author_name": "prashanththangavel",
      "author_url": "",
      "post_date": "12/18/2021 08:34:47",
      "content": "<p>Quick question, apart from derived features from High, Low, Volume, count none of it are given. So since train dataset is not updated and leadtime is 3 months in batches we will not able able to use any rolling time series features in the model as train data will have it filled as nulls.</p>",
      "votes": null,
      "replies": [
        {
          "id": 1630265,
          "author_name": "sapr3s",
          "author_url": "",
          "post_date": "12/27/2021 05:51:42",
          "content": "<p>can't they be accumulated during predictions?</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1629602,
      "author_name": "aiizloli",
      "author_url": "",
      "post_date": "12/26/2021 10:51:11",
      "content": "<p>Thank you 👍</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1616621": "Hi Guys, \n\nI prepared some feature engineering notebooks for all of you to play around with!\n\nThe Basic idea of those notebooks is to provide some simple \"cookbook\" for feature engineering functions you can all copy&paste from! \nThey basically all have lists of feature engineering functions of different kinds and a demo for each function usage! \n\n## The Notebooks:\n\n____\n\n\n**[Neutralization](https://www.kaggle.com/yamqwe/g-research-avoid-overfit-feature-neutralization/)**\nNeutralization is a technique used to battle overfitting. The main idea is to use a small linear model and subtract it's prediction from the target / features. Doing so, we \"neutralize\" the linear market trend effect on the features / target and allow our models to learn only from the \"unique\" information presented in the data.\n_____\n\n**[Time Series Agg](https://www.kaggle.com/yamqwe/features-all-time-series-aggregations-ever)**\nA huge collection of Window-based aggregation functions (groupby->agg) that can be used via a simple interface to generate features. \n\n_____\n**[Technical Analysis #1](https://www.kaggle.com/yamqwe/crypto-prediction-technical-analysis-features)**\n\nSimple technical analysis feature extraction notebook that can be used as features for a model.\n\n_____\n\n**[Technical Analysis #2](https://www.kaggle.com/yamqwe/crypto-prediction-technical-analysis-feats-2)**\n\nA bit more complex than the first notebook: This is a large collection of technical analysis indicators written in python (refactored by myself), all are tested and can be used as features. \n\n_____\n\n**[Volatility Features](https://www.kaggle.com/yamqwe/crypto-prediction-volatility-features)**\n\nFeatures that are based on common financial Volatility estimation methods. \n\n____\n\nHope it helps fellow Kagglers!\nHappy Kaggling!",
    "1620057": "Very nice collection of notebooks @yamqwe !\nYou can also check out the new [featurewiz library](https://github.com/AutoViML/featurewiz) that creates most of these time series features and also helps you select the best features with just a couple of lines of code. It also runs on DASK which means that it can process millions of rows using parallelization. That could mean tremendous savings in time and effort.\nLet me know after you have taken a look and may be you can write a notebook about it.\nRam",
    "1620071": "yamqwe :\nHere is another notebook that might help you and others win Kaggle competitions since I have used this notebook extensively to score high ranks in the following competitions:\n\n[Featurewiz Kaggle Template](https://www.kaggle.com/rsesha/featurewiz-kaggle-template)\n\n## The above Featurewiz+SimpleXGBModel Template has Received Top Scores in Multiple Hackathons - Current Ranks in the following Hackathons are:\nAnalyticsVidhya Hackathons: https://datahack.analyticsvidhya.com/contest/all/\n1.  Big_Mart Sales Prediction Score: 1147  -- Rank 250 out of 41,361 = That's a Top <1% Rank!!\n1.  Loan Status Predictions Score 0.791  -- Rank 850 out of 67,424 - Top 1.25% Rank\n\nMachine Hack Hackathons: https://www.machinehack.com/hackathon\n1.  Machine Hack Flight Ticket Score 0.9389 -- Rank 165 out of 2723 - Top 6% Rank!\n1.  Machine Hack Data Scientist Salary class Score 0.417 -- Rank 58 out of 1547 - Top 3.7% Rank! (Autoviml Score was 0.329 -- less than 0.417 of Featurewiz+Simple even though an NLP problem!)\n1.  MCHACK Book Price NLP Score 0.7336 -- Rank 104 Autoviml NLP problem and should have done better",
    "1621953": "Quick question, apart from derived features from High, Low, Volume, count none of it are given. So since train dataset is not updated and leadtime is 3 months in batches we will not able able to use any rolling time series features in the model as train data will have it filled as nulls.",
    "1629602": "Thank you 👍",
    "1630265": "can't they be accumulated during predictions?"
  },
  "source": "meta"
}