641a742bfb59e230b7cd43420eb09705c4c15078,thinc/tests/layers/test_basic_tagger.py,,ancora,#,10
Before Change
def ancora():
train_data, check_data, nr_class = ml_datasets.ud_ancora_pos_tags()
train_X, train_y = zip(*train_data)
dev_X, dev_y = zip(*check_data)
nb_tag = max(max(y) for y in train_y) + 1
train_y = [to_categorical(y, nb_tag) for y in train_y]
dev_y = [to_categorical(y, nb_tag) for y in dev_y]
return (train_X[:100], train_y[:100]), (dev_X, dev_y)
@pytest.fixture(scope="module")
def train_X(ancora):
After Change
@pytest.fixture(scope="module")
def ancora():
return ml_datasets.ud_ancora_pos_tags()
@pytest.fixture(scope="module")
def train_X(ancora):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
Instances
Project Name: explosion/thinc
Commit Name: 641a742bfb59e230b7cd43420eb09705c4c15078
Time: 2020-01-08
Author: ines@ines.io
File Name: thinc/tests/layers/test_basic_tagger.py
Class Name:
Method Name: ancora
Project Name: flow-project/flow
Commit Name: 6a98de289a02db6bd0c715affac9242a52c633e3
Time: 2019-06-10
Author: akreidieh@gmail.com
File Name: flow/visualize/time_space_diagram.py
Class Name:
Method Name: get_time_space_data
Project Name: albu/albumentations
Commit Name: aa4f363748a99758179d16928b5a9afa2443d31e
Time: 2018-09-27
Author: erikgaas@gmail.com
File Name: albumentations/augmentations/functional.py
Class Name:
Method Name: longest_max_size