Module Assign NameStore Str Assign NameStore Str Import alias identifier ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias FunctionDef arguments args NameParam NameParam defaults Num body Expr Str If CompareEq NameLoad Num body Assign NameStore ListLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num orelse Assign NameStore ListLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num Assign NameStore ListLoad Call NameLoad ListLoad Num Num Call NameLoad ListLoad Num Num Call NameLoad ListLoad Num Num Assign NameStore Call NameLoad Num Num keyword NameLoad For NameStore Call NameLoad NameLoad body For NameStore Call NameLoad Num body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad BinOpMod NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr If NameLoad body Return TupleLoad NameLoad NameLoad NameLoad orelse Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Assign NameStore BinOpMult BinOpDiv Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad BinOpMult Call NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpDiv NameLoad Num BinOpMult Call NameLoad Num Num Assign NameStore Call NameLoad Num Num keyword Num For NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd BinOpMult Call NameLoad NameLoad NameLoad NameLoad BinOpMult BinOpSub Call NameLoad Num Num NameLoad For NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad SubscriptLoad NameLoad Index NameLoad ListLoad Num Expr Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd BinOpMult Call NameLoad NameLoad NameLoad NameLoad BinOpMult BinOpSub Call NameLoad Num Num NameLoad For NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad SubscriptLoad NameLoad Index NameLoad ListLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str NameLoad Expr Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index TupleLoad NameLoad Num SubscriptLoad SubscriptLoad NameLoad Index Str Index TupleLoad NameLoad Num Str decorator_list If CompareEq NameLoad Str body Expr Call NameLoad Call NameLoad Num Expr Call NameLoad
N/A N/A __author__ Martin Felder N/A __version__ $Id$ N/A numpy np numpy.random multivariate_normal rand scipy diag pylab show hold plot pybrain.datasets ClassificationDataSet SequenceClassificationDataSet generateClassificationData N/A N/A size nClasses N/A 3 N/A N/A  generate a set of points in 2D belonging to two or three different classes  N/A N/A nClasses 3 N/A N/A means N/A N/A -1 0 N/A 2 4 N/A 3 1 N/A N/A means N/A N/A -2 0 N/A 2 1 N/A 6 0 N/A cov N/A N/A diag N/A 1 1 N/A diag N/A 0.5 1.2 N/A diag N/A 1.5 0.7 N/A dataset N/A ClassificationDataSet 2 1 nb_classes nClasses N/A _ N/A range size N/A N/A c N/A range 3 N/A N/A input N/A multivariate_normal N/A means N/A c N/A cov N/A c N/A N/A N/A dataset addSample input N/A N/A c nClasses N/A N/A N/A dataset assignClasses N/A dataset N/A generateGridData N/A N/A x y return_ticks N/A False N/A N/A  Generates a dataset containing a regular grid of points. The x and y arguments
    contain start, end, and step each. Returns the dataset and the x and y mesh or ticks. N/A x N/A N/A np arange N/A x N/A 0 N/A x N/A 1 N/A x N/A 2 N/A y N/A N/A np arange N/A y N/A 0 N/A y N/A 1 N/A y N/A 2 N/A N/A X Y N/A N/A np meshgrid x y N/A shape N/A X shape N/A ds N/A ClassificationDataSet 2 1 N/A N/A N/A ds setField input N/A N/A np concatenate N/A N/A N/A X reshape N/A X size 1 N/A N/A Y reshape N/A X size 1 1 N/A N/A N/A ds setField target N/A N/A np zeros N/A N/A X size 1 N/A N/A N/A ds _convertToOneOfMany N/A return_ticks N/A N/A N/A ds x y N/A N/A N/A ds X Y N/A generateNoisySines N/A N/A npoints nseq noise N/A 0.3 N/A N/A  construct a 2-class dataset out of noisy sines  N/A x N/A N/A N/A N/A np arange npoints N/A float npoints 20.0 N/A y1 N/A N/A np sin N/A x N/A N/A rand 1 3.0 N/A y2 N/A N/A np sin N/A N/A x 2.0 N/A N/A rand 1 3.0 N/A DS N/A SequenceClassificationDataSet 1 1 nb_classes 2 N/A _ N/A range nseq N/A N/A N/A N/A DS newSequence N/A buf N/A N/A N/A N/A rand npoints noise y1 N/A N/A N/A rand 1 0.5 noise N/A i N/A range npoints N/A N/A N/A N/A DS addSample N/A N/A buf N/A i N/A 0 N/A N/A N/A DS newSequence N/A buf N/A N/A N/A N/A rand npoints noise y2 N/A N/A N/A rand 1 0.5 noise N/A i N/A range npoints N/A N/A N/A N/A DS addSample N/A N/A buf N/A i N/A 1 N/A DS N/A plotData N/A N/A ds N/A N/A N/A N/A hold True N/A c N/A range N/A ds nClasses N/A N/A N/A here _ N/A N/A np where N/A N/A ds N/A class c N/A N/A plot N/A N/A ds N/A input N/A N/A here 0 N/A N/A ds N/A input N/A N/A here 1 o N/A N/A N/A __name__ __main__ N/A N/A N/A plotData N/A generateClassificationData 150 N/A N/A show