snorkel-team / snorkel

A system for quickly generating training data with weak supervision
https://snorkel.org
Apache License 2.0
5.81k stars 857 forks source link

[Tutorial][Crowdsourcing] 'Session' object has no attribute 'shape' #984

Closed redcinelli closed 5 years ago

redcinelli commented 6 years ago

Hey there, I have just started using snorkel, And i am currently trying to go through the tutorial, I am having an issue I can seem to resolve.

Cell 11, give me an error

screen shot 2018-07-17 at 18 23 24

I have been through the install process with Conda. My Jupyter kernel is the one created during the process.

I am not sure what to do.

If it can help here is my config:

I guess that's about it.

tmerrittsmith commented 6 years ago

I think this might be an error in the code, I found the same issue. Try this:

correct, incorrect = gen_model.error_analysis(session, L_train, train_cand_labels)
print("Number incorrect:{}".format(len(incorrect)))
bhancock8 commented 5 years ago

Thanks for the update @tmerrittsmith . Yes, this notebook fell out of sync with other changes in the code. It is updated now in 0b74b7.