def test_no_false_hits(self):

        addresses, orders, User, Address, Order, users = (
            self.tables.addresses,
            self.tables.orders,
            self.classes.User,
            self.classes.Address,
            self.classes.Order,
            self.tables.users)

        mapper(User, users, properties={
            'addresses': relationship(Address, lazy='joined'),
            'orders': relationship(Order, lazy='joined')
        })
        mapper(Address, addresses)
        mapper(Order, orders)

        self.allusers = create_session().query(User).all()

        # using a textual select, the columns will be 'id' and 'name'.  the
        # eager loaders have aliases which should not hit on those columns,
        # they should be required to locate only their aliased/fully table
        # qualified column name.
        noeagers = create_session().query(User).\
            from_statement(text("select * from users")).all()
        assert 'orders' not in noeagers[0].__dict__
        assert 'addresses' not in noeagers[0].__dict__
Transform feature->value dicts to array or sparse matrix.
dataset/ETHPy150Open zzzeek/sqlalchemy/test/orm/test_eager_relations.py/EagerTest.test_no_false_hits--crossover with--dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/feature_extraction/dict_vectorizer.py/DictVectorizer.transform