Closed ishare closed 5 years ago
I encounter an error in Workshop 3 as well - when I run the same lines of code mentioned in the issue above:
searcher = RandomSearch(GenerativeModel, param_ranges, L_train, n=5, model_class_params=model_class_params)
%time gen_model, run_stats = searcher.fit(L_dev, L_gold_dev)
----- ERROR DETAILS -----
[1] Testing step_size = 1.00e-05, decay = 9.00e-01, epochs = 100, reg_param = 1.00e-03
TypeError Traceback (most recent call last) ~/anaconda2/envs/snorkel/lib/python3.6/site-packages/snorkel/learning/utils.py in _fit_st(self, X_valid, Y_valid, b, beta, set_unlabeled_as_neg, eval_batch_size) 401 model.train(*train_args, X_dev=X_valid, Y_dev=Y_valid, --> 402 save_dir=self.save_dir, **hps) 403 except:
TypeError: train() got an unexpected keyword argument 'X_dev'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
@jason-fries any ideas here?
We're working on a re-design of the code which will address this issue!
Snorkel v0.9 was released today with a fresh batch of tutorials that have been thoroughly tested! Give these a try. We recommend starting with the "Getting Started" walkthrough: https://www.snorkel.org/get-started/.
Encounter error running "tutorials/workshop/Workshop_3_Generative_Model_Training.ipynb" "1. Training the Model" step. All previous steps look good.
Here's the output: