Module Expr Str Assign NameStore Dict Str Str Str Str Assign NameStore TupleLoad Num Num Num Assign NameStore TupleLoad Num Num Num Import alias identifier Import alias ImportFrom alias alias alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Dict NameLoad NameLoad NameLoad ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Assign AttributeStore NameLoad attr ListLoad Num Num Assign AttributeStore NameLoad attr ListLoad TupleLoad Dict NameLoad NameLoad NameLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Dict NameLoad NameLoad NameLoad ListLoad Num ListLoad Num ListLoad Num TupleLoad Dict NameLoad NameLoad NameLoad ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Dict NameLoad NameLoad NameLoad ListLoad Num ListLoad Num ListLoad Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Print Str NameLoad Str Assert CompareEq TupleLoad Call AttributeLoad NameLoad attr keyword Str Call AttributeLoad NameLoad attr keyword Str SubscriptLoad NameLoad Index NameLoad Print Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad For NameStore NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad BinOpMult NameLoad NameLoad Print Str NameLoad Str Print TupleLoad TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num TupleLoad NameLoad BinOpSub NameLoad NameLoad Assert CompareEq TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num TupleLoad NameLoad BinOpSub NameLoad NameLoad Str Expr Call NameLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad attr ListLoad NameLoad attr ListLoad NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad NameLoad attr ListLoad NameLoad Print Str decorator_list decorator_list
N/A N/A 
Created on 20 January 2014

Test for splitters

.. moduleauthor:: joaonrb <joaonrb@gmail.com>
 N/A __author__ N/A name e-mail joaonrb joaonrb@gmail.com N/A __version__ N/A 1 0 0 N/A __since__ N/A 20 1 2014 N/A pandas pd N/A testfm testfm.settings USER ITEM DATE pandas.util.testing assert_frame_equal TestSplitters N/A object N/A N/A setup_class N/A N/A cls N/A N/A N/A N/A cls data N/A N/A pd DataFrame N/A USER ITEM DATE N/A 1 1 1 3 1 3 4 3 5 5 4 6 5 6 N/A 1 2 3 1 4 2 1 3 1 2 2 1 3 2 N/A 838989347 838991904 838992348 838992136 838989279 838993295 838993443 838993638 838988734 838986416 838992657 838988397 838991564 838993709 N/A N/A cls fractions N/A 0.25 0.95 N/A N/A cls holdout_results N/A N/A N/A DATE ITEM USER N/A 838986416 838988397 838988734 N/A 2 1 1 N/A 5 6 5 N/A DATE ITEM USER N/A 838993709 N/A 2 N/A 6 N/A N/A DATE ITEM USER N/A 838986416 838988397 838988734 838989279 838989347 838991564 838991904 838992136 838992348 838992657 838993295 838993443 838993638 N/A 2 1 1 4 1 3 2 1 3 2 2 1 3 N/A 5 6 5 1 1 5 1 3 1 4 3 4 3 N/A DATE ITEM USER N/A 838993709 N/A 2 N/A 6 N/A classmethod test_holdout N/A N/A self N/A N/A N/A 
        Tests the holdout class
         N/A fractions N/A N/A self __class__ fractions N/A data N/A N/A self __class__ data N/A results N/A N/A self __class__ holdout_results N/A N/A i fraction N/A enumerate fractions N/A N/A N/A train test N/A N/A N/A testfm split holdout data fraction N/A fraction  fraction N/A N/A N/A N/A N/A train to_dict outtype list N/A N/A test to_dict outtype list N/A results N/A i N/A passed N/A test_random N/A N/A self N/A N/A N/A fractions N/A N/A self __class__ fractions N/A data N/A N/A self __class__ data N/A rows N/A len N/A data N/A USER N/A fraction fractions N/A N/A N/A train test N/A N/A N/A testfm split holdoutByRandom data fraction clean_not_seen False N/A i N/A int N/A rows fraction N/A fraction  fraction N/A N/A N/A N/A N/A train shape N/A 0 N/A N/A test shape N/A 0 N/A i N/A rows i N/A N/A N/A N/A N/A train shape N/A 0 N/A N/A test shape N/A 0 N/A i N/A rows i Number of rows expected is wrong N/A N/A assert_frame_equal N/A N/A N/A N/A N/A N/A pd concat N/A train test sort N/A DATE set_index N/A DATE N/A N/A N/A N/A data sort N/A DATE set_index N/A DATE N/A passed N/A N/A