Module Expr Str Import alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Str Str Str Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore ListLoad Assign NameStore ListLoad For NameStore NameLoad body If CompareEq NameLoad ListLoad body Continue If BoolOpOr UnaryOpNot Call NameLoad NameLoad NameLoad CompareNotEq Call NameLoad NameLoad Num UnaryOpNot Call NameLoad SubscriptLoad NameLoad Index Num NameLoad body Raise Call NameLoad NameLoad BinOpMod Str TupleLoad NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num If BoolOpAnd CompareEq NameLoad Str CompareEq SubscriptLoad NameLoad Index Num ListLoad Str body Assign NameStore NameLoad orelse If BoolOpAnd CompareEq NameLoad Str Call NameLoad SubscriptLoad NameLoad Index Num NameLoad CompareEq Call NameLoad SubscriptLoad NameLoad Index Num Num body Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num orelse If CompareEq NameLoad Str body Assign NameStore TupleLoad Call NameLoad SubscriptLoad NameLoad Index Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign NameStore TupleLoad Call NameLoad SubscriptLoad NameLoad Index Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpAnd CompareNotEq NameLoad Str CompareNotEq Call NameLoad SubscriptLoad NameLoad Index Num Str body Expr Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num orelse Raise Call NameLoad NameLoad BinOpMod Str NameLoad Return Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body If BoolOpAnd Call NameLoad NameLoad NameLoad CompareEq Call NameLoad NameLoad Str body Return NameLoad orelse If Call NameLoad NameLoad NameLoad body Return NameLoad orelse Raise Call NameLoad NameLoad BinOpMod Str TupleLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore ListLoad While CompareLt NameLoad Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad If BoolOpAnd CompareLt BinOpAdd NameLoad Num Call NameLoad NameLoad CompareNotEq SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Str body Raise Call NameLoad NameLoad BinOpMod Str TupleLoad NameLoad AugAssignAdd NameStore Num Return NameLoad decorator_list
N/A N/A Parser for tokenized crosscat generator expressions. N/A collections bayeslite.exception BQLError bayeslite.util casefold N/A GeneratorSchema N/A N/A collections namedtuple GeneratorSchema N/A guess subsample columns dep_constraints parse N/A N/A schema subsample_default N/A N/A N/A Parses a generator schema as passed to CrosscatMetamodel.

    schema is a tokenized expression of the form [['GUESS', ['*']], ['x',
    'NUMERICAL'], ...] that is passed to CrosscatMetamodel.create_generator and
    represents the argument to "crosscat" in CREATE GENERATOR ... FOR ... USING
    crosscat(...).

    Returns a GeneratorSchema.

    See test_crosscat_generator_schema.py for examples.
     N/A guess False N/A subsample subsample_default N/A columns N/A N/A dep_constraints N/A N/A directive schema N/A N/A N/A directive N/A N/A N/A N/A N/A N/A N/A isinstance directive list N/A N/A len directive 2 N/A N/A isinstance N/A directive N/A 0 basestring N/A N/A N/A BQLError None N/A Invalid crosscat column model directive: %r N/A directive N/A op N/A casefold N/A directive N/A 0 N/A N/A N/A op guess N/A N/A directive N/A 1 N/A * N/A N/A guess True N/A N/A N/A N/A op subsample N/A isinstance N/A directive N/A 1 list N/A N/A len N/A directive N/A 1 1 N/A N/A subsample N/A _parse_subsample_clause N/A N/A directive N/A 1 N/A 0 N/A N/A N/A op dependent N/A N/A constraint N/A N/A _parse_dependent_clause N/A directive N/A 1 True N/A N/A N/A dep_constraints append constraint N/A N/A N/A op independent N/A N/A constraint N/A N/A _parse_dependent_clause N/A directive N/A 1 False N/A N/A N/A dep_constraints append constraint N/A N/A N/A N/A op guess N/A N/A casefold N/A directive N/A 1 guess N/A N/A N/A N/A columns append N/A N/A directive N/A 0 N/A directive N/A 1 N/A N/A N/A BQLError None N/A Invalid crosscat column model: %r directive N/A N/A GeneratorSchema guess guess subsample subsample columns columns dep_constraints dep_constraints N/A _parse_subsample_clause N/A N/A clause N/A N/A N/A N/A N/A isinstance clause basestring N/A N/A casefold clause off N/A N/A False N/A N/A N/A isinstance clause int N/A N/A clause N/A N/A N/A BQLError None N/A Invalid subsampling: %r N/A clause N/A _parse_dependent_clause N/A N/A args N/A N/A N/A i 0 N/A dep_columns N/A N/A N/A i N/A len args N/A N/A N/A N/A dep_columns append N/A args N/A i N/A N/A N/A N/A i 1 N/A len args N/A N/A args N/A N/A i 1 , N/A N/A N/A BQLError None N/A Invalid dependent columns: %r N/A args N/A i 2 N/A dep_columns N/A