Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias identifier Import alias FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListLoad While NameLoad body If CompareEq NameLoad Num body Break If BoolOpAnd CompareGt NameLoad Num CompareGt NameLoad NameLoad body Break If BoolOpAnd CompareLt NameLoad Num CompareLt NameLoad NameLoad body Break Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For NameStore NameLoad body Assign TupleStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults TupleLoad Num Num Num TupleLoad Num Num Num Num Num body If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Str Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If BoolOpOr CompareIs NameLoad NameLoad CompareEq AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad body Assign NameStore TupleLoad Num Num Num Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Str attr Assign NameStore Call NameLoad ListLoad NameLoad NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign TupleStore NameStore NameStore NameLoad Assign TupleStore NameStore NameStore TupleLoad BinOpPow Num NameLoad BinOpPow Num NameLoad Assign TupleStore AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad AttributeLoad NameLoad attr If CompareGt AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list
N/A facerec.classifier SVM facerec.validation KFoldCrossValidation facerec.model PredictableModel svmutil * itertools product N/A numpy np N/A logging range_f N/A N/A begin end step N/A N/A N/A seq N/A N/A True N/A N/A N/A step 0 N/A N/A N/A N/A N/A step 0 N/A begin end N/A N/A N/A N/A N/A step 0 N/A begin end N/A N/A N/A N/A N/A seq append begin N/A begin N/A begin step N/A seq N/A grid N/A N/A grid_parameters N/A N/A N/A grid N/A N/A parameter grid_parameters N/A N/A N/A begin end step parameter N/A N/A N/A grid append N/A range_f begin end step N/A N/A product grid N/A grid_search N/A N/A model X y C_range gamma_range k num_cores N/A N/A -5 15 2 N/A 3 -15 -2 5 1 N/A N/A N/A N/A isinstance model PredictableModel N/A N/A N/A TypeError GridSearch expects a PredictableModel. If you want to perform optimization on raw data use facerec.feature.Identity to pass unpreprocessed data! N/A N/A N/A isinstance N/A model classifier SVM N/A N/A N/A TypeError GridSearch expects a SVM as classifier. Please use a facerec.classifier.SVM! N/A logger N/A N/A logging getLogger facerec.svm.gridsearch N/A N/A N/A logger info Performing a Grid Search. N/A best_parameter N/A svm_parameter -q N/A N/A best_parameter kernel_type N/A N/A N/A model classifier param kernel_type N/A N/A best_parameter nu N/A N/A N/A model classifier param nu N/A N/A best_parameter coef0 N/A N/A N/A model classifier param coef0 N/A N/A N/A gamma_range None N/A N/A N/A N/A model classifier param kernel_type LINEAR N/A N/A gamma_range N/A 0 0 1 N/A best_accuracy N/A N/A N/A np finfo float min N/A g N/A grid N/A C_range gamma_range N/A results N/A N/A p g N/A N/A N/A C gamma p N/A N/A C gamma N/A N/A 2 C N/A 2 gamma N/A N/A N/A N/A N/A model classifier param C N/A N/A N/A model classifier param gamma N/A C gamma N/A cv N/A KFoldCrossValidation model model k k N/A N/A N/A cv validate X y N/A N/A N/A results append N/A C gamma N/A cv accuracy N/A N/A N/A cv accuracy best_accuracy N/A N/A N/A N/A logger info N/A best_accuracy=%s N/A cv accuracy N/A best_accuracy N/A cv accuracy N/A N/A N/A best_parameter C N/A best_parameter gamma N/A C gamma N/A N/A N/A logger info N/A %d-CV Result = %.2f. N/A k N/A cv accuracy N/A N/A best_parameter results N/A