Skip to content

Instantly share code, notes, and snippets.

@benlee
Created September 6, 2013 21:13
Show Gist options
  • Save benlee/6470100 to your computer and use it in GitHub Desktop.
Save benlee/6470100 to your computer and use it in GitHub Desktop.
2013-09-06 21:11:40,693 ERROR: [pid 32580] Error while running AdsModelTraining(context=PostCheckin, name=bleeTest, days=1, test=False, description=Default, chunk_length=7, click_weight=1, validation_days=1, min_feature_day_frequency=.3, min_feature_total_frequency=.1, use_pca=False, downsampling_percent_kept=20, include_quantile_scorers=False, include_normalized_scorers=False, include_campaign_scorers=False, include_count_scorers=False, include_distance_scorers=False, include_popularity_scorers=False, date=2013-08-19, base_dir=/user/datateam/adstraining, output_dir=/user/blee/adstraining)
Traceback (most recent call last):
File "/foursquare/blee/.pex/install/luigi-2013_08_07.001-py2.6.egg/luigi/worker.py", line 229, in _run_task
task.run()
File "fsluigi/task/ads/ad_model_trainer.py", line 304, in run
old_model_pcvr_feature))
File "foursquare/ads/ads_training_helpers.py", line 151, in data_sets_by_day_iter
sets = training_and_validation_sets(feature_dicts, training_features, old_model_pcvr_feature)
File "foursquare/ads/ads_training_helpers.py", line 145, in training_and_validation_sets
return (feature_dicts_to_data_set(training_dicts, training_features, old_model_pcvr_feature),
File "foursquare/ads/ads_training_helpers.py", line 131, in feature_dicts_to_data_set
labels = array([int(d['label'] != 0) for d in feature_dicts])
NameError: global name 'array' is not defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment