Hi,
I went through the tutorial by Google on recommendation systems with tensorflow given in the link below:
https://cloud.google.com/solutions/machine-learning/recommendation-system-tensorflow-apply-to-analytics-data
I went through this tutorial until I reached the part in the link above: Apply to Data from Google Analytics (Part 3)
The training part was successful. However, the tuning part was not. I used the command as it was on the tutorial to run the tuning, which is
./mltrain.sh tune gs://your_bucket data/ga_pageviews.csv --data-type web_views
obviously replacing your_bucket data
with the name of my bucket, which is rec_sys_bucket_part2
.
I get a few errors in the following order in the log:
2019-07-23T19:50:33.494398117Z master-replica-0 Trial Id : 1 usage: task.py [-h] --train-file TRAIN_FILE --job-dir JOB_DIR
2019-07-23T19:50:33.494867086Z master-replica-0 Trial Id : 1 [--latent_factors LATENT_FACTORS] [--num_iters NUM_ITERS]
2019-07-23T19:50:33.495102882Z master-replica-0 Trial Id : 1 [--regularization REGULARIZATION] [--unobs_weight UNOBS_WEIGHT]
2019-07-23T19:50:33.495305061Z master-replica-0 Trial Id : 1 [--wt_type WT_TYPE] [--feature_wt_factor FEATURE_WT_FACTOR]
2019-07-23T19:50:33.495655059Z master-replica-0 Trial Id : 1 [--feature_wt_exp FEATURE_WT_EXP] [--gcs-bucket GCS_BUCKET]
2019-07-23T19:50:33.495904922Z master-replica-0 Trial Id : 1 [--output-dir OUTPUT_DIR] [--verbose-logging] [--hypertune]
2019-07-23T19:50:33.496123075Z master-replica-0 Trial Id : 1 [--data-type DATA_TYPE] [--delimiter DELIMITER] [--headers]
2019-07-23T19:50:33.496273040Z master-replica-0 Trial Id : 1 [--use-optimized]
2019-07-23T19:50:33.496448040Z master-replica-0 Trial Id : 1 task.py: error: argument --train-file: expected one argument
2019-07-23T19:50:34.097594976Z master-replica-0 Trial Id : 1 Command '['python', '-m', u'trainer.task', u'--hypertune', u'--gcs-bucket', u'gs://rec_sys_bucket_part2/ga_pageviews.csv', u'--train-file', u'--data-type', u'--verbose-logging', u'web_views', u'--unobs_weight', u'0.10133471358860466', u'--latent_factors', u'43', u'--regularization', u'4.9950598320961008', u'--feature_wt_exp', u'6.3398703380823136', '--job-dir', 'gs://rec_sys_bucket_part2/ga_pageviews.csv/jobs/wals_ml_tune_20190723_194628/1']' returned non-zero exit status 2
I'm not sure which part of task.py is responsible for this. I added some print lines for check, but i don't see the print results when I run the job.
Any clues on how I can debug this?
Thanks,
A