2316ac84ba197184254119c2a8c4aef2f1aac1c2,snips_nlu/tests/test_feature_functions.py,TestFeatureFunctions,test_crf_features,#TestFeatureFunctions#,208
Before Change
crf_features_config=features_config, random_state=random_state)
// Then
random_state = np.random.RandomState(seed)
collection_1_size = max(int((1 - drop_prob) * len(collection_1)), 1)
collection_2_size = max(int((1 - drop_prob) * len(collection_2)), 1)
col_1 = random_state.choice(sorted(collection_1.keys()),
collection_1_size, replace=False).tolist()
col_2 = random_state.choice(sorted(collection_2.keys()),
collection_2_size, replace=False).tolist()
expected_signatures = [
{
"args": {
"tokens_collection": col_1,
After Change
// sort collections in order to make testing easier
if "tokens_collection" in signature["args"]:
signature["args"]["tokens_collection"] = sorted(
signature["args"]["tokens_collection"] )
expected_signatures = [
{
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: snipsco/snips-nlu
Commit Name: 2316ac84ba197184254119c2a8c4aef2f1aac1c2
Time: 2017-11-29
Author: adrien.ball@snips.net
File Name: snips_nlu/tests/test_feature_functions.py
Class Name: TestFeatureFunctions
Method Name: test_crf_features
Project Name: jnothman/UpSetPlot
Commit Name: 9002392217305a71257921224326b73b424bfdc3
Time: 2019-06-06
Author: joel.nothman@gmail.com
File Name: upsetplot/data.py
Class Name:
Method Name: generate_data
Project Name: CellProfiler/CellProfiler
Commit Name: 1e8cfba2cc48b26bc9d651654e06ba9c294be71a
Time: 2012-12-14
Author: leek@broadinstitute.org
File Name: imagej/tests/test_imagej2.py
Class Name: TestImagej2
Method Name: test_05_06_create_dataset