Module Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Str NameLoad NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad CompareLtLt SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Expr Call NameLoad NameLoad NameLoad Str NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Assign NameStore Call NameLoad Str NameLoad NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Expr Call NameLoad NameLoad Call AttributeLoad NameLoad attr ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Assign NameStore Call NameLoad Str NameLoad NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Expr Call NameLoad NameLoad Call AttributeLoad NameLoad attr ListLoad Num Num Num keyword Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Assign NameStore Call NameLoad Str NameLoad NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Expr Call NameLoad NameLoad Call AttributeLoad NameLoad attr ListLoad Num Num Num keyword Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Assign NameStore Call NameLoad Str NameLoad Expr Call NameLoad NameLoad ListLoad Num Num Num Num Num Num Assign NameStore Call NameLoad Dict Num Num Num Num NameLoad Expr Call NameLoad NameLoad ListLoad Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num Assign NameStore Call NameLoad Str NameLoad Expr Call NameLoad NameLoad ListLoad Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Num Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Num Expr Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad ListLoad Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num Assign NameStore Call NameLoad Str NameLoad Expr Call NameLoad NameLoad ListLoad Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num Assign NameStore Call NameLoad ListLoad Dict Num Num Num Num Dict Num Num Num Num NameLoad Expr Call NameLoad NameLoad ListLoad Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num Assign NameStore Call NameLoad Str NameLoad Expr Call NameLoad NameLoad BinOpPow NameLoad Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Assign NameStore Call NameLoad Str NameLoad Call NameLoad Num Expr Call NameLoad NameLoad ListLoad Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num Assign NameStore Call NameLoad Str NameLoad Call NameLoad Num Expr Call NameLoad NameLoad ListLoad Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Assign NameStore Call NameLoad Str NameLoad Call NameLoad Num Expr Call NameLoad NameLoad ListLoad Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Assign NameStore Call NameLoad Str NameLoad ListLoad Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad BinOpDiv Num Num BinOpDiv Num Num BinOpDiv Num Num BinOpDiv Num Num BinOpDiv Num Num BinOpDiv Num Num Expr Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num Assign NameStore Call NameLoad Str NameLoad ListLoad Num Num Num Num Num Num Expr Call NameLoad NameLoad BinOpPow NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Num Assign NameStore Call NameLoad Str NameLoad Call NameLoad Num Expr Call NameLoad NameLoad ListLoad Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num Assign NameStore Call NameLoad Str NameLoad Call NameLoad Num Expr Call NameLoad NameLoad ListLoad Num Num Num Num Num Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num Expr Call NameLoad NameLoad NameLoad Str NameLoad Expr Call NameLoad NameLoad NameLoad Str NameLoad Call NameLoad Num Expr Call NameLoad NameLoad NameLoad Str NameLoad Expr Call NameLoad NameLoad NameLoad Str NameLoad Call NameLoad Num Expr Call NameLoad NameLoad NameLoad Dict Num Num Num Num NameLoad Call NameLoad Num Expr Call NameLoad NameLoad NameLoad Dict Num Num Num Num NameLoad Expr Call NameLoad NameLoad NameLoad ListLoad Dict Num Num Num Num NameLoad decorator_list
N/A N/A numpy np gplearn.skutils.class_weight compute_class_weight gplearn.skutils.class_weight compute_sample_weight gplearn.skutils.testing assert_array_almost_equal gplearn.skutils.testing assert_almost_equal gplearn.skutils.testing assert_raises gplearn.skutils.testing assert_true gplearn.skutils.testing assert_equal test_compute_class_weight N/A N/A N/A N/A N/A y N/A N/A np asarray N/A 2 2 2 3 3 4 N/A classes N/A N/A np unique y N/A cw N/A compute_class_weight auto classes y N/A N/A assert_almost_equal N/A N/A cw sum N/A classes shape N/A N/A assert_true N/A N/A cw N/A 0 N/A cw N/A 1 N/A cw N/A 2 N/A test_compute_class_weight_not_present N/A N/A N/A N/A N/A classes N/A N/A np arange 4 N/A y N/A N/A np asarray N/A 0 0 0 1 1 2 N/A N/A assert_raises ValueError compute_class_weight auto classes y N/A test_compute_class_weight_auto_negative N/A N/A N/A N/A N/A classes N/A N/A np array N/A -2 -1 0 N/A y N/A N/A np asarray N/A -1 -1 0 0 -2 -2 N/A cw N/A compute_class_weight auto classes y N/A N/A assert_almost_equal N/A N/A cw sum N/A classes shape N/A N/A assert_equal N/A len cw N/A len classes N/A N/A assert_array_almost_equal cw N/A N/A np array N/A 1.0 1.0 1.0 N/A y N/A N/A np asarray N/A -1 0 0 -2 -2 -2 N/A cw N/A compute_class_weight auto classes y N/A N/A assert_almost_equal N/A N/A cw sum N/A classes shape N/A N/A assert_equal N/A len cw N/A len classes N/A N/A assert_array_almost_equal cw N/A N/A np array N/A 0.545 1.636 0.818 decimal 3 N/A test_compute_class_weight_auto_unordered N/A N/A N/A N/A N/A classes N/A N/A np array N/A 1 0 3 N/A y N/A N/A np asarray N/A 1 0 0 3 3 3 N/A cw N/A compute_class_weight auto classes y N/A N/A assert_almost_equal N/A N/A cw sum N/A classes shape N/A N/A assert_equal N/A len cw N/A len classes N/A N/A assert_array_almost_equal cw N/A N/A np array N/A 1.636 0.818 0.545 decimal 3 N/A test_compute_sample_weight N/A N/A N/A N/A N/A y N/A N/A np asarray N/A 1 1 1 2 2 2 N/A sample_weight N/A compute_sample_weight auto y N/A N/A assert_array_almost_equal sample_weight N/A 1.0 1.0 1.0 1.0 1.0 1.0 N/A sample_weight N/A compute_sample_weight N/A 1 2 2 1 y N/A N/A assert_array_almost_equal sample_weight N/A 2.0 2.0 2.0 1.0 1.0 1.0 N/A y N/A N/A np asarray N/A N/A 1 N/A 1 N/A 1 N/A 2 N/A 2 N/A 2 N/A sample_weight N/A compute_sample_weight auto y N/A N/A assert_array_almost_equal sample_weight N/A 1.0 1.0 1.0 1.0 1.0 1.0 N/A y N/A N/A np asarray N/A 1 1 1 2 2 2 3 N/A sample_weight N/A compute_sample_weight auto y N/A expected N/A N/A np asarray N/A 0.6 0.6 0.6 0.6 0.6 0.6 1.8 N/A N/A assert_array_almost_equal sample_weight expected N/A sample_weight N/A compute_sample_weight None y N/A N/A assert_array_almost_equal sample_weight N/A 1.0 1.0 1.0 1.0 1.0 1.0 1.0 N/A y N/A N/A np asarray N/A N/A 1 0 N/A 1 0 N/A 1 0 N/A 2 1 N/A 2 1 N/A 2 1 N/A sample_weight N/A compute_sample_weight auto y N/A N/A assert_array_almost_equal sample_weight N/A 1.0 1.0 1.0 1.0 1.0 1.0 N/A y N/A N/A np asarray N/A N/A 1 0 N/A 1 0 N/A 1 0 N/A 2 1 N/A 2 1 N/A 2 1 N/A sample_weight N/A compute_sample_weight N/A N/A 1 2 2 1 N/A 0 1 1 2 y N/A N/A assert_array_almost_equal sample_weight N/A 2.0 2.0 2.0 2.0 2.0 2.0 N/A y N/A N/A np asarray N/A N/A 1 0 N/A 1 0 N/A 1 0 N/A 2 1 N/A 2 1 N/A 2 1 N/A 3 -1 N/A sample_weight N/A compute_sample_weight auto y N/A N/A assert_array_almost_equal sample_weight N/A expected 2 N/A test_compute_sample_weight_with_subsample N/A N/A N/A N/A N/A y N/A N/A np asarray N/A 1 1 1 2 2 2 N/A sample_weight N/A compute_sample_weight auto y N/A range 6 N/A N/A assert_array_almost_equal sample_weight N/A 1.0 1.0 1.0 1.0 1.0 1.0 N/A y N/A N/A np asarray N/A N/A 1 N/A 1 N/A 1 N/A 2 N/A 2 N/A 2 N/A sample_weight N/A compute_sample_weight auto y N/A range 6 N/A N/A assert_array_almost_equal sample_weight N/A 1.0 1.0 1.0 1.0 1.0 1.0 N/A y N/A N/A np asarray N/A 1 1 1 2 2 2 N/A sample_weight N/A compute_sample_weight auto y N/A range 4 N/A N/A assert_array_almost_equal sample_weight N/A 0.5 0.5 0.5 1.5 1.5 1.5 N/A y N/A N/A np asarray N/A 1 1 1 2 2 2 N/A sample_weight N/A compute_sample_weight auto y N/A 0 1 1 2 2 3 N/A expected N/A N/A np asarray N/A N/A 1 3.0 N/A 1 3.0 N/A 1 3.0 N/A 5 3.0 N/A 5 3.0 N/A 5 3.0 N/A N/A assert_array_almost_equal sample_weight expected N/A y N/A N/A np asarray N/A N/A 1 0 N/A 1 0 N/A 1 0 N/A 2 1 N/A 2 1 N/A 2 1 N/A sample_weight N/A compute_sample_weight auto y N/A 0 1 1 2 2 3 N/A N/A assert_array_almost_equal sample_weight N/A expected 2 N/A y N/A N/A np asarray N/A 1 1 1 2 2 2 3 N/A sample_weight N/A compute_sample_weight auto y N/A range 6 N/A N/A assert_array_almost_equal sample_weight N/A 1.0 1.0 1.0 1.0 1.0 1.0 0.0 N/A y N/A N/A np asarray N/A N/A 1 0 N/A 1 0 N/A 1 0 N/A 2 1 N/A 2 1 N/A 2 1 N/A 2 2 N/A sample_weight N/A compute_sample_weight auto y N/A range 6 N/A N/A assert_array_almost_equal sample_weight N/A 1.0 1.0 1.0 1.0 1.0 1.0 0.0 N/A test_compute_sample_weight_errors N/A N/A N/A N/A N/A y N/A N/A np asarray N/A 1 1 1 2 2 2 N/A y_ N/A N/A np asarray N/A N/A 1 0 N/A 1 0 N/A 1 0 N/A 2 1 N/A 2 1 N/A 2 1 N/A N/A assert_raises ValueError compute_sample_weight ni y N/A N/A assert_raises ValueError compute_sample_weight ni y N/A range 4 N/A N/A assert_raises ValueError compute_sample_weight ni y_ N/A N/A assert_raises ValueError compute_sample_weight ni y_ N/A range 4 N/A N/A assert_raises ValueError compute_sample_weight N/A 1 2 2 1 y N/A range 4 N/A N/A assert_raises ValueError compute_sample_weight N/A 1 2 2 1 y_ N/A N/A assert_raises ValueError compute_sample_weight N/A N/A 1 2 2 1 y_ N/A