{
  "id": 16579,
  "title": "Graphlab error",
  "url": "/competitions/dato-native/discussion/16579",
  "author_name": "",
  "post_date": "2015-09-19T11:23:23.180Z",
  "votes": null,
  "comment_count": 5,
  "views": 756,
  "content": "<p>Hi, I am trying to train a boost tree classifier with grid search, but I always got the following error information, could anyone kindly help me out ?</p>\n\n<p>params = {'target': [['sponsored']],\n          'features': [['tfidf']],\n          'class_weights': 'auto',\n          'min_child_weight': [1, 4, 8],\n          'min_loss_reduction': [0, 4, 8]\n         }</p>\n\n<p>job = gl.grid_search.create((train, val),  gl.boosted_trees_classifier.create,\n                            params,\n                            evaluator=evaluate_accuracy)</p>\n\n<p>The error is : Invalid key type: must be str ...</p>",
  "messages": [
    {
      "id": "92983",
      "postDate": "09/19/2015 11:23:23",
      "content": "<p>Hi, I am trying to train a boost tree classifier with grid search, but I always got the following error information, could anyone kindly help me out ?</p>\n\n<p>params = {'target': [['sponsored']],\n          'features': [['tfidf']],\n          'class_weights': 'auto',\n          'min_child_weight': [1, 4, 8],\n          'min_loss_reduction': [0, 4, 8]\n         }</p>\n\n<p>job = gl.grid_search.create((train, val),  gl.boosted_trees_classifier.create,\n                            params,\n                            evaluator=evaluate_accuracy)</p>\n\n<p>The error is : Invalid key type: must be str ...</p>",
      "rawMarkdown": "Hi, I am trying to train a boost tree classifier with grid search, but I always got the following error information, could anyone kindly help me out ?\r\n\r\nparams = {'target': [['sponsored']],\r\n          'features': [['tfidf']],\r\n          'class_weights': 'auto',\r\n          'min_child_weight': [1, 4, 8],\r\n          'min_loss_reduction': [0, 4, 8]\r\n         }\r\n\r\njob = gl.grid_search.create((train, val),  gl.boosted_trees_classifier.create,\r\n                            params,\r\n                            evaluator=evaluate_accuracy)\r\n\r\nThe error is : Invalid key type: must be str ...",
      "votes": null
    },
    {
      "id": "92988",
      "postDate": "09/19/2015 14:38:45",
      "content": "<p>@ShadowNet:  try {'target': 'sponsored', ... } and let me know if this works.</p>",
      "rawMarkdown": "ShadowNet:  try {'target': 'sponsored', ... } and let me know if this works.",
      "votes": null
    },
    {
      "id": "93146",
      "postDate": "09/22/2015 06:40:40",
      "content": "<p>@cloofa : Is Team merging necessary for the Dato Creators Award?</p>",
      "rawMarkdown": "cloofa : Is Team merging necessary for the Dato Creators Award?",
      "votes": null
    },
    {
      "id": "93177",
      "postDate": "09/22/2015 13:48:04",
      "content": "<p>Not at all</p>",
      "rawMarkdown": "Not at all",
      "votes": null
    },
    {
      "id": "93205",
      "postDate": "09/22/2015 19:54:51",
      "content": "<p>[quote=Rahul Gupta;93146]</p>\n\n<p>@cloofa : Is Team merging necessary for the Dato Creators Award?</p>\n\n<p>[/quote]</p>\n\n<p>Keep in mind you can change team names for single-person teams as well.  Just select &quot;My Team&quot; under &quot;Dashboard&quot; if you want to add &quot;GLC&quot; to your team name.</p>",
      "rawMarkdown": "[quote=Rahul Gupta;93146]\r\n\r\n@cloofa : Is Team merging necessary for the Dato Creators Award?\r\n\r\n[/quote]\r\n\r\nKeep in mind you can change team names for single-person teams as well.  Just select \"My Team\" under \"Dashboard\" if you want to add \"GLC\" to your team name.",
      "votes": null
    },
    {
      "id": "94936",
      "postDate": "10/03/2015 06:58:22",
      "content": "<p>Thanks mortehu!</p>",
      "rawMarkdown": "Thanks mortehu!",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 92988,
      "author_name": "cloofa",
      "author_url": "",
      "post_date": "09/19/2015 14:38:45",
      "content": "<p>@ShadowNet:  try {'target': 'sponsored', ... } and let me know if this works.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 93146,
      "author_name": "",
      "author_url": "",
      "post_date": "09/22/2015 06:40:40",
      "content": "<p>@cloofa : Is Team merging necessary for the Dato Creators Award?</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 93177,
      "author_name": "cloofa",
      "author_url": "",
      "post_date": "09/22/2015 13:48:04",
      "content": "<p>Not at all</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 93205,
      "author_name": "mortehu",
      "author_url": "",
      "post_date": "09/22/2015 19:54:51",
      "content": "<p>[quote=Rahul Gupta;93146]</p>\n\n<p>@cloofa : Is Team merging necessary for the Dato Creators Award?</p>\n\n<p>[/quote]</p>\n\n<p>Keep in mind you can change team names for single-person teams as well.  Just select &quot;My Team&quot; under &quot;Dashboard&quot; if you want to add &quot;GLC&quot; to your team name.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 94936,
      "author_name": "",
      "author_url": "",
      "post_date": "10/03/2015 06:58:22",
      "content": "<p>Thanks mortehu!</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "92983": "Hi, I am trying to train a boost tree classifier with grid search, but I always got the following error information, could anyone kindly help me out ?\r\n\r\nparams = {'target': [['sponsored']],\r\n          'features': [['tfidf']],\r\n          'class_weights': 'auto',\r\n          'min_child_weight': [1, 4, 8],\r\n          'min_loss_reduction': [0, 4, 8]\r\n         }\r\n\r\njob = gl.grid_search.create((train, val),  gl.boosted_trees_classifier.create,\r\n                            params,\r\n                            evaluator=evaluate_accuracy)\r\n\r\nThe error is : Invalid key type: must be str ...",
    "92988": "ShadowNet:  try {'target': 'sponsored', ... } and let me know if this works.",
    "93146": "cloofa : Is Team merging necessary for the Dato Creators Award?",
    "93177": "Not at all",
    "93205": "[quote=Rahul Gupta;93146]\r\n\r\n@cloofa : Is Team merging necessary for the Dato Creators Award?\r\n\r\n[/quote]\r\n\r\nKeep in mind you can change team names for single-person teams as well.  Just select \"My Team\" under \"Dashboard\" if you want to add \"GLC\" to your team name.",
    "94936": "Thanks mortehu!"
  },
  "source": "meta"
}