Skip to content

bug correction: 'argument of type 'int' is not iterable', in 'train_model' of 'active_learning_basics.py'#10

Open
GuillaumeMougeot wants to merge 1 commit intormunro:masterfrom
GuillaumeMougeot:bug_correction
Open

bug correction: 'argument of type 'int' is not iterable', in 'train_model' of 'active_learning_basics.py'#10
GuillaumeMougeot wants to merge 1 commit intormunro:masterfrom
GuillaumeMougeot:bug_correction

Conversation

@GuillaumeMougeot
Copy link

I had the following error message when running 'active_learning_basics.py' for a second time (after first labeling step):
on line 262
"related = [row for row in training_data if '1' in row[2]]
TypeError: argument of type 'int' is not iterable"

I fixed it by removing the '[2]'

Note: I ran my code on Windows (do not know if it changes anything...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant