Module Expr Str Import alias ImportFrom alias ImportFrom alias Import alias identifier ImportFrom alias alias Import alias identifier ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num keyword AttributeLoad NameLoad attr Assign NameStore BinOpAdd NameLoad Call AttributeLoad NameLoad attr Num keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword NameLoad Expr Call NameLoad CompareIsNot Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num keyword AttributeLoad NameLoad attr Expr Call NameLoad CompareIs Call NameLoad NameLoad keyword NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword NameLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num attr Call AttributeLoad Call NameLoad Num Num keyword Num attr For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign SubscriptStore NameLoad Index TupleLoad Num Num AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Num Num Expr Call NameLoad Call NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call NameLoad Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call NameLoad Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Lambda arguments args NameParam defaults Call NameLoad NameLoad keyword NameLoad With Call NameLoad keyword Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num keyword AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Slice Num For NameStore TupleLoad NameLoad AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Slice Num Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Slice Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num For NameStore TupleLoad NameLoad AttributeLoad NameLoad attr body For NameStore TupleLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad keyword Str keyword NameLoad Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call NameLoad NameLoad keyword Str keyword NameLoad Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str If NameLoad body Expr Call NameLoad CompareIs NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Expr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str For NameStore TupleLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad keyword Str keyword NameLoad keyword Str Expr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad ListLoad Num Num ListLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad ListLoad Num Num Num Expr Call NameLoad AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad ListLoad Num Num Num keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Num Num Num Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Num Num attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index TupleLoad Num Num AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Num Num attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index TupleLoad Num Num AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Num Num attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Str Str NameLoad Assign NameStore ListLoad NameLoad NameLoad For TupleStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If CompareIsNot NameLoad NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad orelse Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad Str body Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str orelse If CompareEq NameLoad Str body Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str If NameLoad body Expr Call NameLoad CompareIs NameLoad NameLoad orelse If BoolOpAnd CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call NameLoad CompareIs NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore ListLoad ListLoad Str Str ListLoad Str Str For TupleStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad body With Call AttributeLoad NameLoad attr keyword NameLoad NameStore body Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If BoolOpAnd BoolOpOr CompareIs NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad body Assign NameStore Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Assign NameStore ListLoad Str Str Expr Call NameLoad CompareIn NameLoad NameLoad orelse Expr Call NameLoad Call NameLoad NameLoad Num If CompareIsNot NameLoad NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad orelse Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIn AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Expr Call NameLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num If NameLoad body Expr Call NameLoad CompareIs NameLoad NameLoad orelse If BoolOpAnd CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call NameLoad CompareIs NameLoad NameLoad Assign NameStore Call NameLoad ListLoad ListLoad Num Num ListLoad Num Num Expr Call NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Str Expr Call NameLoad NameLoad NameLoad NameLoad ListLoad Assign NameStore Str Expr Call NameLoad NameLoad NameLoad NameLoad ListLoad keyword NameLoad Assign NameStore Str Expr Call NameLoad NameLoad NameLoad NameLoad Num keyword NameLoad Assign NameStore Call NameLoad Num keyword NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Str Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword Num Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Str Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword Num Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword Num keyword NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Str Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad keyword NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Call NameLoad Call NameLoad NameLoad Str Expr Call NameLoad Call NameLoad NameLoad Str Expr Call NameLoad Call NameLoad NameLoad Str Expr Call NameLoad Call NameLoad Call NameLoad Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num Assign NameStore Dict Str Str Str Str Str Str Str NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad If Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad orelse Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Call NameLoad NameLoad NameLoad NameLoad Str Expr Call NameLoad NameLoad NameLoad Str Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad TryExcept body Expr Call NameLoad NameLoad NameLoad NameLoad Str Expr Call NameLoad NameLoad NameLoad NameLoad Str handlers ExceptHandler type NameLoad body Assert NameLoad Str TryExcept body Expr Call NameLoad NameLoad Str Str handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad Call NameLoad NameLoad Str TryExcept body Expr Call NameLoad NameLoad Str Str handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call NameLoad NameLoad Call NameLoad NameLoad Str Expr Call NameLoad NameLoad Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Call NameLoad ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num Expr Call NameLoad ListLoad ListLoad Num Num ListLoad ListLoad Num Num ListLoad Num Num ListLoad Str Str Expr Call NameLoad ListLoad Num TupleLoad Num Call AttributeLoad NameLoad attr ListLoad Num Call AttributeLoad NameLoad attr TupleLoad Num Num Expr Call NameLoad NameLoad Str NameLoad ListLoad Num Num ListLoad Num Expr Call NameLoad NameLoad Str NameLoad ListLoad Num Num Num Expr Call NameLoad NameLoad Str NameLoad ListLoad Num Num Call NameLoad Expr Call NameLoad NameLoad NameLoad ListLoad Num Num Call AttributeLoad NameLoad attr Num Expr Call NameLoad NameLoad Str NameLoad ListLoad Num Num Call NameLoad decorator_list
N/A N/A Tests for input validation functions N/A warnings tempfile NamedTemporaryFile itertools product N/A numpy np numpy.testing assert_array_equal assert_warns N/A scipy.sparse sp nose.tools assert_raises assert_true assert_false assert_equal gplearn.skutils.testing assert_raises_regexp gplearn.skutils as_float_array check_array check_symmetric gplearn.skutils check_X_y gplearn.skutils.estimator_checks NotAnArray sklearn.random_projection sparse_random_matrix sklearn.linear_model ARDRegression sklearn.neighbors KNeighborsClassifier sklearn.ensemble RandomForestRegressor sklearn.svm SVR sklearn.datasets make_blobs gplearn.skutils.validation NotFittedError has_fit_parameter check_is_fitted check_consistent_length gplearn.skutils.testing assert_raise_message test_as_float_array N/A N/A N/A N/A N/A X N/A N/A np ones N/A 3 10 dtype N/A np int32 N/A X N/A X N/A N/A np arange 10 dtype N/A np int32 N/A X2 N/A as_float_array X copy False N/A N/A N/A N/A np testing assert_equal N/A X2 dtype N/A np float32 N/A X N/A N/A X astype N/A np int64 N/A X2 N/A as_float_array X copy True N/A N/A assert_true N/A N/A as_float_array X False X N/A N/A N/A N/A np testing assert_equal N/A X2 dtype N/A np float64 N/A X N/A N/A np ones N/A 3 2 dtype N/A np float32 N/A N/A assert_true N/A N/A as_float_array X copy False X N/A X N/A N/A np asfortranarray X N/A N/A assert_true N/A N/A np isfortran N/A as_float_array X copy True N/A matrices N/A N/A N/A np matrix N/A N/A np arange 5 N/A N/A N/A N/A sp csc_matrix N/A N/A np arange 5 toarray N/A N/A N/A sparse_random_matrix 10 10 density 0.1 toarray N/A M matrices N/A N/A N N/A as_float_array M copy True N/A N/A N N/A N/A 0 0 N/A np nan N/A N/A assert_false N/A N/A N/A N/A np isnan M any N/A test_np_matrix N/A N/A N/A N/A N/A X N/A N/A N/A N/A np arange 12 reshape 3 4 N/A N/A assert_false N/A isinstance N/A as_float_array X N/A np matrix N/A N/A assert_false N/A isinstance N/A as_float_array N/A N/A np matrix X N/A np matrix N/A N/A assert_false N/A isinstance N/A as_float_array N/A N/A sp csc_matrix X N/A np matrix N/A test_memmap N/A N/A N/A N/A N/A asflt N/A N/A N/A x N/A N/A as_float_array x copy False N/A N/A NamedTemporaryFile prefix sklearn-test tmp N/A N/A M N/A N/A np memmap tmp shape 100 dtype N/A np float32 N/A N/A M N/A 0 N/A f N/A check_array N/A np asarray asflt N/A N/A X N/A f M N/A N/A X N/A 1 N/A N/A assert_array_equal N/A N/A X ravel M N/A N/A X N/A 0 N/A test_ordering N/A N/A N/A N/A N/A X N/A N/A np ones N/A 10 5 N/A A N/A X N/A X T N/A N/A copy N/A True False N/A N/A B N/A check_array A order C copy copy N/A N/A assert_true N/A N/A B flags N/A C_CONTIGUOUS N/A B N/A check_array A order F copy copy N/A N/A assert_true N/A N/A B flags N/A F_CONTIGUOUS N/A copy N/A N/A N/A assert_false N/A A B N/A X N/A N/A sp csr_matrix X N/A N/A X data N/A N/A X data N/A -1 N/A N/A assert_false N/A N/A N/A X data flags N/A C_CONTIGUOUS N/A copy N/A True False N/A N/A Y N/A check_array X accept_sparse csr copy copy order C N/A N/A assert_true N/A N/A N/A Y data flags N/A C_CONTIGUOUS N/A test_check_array N/A N/A N/A N/A N/A X N/A N/A 1 2 N/A 3 4 N/A X_csr N/A N/A sp csr_matrix X N/A N/A assert_raises TypeError check_array X_csr N/A X_array N/A check_array N/A 0 1 2 N/A N/A assert_equal N/A X_array ndim 2 N/A X_array N/A check_array N/A 0 1 2 ensure_2d False N/A N/A assert_equal N/A X_array ndim 1 N/A X_ndim N/A N/A N/A N/A np arange 8 reshape 2 2 2 N/A N/A assert_raises ValueError check_array X_ndim N/A N/A check_array X_ndim allow_nd True N/A X_inf N/A N/A N/A N/A N/A N/A np arange 4 reshape 2 2 astype N/A np float N/A N/A X_inf N/A N/A 0 0 N/A np inf N/A N/A assert_raises ValueError check_array X_inf N/A N/A check_array X_inf force_all_finite False N/A X_nan N/A N/A N/A N/A N/A N/A np arange 4 reshape 2 2 astype N/A np float N/A N/A X_nan N/A N/A 0 0 N/A np nan N/A N/A assert_raises ValueError check_array X_nan N/A N/A check_array X_inf force_all_finite False N/A X_C N/A N/A N/A N/A N/A N/A np arange 4 reshape 2 2 copy C N/A X_F N/A N/A X_C copy F N/A X_int N/A N/A X_C astype N/A np int N/A X_float N/A N/A X_C astype N/A np float N/A Xs N/A X_C X_F X_int X_float N/A dtypes N/A N/A np int32 N/A np int N/A np float N/A np float32 None N/A np bool object N/A orders N/A C F None N/A copys N/A True False N/A N/A X dtype order copy N/A product Xs dtypes orders copys N/A N/A X_checked N/A check_array X dtype dtype order order copy copy N/A N/A dtype None N/A N/A N/A assert_equal N/A X_checked dtype dtype N/A N/A N/A assert_equal N/A X_checked dtype N/A X dtype N/A N/A order C N/A N/A N/A assert_true N/A N/A X_checked flags N/A C_CONTIGUOUS N/A N/A assert_false N/A N/A X_checked flags N/A F_CONTIGUOUS N/A N/A N/A order F N/A N/A N/A assert_true N/A N/A X_checked flags N/A F_CONTIGUOUS N/A N/A assert_false N/A N/A X_checked flags N/A C_CONTIGUOUS N/A copy N/A N/A N/A assert_false N/A X X_checked N/A N/A N/A N/A N/A X dtype N/A X_checked dtype N/A N/A N/A X_checked flags N/A C_CONTIGUOUS N/A N/A X flags N/A C_CONTIGUOUS N/A N/A N/A X_checked flags N/A F_CONTIGUOUS N/A N/A X flags N/A F_CONTIGUOUS N/A N/A N/A assert_true N/A X X_checked N/A X_csc N/A N/A sp csc_matrix X_C N/A X_coo N/A N/A X_csc tocoo N/A X_dok N/A N/A X_csc todok N/A X_int N/A N/A X_csc astype N/A np int N/A X_float N/A N/A X_csc astype N/A np float N/A Xs N/A X_csc X_coo X_dok X_int X_float N/A accept_sparses N/A N/A csr coo N/A coo dok N/A N/A X dtype accept_sparse copy N/A product Xs dtypes accept_sparses copys N/A N/A N/A N/A warnings catch_warnings record True w N/A N/A X_checked N/A check_array X dtype dtype accept_sparse accept_sparse copy copy N/A N/A N/A N/A dtype object N/A N/A sp isspmatrix_dok X N/A len w N/A N/A message N/A str N/A N/A w N/A 0 message N/A messages N/A object dtype is not supported by sparse matrices Can't check dok sparse matrix for nan or inf. N/A N/A assert_true N/A message messages N/A N/A N/A assert_equal N/A len w 0 N/A N/A dtype None N/A N/A N/A assert_equal N/A X_checked dtype dtype N/A N/A N/A assert_equal N/A X_checked dtype N/A X dtype N/A N/A N/A X format accept_sparse N/A N/A N/A assert_equal N/A X format N/A X_checked format N/A N/A N/A assert_equal N/A X_checked format N/A accept_sparse N/A 0 N/A copy N/A N/A N/A assert_false N/A X X_checked N/A N/A N/A N/A N/A X dtype N/A X_checked dtype N/A N/A X format N/A X_checked format N/A N/A N/A assert_true N/A X X_checked N/A X_dense N/A check_array N/A N/A 1 2 N/A 3 4 N/A N/A assert_true N/A isinstance X_dense N/A np ndarray N/A N/A assert_raises ValueError check_array N/A N/A X_ndim tolist N/A N/A check_array N/A N/A X_ndim tolist allow_nd True N/A X_no_array N/A NotAnArray X_dense N/A result N/A check_array X_no_array N/A N/A assert_true N/A isinstance result N/A np ndarray N/A test_check_array_min_samples_and_features_messages N/A N/A N/A N/A N/A msg 0 feature(s) (shape=(1, 0)) while a minimum of 1 is required. N/A N/A assert_raise_message ValueError msg check_array N/A N/A msg 0 sample(s) (shape=(0,)) while a minimum of 1 is required. N/A N/A assert_raise_message ValueError msg check_array N/A ensure_2d False N/A msg Singleton array array(42) cannot be considered a valid collection. N/A N/A assert_raise_message TypeError msg check_array 42 ensure_2d False N/A X_checked N/A check_array 42 ensure_2d True N/A N/A assert_array_equal N/A N/A np array N/A N/A 42 X_checked N/A X N/A N/A np ones N/A 1 10 N/A y N/A N/A np ones 1 N/A msg 1 sample(s) (shape=(1, 10)) while a minimum of 2 is required. N/A N/A assert_raise_message ValueError msg check_X_y X y ensure_min_samples 2 N/A N/A assert_raise_message ValueError msg check_X_y X y ensure_min_samples 2 ensure_2d False N/A X N/A N/A np ones N/A 10 2 N/A y N/A N/A np ones 2 N/A msg 2 feature(s) (shape=(10, 2)) while a minimum of 3 is required. N/A N/A assert_raise_message ValueError msg check_X_y X y ensure_min_features 3 N/A N/A assert_raise_message ValueError msg check_X_y X y ensure_min_features 3 allow_nd True N/A X N/A N/A N/A N/A np empty 0 reshape 10 0 N/A y N/A N/A np ones 10 N/A msg 0 feature(s) (shape=(10, 0)) while a minimum of 1 is required. N/A N/A assert_raise_message ValueError msg check_X_y X y N/A X N/A N/A np ones N/A 10 0 28 28 N/A y N/A N/A np ones 10 N/A N/A X_checked y_checked N/A check_X_y X y allow_nd True N/A N/A assert_array_equal X X_checked N/A N/A assert_array_equal y y_checked N/A test_has_fit_parameter N/A N/A N/A N/A N/A N/A assert_false N/A has_fit_parameter KNeighborsClassifier sample_weight N/A N/A assert_true N/A has_fit_parameter RandomForestRegressor sample_weight N/A N/A assert_true N/A has_fit_parameter SVR sample_weight N/A N/A assert_true N/A has_fit_parameter N/A SVR sample_weight N/A test_check_symmetric N/A N/A N/A N/A N/A arr_sym N/A N/A np array N/A N/A 0 1 N/A 1 2 N/A arr_bad N/A N/A np ones 2 N/A arr_asym N/A N/A np array N/A N/A 0 2 N/A 0 2 N/A test_arrays N/A dense dok csr csc coo lil bsr arr_asym N/A N/A sp dok_matrix arr_asym N/A N/A sp csr_matrix arr_asym N/A N/A sp csc_matrix arr_asym N/A N/A sp coo_matrix arr_asym N/A N/A sp lil_matrix arr_asym N/A N/A sp bsr_matrix arr_asym N/A N/A assert_raises ValueError check_symmetric arr_bad N/A N/A arr_format arr N/A N/A test_arrays items N/A N/A N/A assert_warns UserWarning check_symmetric arr N/A N/A assert_raises ValueError check_symmetric arr raise_exception True N/A output N/A check_symmetric arr raise_warning False N/A N/A N/A sp issparse output N/A N/A N/A assert_equal N/A output format arr_format N/A N/A assert_array_equal N/A N/A output toarray arr_sym N/A N/A N/A assert_array_equal output arr_sym N/A test_check_is_fitted N/A N/A N/A N/A N/A N/A assert_raises ValueError check_is_fitted ARDRegression coef_ N/A N/A assert_raises TypeError check_is_fitted SVR support_ N/A ard N/A ARDRegression N/A svr N/A SVR N/A N/A N/A N/A assert_raises NotFittedError check_is_fitted ard coef_ N/A N/A assert_raises NotFittedError check_is_fitted svr support_ N/A N/A N/A ValueError N/A N/A False check_is_fitted failed with ValueError N/A N/A N/A N/A check_is_fitted ard coef_ Random message %(name)s, %(name)s N/A N/A N/A ValueError N/A e N/A N/A N/A assert_equal N/A str e Random message ARDRegression, ARDRegression N/A N/A N/A N/A check_is_fitted svr support_ Another message %(name)s, %(name)s N/A N/A N/A AttributeError N/A e N/A N/A N/A assert_equal N/A str e Another message SVR, SVR N/A N/A N/A ard fit N/A make_blobs N/A N/A N/A svr fit N/A make_blobs N/A N/A assert_equal None N/A check_is_fitted ard coef_ N/A N/A assert_equal None N/A check_is_fitted svr support_ N/A test_check_consistent_length N/A N/A N/A N/A N/A N/A check_consistent_length N/A 1 N/A 2 N/A 3 N/A 4 N/A 5 N/A N/A check_consistent_length N/A N/A 1 2 N/A N/A 1 2 N/A 1 2 N/A a b N/A N/A check_consistent_length N/A 1 N/A 2 N/A N/A np array N/A 3 N/A N/A sp csr_matrix N/A 1 2 N/A N/A assert_raises_regexp ValueError inconsistent numbers of samples check_consistent_length N/A 1 2 N/A 1 N/A N/A assert_raises_regexp TypeError got <\w+ 'int'> check_consistent_length N/A 1 2 1 N/A N/A assert_raises_regexp TypeError got <\w+ 'object'> check_consistent_length N/A 1 2 N/A object N/A N/A assert_raises TypeError check_consistent_length N/A 1 2 N/A N/A np array 1 N/A N/A assert_raises_regexp TypeError estimator check_consistent_length N/A 1 2 N/A RandomForestRegressor N/A