Did I find the right examples for you? yes no

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

src/o/r/orange3-HEAD/Orange/tests/test_domain.py   orange3(Download)
import unittest
 
from Orange.testing import create_pickling_tests
from Orange import data
 
 
PickleDomain = create_pickling_tests(
    "PickleDomain",
    ("empty_domain", lambda: data.Domain([])),
    ("with_continuous_variable", lambda: data.Domain([age])),

src/o/r/orange3-HEAD/Orange/tests/test_variable.py   orange3(Download)
import math
import unittest
 
from Orange.testing import create_pickling_tests
from Orange import data
 
PickleContinuousVariable = create_pickling_tests(
    "PickleContinuousVariable",
    ("variable", lambda: data.ContinuousVariable()),
    ("with_name", lambda: data.ContinuousVariable(name="Feature 0")),
)
 
PickleDiscreteVariable = create_pickling_tests(
    "PickleDiscreteVariable",
 
PickleStringVariable = create_pickling_tests(
    "PickleStringVariable",
    ("variable", lambda: data.StringVariable()),
    ("with_name", lambda: data.StringVariable(name="Feature 0")),