Module Expr Str Import alias Import alias FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameStore TupleLoad Num Num Num For NameStore Call NameLoad NameLoad body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If CompareGt NameLoad NameLoad body Assign NameStore NameLoad If CompareGt NameLoad NameLoad body Assign NameStore NameLoad AugAssignAdd NameStore Num Assign NameStore BinOpAdd NameLoad Str With Call NameLoad NameLoad Str NameStore body Print NameLoad Str Print NameLoad Call AttributeLoad Str attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad NameLoad keyword Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad decorator_list FunctionDef arguments args defaults body ImportFrom alias ImportFrom alias alias Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Raise NameLoad If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad Str If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str CompareEq AttributeLoad NameLoad attr Str body Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
Convert sparse matrix from one file format to another.
 N/A os N/A subprocess tsv2mtx N/A N/A infile outfile N/A N/A N/A N/A num_users num_items nnz N/A 0 0 0 N/A line N/A open infile N/A N/A N/A u i v N/A N/A N/A N/A line strip split N/A u N/A int u N/A i N/A int i N/A N/A u num_users N/A N/A num_users u N/A N/A i num_items N/A N/A num_items i N/A nnz 1 N/A headerfile N/A outfile .header N/A N/A open headerfile w header N/A N/A header %%MatrixMarket matrix coordinate real general N/A header N/A N/A {0} {1} {2} format num_users num_items nnz N/A N/A N/A subprocess check_call N/A cat headerfile infile stdout N/A open outfile w N/A N/A N/A subprocess check_call N/A rm headerfile N/A main N/A N/A N/A N/A optparse OptionParser mrec load_sparse_matrix save_sparse_matrix N/A parser N/A OptionParser N/A N/A N/A parser add_option --input_format dest input_format help format of input dataset tsv | csv | mm (matrixmarket) | csr (scipy.sparse.csr_matrix) | fsm (mrec.sparse.fast_sparse_matrix) N/A N/A N/A parser add_option --input dest input help filepath to input N/A N/A N/A parser add_option --output_format dest output_format help format of output dataset(s) tsv | csv | mm (matrixmarket) | csr (scipy.sparse.csr_matrix) | fsm (mrec.sparse.fast_sparse_matrix) N/A N/A N/A parser add_option --output dest output help filepath for output N/A N/A opts args N/A N/A parser parse_args N/A N/A N/A N/A opts input N/A N/A opts output N/A N/A opts input_format N/A N/A opts output_format N/A N/A N/A N/A parser print_help N/A SystemExit N/A N/A N/A opts output_format N/A opts input_format N/A N/A N/A SystemExit input and output format are the same, not doing anything N/A N/A N/A N/A opts input_format tsv N/A N/A opts output_format mm N/A N/A N/A tsv2mtx N/A opts input N/A opts output N/A N/A data N/A load_sparse_matrix N/A opts input_format N/A opts input N/A N/A save_sparse_matrix data N/A opts output_format N/A opts output N/A N/A N/A __name__ __main__ N/A N/A N/A main