Module Import alias Import alias identifier Import alias Import alias ImportFrom alias alias alias ImportFrom alias alias alias alias alias alias alias alias ImportFrom alias FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore ListLoad Num Num Num Num Num Num Num Assign NameStore ListLoad Num Num Num Num Num Num Num Assign NameStore ListLoad Num Num Num Num Num Num Num Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad Num Num Num Num Num Num Assign NameStore ListLoad Num Num Num Num Num Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad Num Num Num Num Num Num Assign NameStore ListLoad Num Num Num Num Num Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad Num Num Num Num Num Num Assign NameStore ListLoad Num Num Num Num Num Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad Num Num Num Num Num Num Assign NameStore ListLoad Num Num Num Num Num Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad Num Num Num Num Num Num Assign NameStore ListLoad Num Num Num Num Num Num Assign NameStore Call NameLoad NameLoad Str NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Num Expr Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call NameLoad keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Assign NameStore Call NameLoad keyword Num keyword Num Expr Call NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Index NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index NameLoad Assign NameStore Call NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad Num Num Num Num Num Num Assign NameStore ListLoad Num Num Num Num Num Num Assign NameStore ListLoad Num Num Num Num Num Num Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad Num Num Num Num Num Num Assign NameStore ListLoad Num Num Num Num Num Num Assign NameStore ListLoad Num Num Num Num Num Num Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore ListLoad Num Num Num Num Num Num Num Num Num Num Num Assign NameStore ListLoad Num Num Num Num Num Num Num Num Num Num Num Assign NameStore ListLoad Num Num Num Num Num Num Num Num Num Num Num Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Num Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad Call NameLoad keyword NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Slice Num attr CompareGtE BinOpSub SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call NameLoad keyword Str With Call AttributeLoad NameLoad attr keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad Call NameLoad ListComp CompareIn Str Call NameLoad AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore CompareLt SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call NameLoad keyword Str With Call AttributeLoad NameLoad attr keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad Call NameLoad ListComp CompareIn Str Call NameLoad AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore CompareLt SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call NameLoad NameLoad AttributeLoad NameLoad attr ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Expr Call NameLoad NameLoad AttributeLoad NameLoad attr ListLoad Num Num Num ListLoad Num Num Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num ListLoad Num Num Num Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Num Num keyword TupleLoad NameLoad BinOpMult Num Call AttributeLoad NameLoad attr BinOpAdd Num Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad keyword Num keyword Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore ListLoad Num Num Num Num Num Num Num Assign NameStore ListLoad Num Num Num Num Num Num Num Assign NameStore ListLoad Num Num Num Num Num Num Num Assign NameStore ListLoad Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr ListLoad BinOpSub Call NameLoad NameLoad Num BinOpAdd Call NameLoad NameLoad Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad BinOpSub Call NameLoad NameLoad Num BinOpAdd Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Expr Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad BinOpSub Call NameLoad NameLoad Num BinOpAdd Call NameLoad NameLoad Num Expr Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call NameLoad keyword Str keyword Str Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Str Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad Num Num Num Assign NameStore ListLoad Num Num Num Assign NameStore Call NameLoad keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call NameLoad Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Num Num NameLoad Assign NameStore BinOpAdd NameLoad Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign SubscriptStore NameLoad Slice Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore BinOpPow Num Num Assign NameStore BinOpSub BinOpMult Num Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad BinOpDiv Num BinOpAdd Num Call AttributeLoad NameLoad attr UnaryOpUSub NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index CompareLt Call AttributeLoad NameLoad attr NameLoad Num Num Assign NameStore Call NameLoad keyword Num keyword Num keyword Str Assign NameStore Call NameLoad keyword Num keyword Num keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign NameStore BinOpSub BinOpMult Num Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list
N/A N/A warnings N/A numpy np N/A pickle N/A copy sklearn.isotonic check_increasing isotonic_regression IsotonicRegression sklearn.utils.testing assert_raises assert_array_equal assert_true assert_false assert_equal assert_array_almost_equal assert_warns_message assert_no_warnings sklearn.utils shuffle test_permutation_invariance N/A N/A N/A N/A N/A ir N/A IsotonicRegression N/A x N/A 1 2 3 4 5 6 7 N/A y N/A 1 41 51 1 2 5 24 N/A sample_weight N/A 1 2 3 4 5 6 7 N/A N/A x_s y_s sample_weight_s N/A shuffle x y sample_weight random_state 0 N/A y_transformed N/A N/A ir fit_transform x y sample_weight sample_weight N/A y_transformed_s N/A N/A N/A N/A ir fit x_s y_s sample_weight sample_weight_s transform x N/A N/A assert_array_equal y_transformed y_transformed_s N/A test_check_increasing_up N/A N/A N/A N/A N/A x N/A 0 1 2 3 4 5 N/A y N/A 0 1.5 2.77 8.99 8.99 50 N/A is_increasing N/A assert_no_warnings check_increasing x y N/A N/A assert_true is_increasing N/A test_check_increasing_up_extreme N/A N/A N/A N/A N/A x N/A 0 1 2 3 4 5 N/A y N/A 0 1 2 3 4 5 N/A is_increasing N/A assert_no_warnings check_increasing x y N/A N/A assert_true is_increasing N/A test_check_increasing_down N/A N/A N/A N/A N/A x N/A 0 1 2 3 4 5 N/A y N/A 0 -1.5 -2.77 -8.99 -8.99 -50 N/A is_increasing N/A assert_no_warnings check_increasing x y N/A N/A assert_false is_increasing N/A test_check_increasing_down_extreme N/A N/A N/A N/A N/A x N/A 0 1 2 3 4 5 N/A y N/A 0 -1 -2 -3 -4 -5 N/A is_increasing N/A assert_no_warnings check_increasing x y N/A N/A assert_false is_increasing N/A test_check_ci_warn N/A N/A N/A N/A N/A x N/A 0 1 2 3 4 5 N/A y N/A 0 -1 2 -3 4 -5 N/A is_increasing N/A assert_warns_message UserWarning interval check_increasing x y N/A N/A assert_false is_increasing N/A test_isotonic_regression N/A N/A N/A N/A N/A y N/A N/A np array N/A 3 7 5 9 8 7 10 N/A y_ N/A N/A np array N/A 3 6 6 8 8 8 10 N/A N/A assert_array_equal y_ N/A isotonic_regression y N/A x N/A N/A np arange N/A len y N/A ir N/A IsotonicRegression y_min 0.0 y_max 1.0 N/A N/A N/A ir fit x y N/A N/A assert_array_equal N/A N/A N/A N/A ir fit x y transform x N/A N/A ir fit_transform x y N/A N/A assert_array_equal N/A N/A ir transform x N/A N/A ir predict x N/A perm N/A N/A N/A np random permutation N/A len y N/A ir N/A IsotonicRegression y_min 0.0 y_max 1.0 N/A N/A assert_array_equal N/A N/A ir fit_transform N/A x N/A perm N/A y N/A perm N/A N/A N/A ir fit_transform x y N/A perm N/A N/A assert_array_equal N/A N/A ir transform N/A x N/A perm N/A N/A N/A ir transform x N/A perm N/A ir N/A IsotonicRegression N/A N/A assert_array_equal N/A N/A ir fit_transform N/A N/A np ones N/A len x y N/A N/A np mean y N/A test_isotonic_regression_ties_min N/A N/A N/A N/A N/A x N/A 1 1 2 3 4 5 N/A y N/A 1 2 3 4 5 6 N/A y_true N/A 1.5 1.5 3 4 5 6 N/A ir N/A IsotonicRegression N/A N/A N/A ir fit x y N/A N/A assert_array_equal N/A N/A N/A N/A ir fit x y transform x N/A N/A ir fit_transform x y N/A N/A assert_array_equal y_true N/A N/A ir fit_transform x y N/A test_isotonic_regression_ties_max N/A N/A N/A N/A N/A x N/A 1 2 3 4 5 5 N/A y N/A 1 2 3 4 5 6 N/A y_true N/A 1 2 3 4 5.5 5.5 N/A ir N/A IsotonicRegression N/A N/A N/A ir fit x y N/A N/A assert_array_equal N/A N/A N/A N/A ir fit x y transform x N/A N/A ir fit_transform x y N/A N/A assert_array_equal y_true N/A N/A ir fit_transform x y N/A test_isotonic_regression_ties_secondary_ N/A N/A N/A N/A N/A 
    Test isotonic regression fit, transform  and fit_transform
    against the "secondary" ties method and "pituitary" data from R
     "isotone" package, as detailed in: J. d. Leeuw, K. Hornik, P. Mair,
     Isotone Optimization in R: Pool-Adjacent-Violators Algorithm
    (PAVA) and Active Set Methods

    Set values based on pituitary example and
     the following R command detailed in the paper above:
    > library("isotone")
    > data("pituitary")
    > res1 <- gpava(pituitary$age, pituitary$size, ties="secondary")
    > res1$x

    `isotone` version: 1.0-2, 2014-09-07
    R version: R version 3.1.1 (2014-07-10)
     N/A x N/A 8 8 8 10 10 10 12 12 12 14 14 N/A y N/A 21 23.5 23 24 21 25 21.5 22 19 23.5 25 N/A y_true N/A 22.22222 22.22222 22.22222 22.22222 22.22222 22.22222 22.22222 22.22222 22.22222 24.25 24.25 N/A ir N/A IsotonicRegression N/A N/A N/A ir fit x y N/A N/A assert_array_almost_equal N/A N/A ir transform x y_true 4 N/A N/A assert_array_almost_equal N/A N/A ir fit_transform x y y_true 4 N/A test_isotonic_regression_reversed N/A N/A N/A N/A N/A y N/A N/A np array N/A 10 9 10 7 6 6.1 5 N/A y_ N/A N/A N/A IsotonicRegression increasing False fit_transform N/A N/A np arange N/A len y y N/A N/A assert_array_equal N/A N/A np ones N/A N/A y_ N/A -1 shape N/A N/A N/A y_ N/A -1 N/A y_ N/A 1 0 N/A test_isotonic_regression_auto_decreasing N/A N/A N/A N/A N/A y N/A N/A np array N/A 10 9 10 7 6 6.1 5 N/A x N/A N/A np arange N/A len y N/A ir N/A IsotonicRegression increasing auto N/A N/A N/A warnings catch_warnings record True w N/A N/A N/A N/A warnings simplefilter always N/A y_ N/A N/A ir fit_transform x y N/A N/A assert_true N/A all N/A N/A invalid value encountered in  N/A str N/A warn message N/A warn w N/A is_increasing N/A N/A y_ N/A 0 N/A y_ N/A -1 N/A N/A assert_false is_increasing N/A test_isotonic_regression_auto_increasing N/A N/A N/A N/A N/A y N/A N/A np array N/A 5 6.1 6 7 10 9 10 N/A x N/A N/A np arange N/A len y N/A ir N/A IsotonicRegression increasing auto N/A N/A N/A warnings catch_warnings record True w N/A N/A N/A N/A warnings simplefilter always N/A y_ N/A N/A ir fit_transform x y N/A N/A assert_true N/A all N/A N/A invalid value encountered in  N/A str N/A warn message N/A warn w N/A is_increasing N/A N/A y_ N/A 0 N/A y_ N/A -1 N/A N/A assert_true is_increasing N/A test_assert_raises_exceptions N/A N/A N/A N/A N/A ir N/A IsotonicRegression N/A rng N/A N/A N/A np random RandomState 42 N/A N/A assert_raises ValueError N/A ir fit N/A 0 1 2 N/A 5 7 3 N/A 0.1 0.6 N/A N/A assert_raises ValueError N/A ir fit N/A 0 1 2 N/A 5 7 N/A N/A assert_raises ValueError N/A ir fit N/A N/A rng randn 3 10 N/A 0 1 2 N/A N/A assert_raises ValueError N/A ir transform N/A N/A rng randn 3 10 N/A test_isotonic_sample_weight_parameter_default_value N/A N/A N/A N/A N/A ir N/A IsotonicRegression N/A rng N/A N/A N/A np random RandomState 42 N/A n 100 N/A x N/A N/A np arange n N/A y N/A N/A N/A rng randint -50 50 size N/A n N/A 50.0 N/A N/A np log N/A 1 N/A N/A np arange n N/A weights N/A N/A np ones n N/A y_set_value N/A N/A ir fit_transform x y sample_weight weights N/A y_default_value N/A N/A ir fit_transform x y N/A N/A assert_array_equal y_set_value y_default_value N/A test_isotonic_min_max_boundaries N/A N/A N/A N/A N/A ir N/A IsotonicRegression y_min 2 y_max 4 N/A n 6 N/A x N/A N/A np arange n N/A y N/A N/A np arange n N/A y_test N/A 2 2 2 3 4 4 N/A y_result N/A N/A np round N/A N/A ir fit_transform x y N/A N/A assert_array_equal y_result y_test N/A test_isotonic_sample_weight N/A N/A N/A N/A N/A ir N/A IsotonicRegression N/A x N/A 1 2 3 4 5 6 7 N/A y N/A 1 41 51 1 2 5 24 N/A sample_weight N/A 1 2 3 4 5 6 7 N/A expected_y N/A 1 13.95 13.95 13.95 13.95 13.95 24 N/A received_y N/A N/A ir fit_transform x y sample_weight sample_weight N/A N/A assert_array_equal expected_y received_y N/A test_isotonic_regression_oob_raise N/A N/A N/A N/A N/A y N/A N/A np array N/A 3 7 5 9 8 7 10 N/A x N/A N/A np arange N/A len y N/A ir N/A IsotonicRegression increasing auto out_of_bounds raise N/A N/A N/A ir fit x y N/A N/A assert_raises ValueError N/A ir predict N/A N/A N/A min x 10 N/A N/A max x 10 N/A test_isotonic_regression_oob_clip N/A N/A N/A N/A N/A y N/A N/A np array N/A 3 7 5 9 8 7 10 N/A x N/A N/A np arange N/A len y N/A ir N/A IsotonicRegression increasing auto out_of_bounds clip N/A N/A N/A ir fit x y N/A y1 N/A N/A ir predict N/A N/A N/A min x 10 N/A N/A max x 10 N/A y2 N/A N/A ir predict x N/A N/A assert_equal N/A max y1 N/A max y2 N/A N/A assert_equal N/A min y1 N/A min y2 N/A test_isotonic_regression_oob_nan N/A N/A N/A N/A N/A y N/A N/A np array N/A 3 7 5 9 8 7 10 N/A x N/A N/A np arange N/A len y N/A ir N/A IsotonicRegression increasing auto out_of_bounds nan N/A N/A N/A ir fit x y N/A y1 N/A N/A ir predict N/A N/A N/A min x 10 N/A N/A max x 10 N/A N/A assert_equal N/A sum N/A N/A np isnan y1 2 N/A test_isotonic_regression_oob_bad N/A N/A N/A N/A N/A y N/A N/A np array N/A 3 7 5 9 8 7 10 N/A x N/A N/A np arange N/A len y N/A ir N/A IsotonicRegression increasing auto out_of_bounds xyz N/A N/A assert_raises ValueError N/A ir fit x y N/A test_isotonic_regression_oob_bad_after N/A N/A N/A N/A N/A y N/A N/A np array N/A 3 7 5 9 8 7 10 N/A x N/A N/A np arange N/A len y N/A ir N/A IsotonicRegression increasing auto out_of_bounds raise N/A N/A N/A ir fit x y N/A N/A ir out_of_bounds xyz N/A N/A assert_raises ValueError N/A ir transform x N/A test_isotonic_regression_pickle N/A N/A N/A N/A N/A y N/A N/A np array N/A 3 7 5 9 8 7 10 N/A x N/A N/A np arange N/A len y N/A ir N/A IsotonicRegression increasing auto out_of_bounds clip N/A N/A N/A ir fit x y N/A ir_ser N/A N/A pickle dumps ir N/A pickle HIGHEST_PROTOCOL N/A ir2 N/A N/A pickle loads ir_ser N/A N/A N/A N/A np testing assert_array_equal N/A N/A ir predict x N/A N/A ir2 predict x N/A test_isotonic_duplicate_min_entry N/A N/A N/A N/A N/A x N/A 0 0 1 N/A y N/A 0 0 1 N/A ir N/A IsotonicRegression increasing True out_of_bounds clip N/A N/A N/A ir fit x y N/A all_predictions_finite N/A N/A np all N/A N/A np isfinite N/A N/A ir predict x N/A N/A assert_true all_predictions_finite N/A test_isotonic_zero_weight_loop N/A N/A N/A N/A N/A rng N/A N/A N/A np random RandomState 42 N/A regression N/A IsotonicRegression N/A n_samples 50 N/A x N/A N/A np linspace -3 3 n_samples N/A y N/A x N/A N/A rng uniform size n_samples N/A w N/A N/A rng uniform size n_samples N/A N/A w N/A 5 8 0 N/A N/A N/A regression fit x y sample_weight w N/A N/A N/A regression fit x y sample_weight w N/A test_fast_predict N/A N/A N/A N/A N/A rng N/A N/A N/A np random RandomState 123 N/A n_samples N/A 10 3 N/A X_train N/A N/A 20.0 N/A N/A rng rand n_samples 10 N/A y_train N/A N/A N/A N/A np less N/A N/A rng rand n_samples N/A 1.0 N/A 1.0 N/A N/A np exp N/A X_train astype int64 N/A weights N/A N/A rng rand n_samples N/A N/A weights N/A N/A N/A N/A rng rand n_samples 0.1 0 N/A slow_model N/A IsotonicRegression y_min 0 y_max 1 out_of_bounds clip N/A fast_model N/A IsotonicRegression y_min 0 y_max 1 out_of_bounds clip N/A N/A X_train_fit y_train_fit N/A N/A slow_model _build_y X_train y_train sample_weight weights trim_duplicates False N/A N/A N/A slow_model _build_f X_train_fit y_train_fit N/A N/A N/A fast_model fit X_train y_train sample_weight weights N/A X_test N/A N/A 20.0 N/A N/A rng rand n_samples 10 N/A y_pred_slow N/A N/A slow_model predict X_test N/A y_pred_fast N/A N/A fast_model predict X_test N/A N/A assert_array_equal y_pred_slow y_pred_fast N/A test_isotonic_copy_before_fit N/A N/A N/A N/A N/A ir N/A IsotonicRegression N/A N/A N/A copy copy ir N/A