<s> import sys ; <EOL> import os ; <EOL> path = os . path . split ( os . path . realpath ( __file__ ) ) [ <NUM_LIT:0> ] ; <EOL> sys . path . append ( path + "<STR_LIT>" ) ; <EOL> sys . path . append ( path + "<STR_LIT>" ) ; <EOL> from latent_factor import * ; <EOL> from arffio import * ; <EOL> import Logger ; <EOL> import pickle ; <EOL> import numpy as np ; <EOL> import train_rep as train ; <EOL> import unittest ; <EOL> class TrainTester ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . argv = [ ] ; <EOL> self . argv . append ( "<STR_LIT>" ) ; <EOL> self . argv . append ( "<STR_LIT>" ) ; <EOL> self . argv . append ( "<STR_LIT>" ) ; <EOL> self . argv . append ( "<STR_LIT>" ) ; <EOL> self . argv . append ( "<STR_LIT>" ) ; <EOL> def test_parseParameter ( self ) : <EOL> parameters = train . parseParameter ( self . argv ) ; <EOL> def test_train ( self ) : <EOL> argv = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT:2>" , "<STR_LIT>" , "<STR_LIT:2>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> train . main ( argv ) <EOL> argv = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT:2>" , "<STR_LIT>" , "<STR_LIT:2>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> train . main ( argv ) <EOL> argv = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT:2>" , "<STR_LIT>" , "<STR_LIT:2>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> train . main ( argv ) <EOL> argv = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT:2>" , "<STR_LIT>" , "<STR_LIT:2>" , "<STR_LIT>" , "<STR_LIT:0>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> train . main ( argv ) <EOL> def test_train_al ( self ) : <EOL> argv = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT:2>" , "<STR_LIT>" , "<STR_LIT:2>" , "<STR_LIT>" , "<STR_LIT:0>" , "<STR_LIT>" , "<STR_LIT:1>" , "<STR_LIT>" , "<STR_LIT:1>" , "<STR_LIT>" , "<STR_LIT:1>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> train . main ( argv ) <EOL> def test_train_param ( self ) : <EOL> argv = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT:1>" , "<STR_LIT>" , "<STR_LIT:1>" , "<STR_LIT>" , "<STR_LIT:1>" , "<STR_LIT>" , "<STR_LIT:2>" , "<STR_LIT>" , "<STR_LIT:2>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> train . main ( argv ) </s>
