{
  "id": 21872,
  "title": "Can Pyspark be used for this dataset?",
  "url": "/competitions/avazu-ctr-prediction/discussion/21872",
  "author_name": "",
  "post_date": "2016-06-24T12:53:02.553Z",
  "votes": 1,
  "comment_count": 3,
  "views": 1019,
  "content": "<p>I am trying to use Pyspark(on AWS cluster) on this dataset but I am facing challenges, like <strong>feature selection and feature engineering</strong>. And I have doubt can this technique be used for much bigger datasets(suppose &gt; 1 TB)?Any Suggestions are greatly appreciated.</p>",
  "messages": [
    {
      "id": "125000",
      "postDate": "06/24/2016 12:53:02",
      "content": "<p>I am trying to use Pyspark(on AWS cluster) on this dataset but I am facing challenges, like <strong>feature selection and feature engineering</strong>. And I have doubt can this technique be used for much bigger datasets(suppose &gt; 1 TB)?Any Suggestions are greatly appreciated.</p>",
      "rawMarkdown": "I am trying to use Pyspark(on AWS cluster) on this dataset but I am facing challenges, like **feature selection and feature engineering**. And I have doubt can this technique be used for much bigger datasets(suppose > 1 TB)?Any Suggestions are greatly appreciated.",
      "votes": null
    },
    {
      "id": "145395",
      "postDate": "11/18/2016 02:53:16",
      "content": "<p>As of Nov'16, Pyspark doesn't have any feature selection algorithms integrated with it. If you want to use the Spark environment for feature selection then i would recommend using the Scala API which has a feature importance algorithm integrated(1). But, if you're not comfortable with Scala and would like to use Python instead, then you can make use of the Scikit-learn - Spark integration package from the link mentioned below(2). Scikit has an extra-trees classifier which can be used to calculate feature importance(3). By integrating Scikit and Spark you can perform feature engineering. </p>\n\n<p>1) Feature selection - Scala - <a href=\"https://issues.apache.org/jira/browse/SPARK-5133\">https://issues.apache.org/jira/browse/SPARK-5133</a>.</p>\n\n<p>2) <a href=\"https://github.com/databricks/spark-sklearn\">https://github.com/databricks/spark-sklearn</a>.</p>\n\n<p>3) <a href=\"http://scikit-learn.org/stable/modules/generated/sklearn.ensemble.ExtraTreesClassifier.html\">http://scikit-learn.org/stable/modules/generated/sklearn.ensemble.ExtraTreesClassifier.html</a></p>\n\n<p>Cheers!</p>\n\n<p>Rishi</p>",
      "rawMarkdown": "As of Nov'16, Pyspark doesn't have any feature selection algorithms integrated with it. If you want to use the Spark environment for feature selection then i would recommend using the Scala API which has a feature importance algorithm integrated(1). But, if you're not comfortable with Scala and would like to use Python instead, then you can make use of the Scikit-learn - Spark integration package from the link mentioned below(2). Scikit has an extra-trees classifier which can be used to calculate feature importance(3). By integrating Scikit and Spark you can perform feature engineering. \r\n\r\n1) Feature selection - Scala - https://issues.apache.org/jira/browse/SPARK-5133.\r\n\r\n2) https://github.com/databricks/spark-sklearn.\r\n\r\n3) http://scikit-learn.org/stable/modules/generated/sklearn.ensemble.ExtraTreesClassifier.html\r\n\r\nCheers!\r\n\r\nRishi",
      "votes": null
    },
    {
      "id": "148206",
      "postDate": "12/03/2016 16:29:55",
      "content": "<p>Great, Thanks Rishi for the suggestion. I will definitely try that.</p>",
      "rawMarkdown": "Great, Thanks Rishi for the suggestion. I will definitely try that.",
      "votes": null
    },
    {
      "id": "150679",
      "postDate": "12/16/2016 10:28:38",
      "content": "<p>I am using PySpark for preprocessing and building the feature vectors for a similar competition. In this EDA, I show some features of PySpark SQL DataFrame: <a href=\"https://www.kaggle.com/gspmoreira/outbrain-click-prediction/unveiling-page-views-csv-with-pyspark\">https://www.kaggle.com/gspmoreira/outbrain-click-prediction/unveiling-page-views-csv-with-pyspark</a></p>",
      "rawMarkdown": "I am using PySpark for preprocessing and building the feature vectors for a similar competition. In this EDA, I show some features of PySpark SQL DataFrame: https://www.kaggle.com/gspmoreira/outbrain-click-prediction/unveiling-page-views-csv-with-pyspark",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 145395,
      "author_name": "rishisankineni",
      "author_url": "",
      "post_date": "11/18/2016 02:53:16",
      "content": "<p>As of Nov'16, Pyspark doesn't have any feature selection algorithms integrated with it. If you want to use the Spark environment for feature selection then i would recommend using the Scala API which has a feature importance algorithm integrated(1). But, if you're not comfortable with Scala and would like to use Python instead, then you can make use of the Scikit-learn - Spark integration package from the link mentioned below(2). Scikit has an extra-trees classifier which can be used to calculate feature importance(3). By integrating Scikit and Spark you can perform feature engineering. </p>\n\n<p>1) Feature selection - Scala - <a href=\"https://issues.apache.org/jira/browse/SPARK-5133\">https://issues.apache.org/jira/browse/SPARK-5133</a>.</p>\n\n<p>2) <a href=\"https://github.com/databricks/spark-sklearn\">https://github.com/databricks/spark-sklearn</a>.</p>\n\n<p>3) <a href=\"http://scikit-learn.org/stable/modules/generated/sklearn.ensemble.ExtraTreesClassifier.html\">http://scikit-learn.org/stable/modules/generated/sklearn.ensemble.ExtraTreesClassifier.html</a></p>\n\n<p>Cheers!</p>\n\n<p>Rishi</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 148206,
      "author_name": "vinodpathak1991",
      "author_url": "",
      "post_date": "12/03/2016 16:29:55",
      "content": "<p>Great, Thanks Rishi for the suggestion. I will definitely try that.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 150679,
      "author_name": "gspmoreira",
      "author_url": "",
      "post_date": "12/16/2016 10:28:38",
      "content": "<p>I am using PySpark for preprocessing and building the feature vectors for a similar competition. In this EDA, I show some features of PySpark SQL DataFrame: <a href=\"https://www.kaggle.com/gspmoreira/outbrain-click-prediction/unveiling-page-views-csv-with-pyspark\">https://www.kaggle.com/gspmoreira/outbrain-click-prediction/unveiling-page-views-csv-with-pyspark</a></p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "125000": "I am trying to use Pyspark(on AWS cluster) on this dataset but I am facing challenges, like **feature selection and feature engineering**. And I have doubt can this technique be used for much bigger datasets(suppose > 1 TB)?Any Suggestions are greatly appreciated.",
    "145395": "As of Nov'16, Pyspark doesn't have any feature selection algorithms integrated with it. If you want to use the Spark environment for feature selection then i would recommend using the Scala API which has a feature importance algorithm integrated(1). But, if you're not comfortable with Scala and would like to use Python instead, then you can make use of the Scikit-learn - Spark integration package from the link mentioned below(2). Scikit has an extra-trees classifier which can be used to calculate feature importance(3). By integrating Scikit and Spark you can perform feature engineering. \r\n\r\n1) Feature selection - Scala - https://issues.apache.org/jira/browse/SPARK-5133.\r\n\r\n2) https://github.com/databricks/spark-sklearn.\r\n\r\n3) http://scikit-learn.org/stable/modules/generated/sklearn.ensemble.ExtraTreesClassifier.html\r\n\r\nCheers!\r\n\r\nRishi",
    "148206": "Great, Thanks Rishi for the suggestion. I will definitely try that.",
    "150679": "I am using PySpark for preprocessing and building the feature vectors for a similar competition. In this EDA, I show some features of PySpark SQL DataFrame: https://www.kaggle.com/gspmoreira/outbrain-click-prediction/unveiling-page-views-csv-with-pyspark"
  },
  "source": "meta"
}