Module Expr Str Print NameLoad Import alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias alias identifier Assign NameStore Num FunctionDef arguments args NameParam defaults body Expr Str Return BinOpSub BinOpSub Num SubscriptLoad NameLoad ExtSlice Slice Index Num BinOpMult Num BinOpPow SubscriptLoad NameLoad ExtSlice Slice Index Num Num decorator_list 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 ListLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr CompareGt Call NameLoad NameLoad Num keyword NameLoad Assign NameStore BinOpMult Call NameLoad Num TupleLoad Num AttributeLoad NameLoad attr BinOpPow Call NameLoad keyword Num Num Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Print BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr UnaryOpUSub NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr UnaryOpUSub NameLoad NameLoad NameLoad Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad ExtSlice Slice Index Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword Num keyword TupleLoad UnaryOpUSub NameLoad NameLoad UnaryOpUSub NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Num Num Num Num Num Num keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index TupleLoad CompareLtE NameLoad Num Num SubscriptLoad NameLoad Index TupleLoad CompareLtE NameLoad Num Num Str keyword Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index TupleLoad CompareGt NameLoad Num Num SubscriptLoad NameLoad Index TupleLoad CompareGt NameLoad Num Num Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad ListLoad Num keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad ListLoad Num keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad ListLoad Num keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad ListLoad Num keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr
N/A N/A 
=================================================================
Iso-probability lines for Gaussian Processes classification (GPC)
=================================================================

A two-dimensional classification example showing iso-probability lines for
the predicted probabilities.
 N/A __doc__ N/A numpy np matplotlib pyplot pl matplotlib cm sklearn.gaussian_process GaussianProcessClassifier sklearn.gaussian_process.kernels DotProduct ConstantKernel C N/A lim 8 g N/A N/A x N/A N/A N/A The function to predict (classification will then consist in predicting
    whether g(x) <= 0 or not) N/A N/A N/A 5.0 N/A x N/A N/A N/A 1 N/A 0.5 N/A N/A x N/A N/A N/A 0 2.0 N/A N/A X N/A N/A np array N/A N/A -4.61611719 -6.00099547 N/A 4.10469096 5.32782448 N/A 0.0 -0.5 N/A -6.17289014 -4.6984743 N/A 1.3109306 -6.93271427 N/A -5.03823144 3.10584743 N/A -2.87600388 6.74310541 N/A 5.21301203 4.26386883 N/A y N/A N/A np array N/A N/A g X 0 dtype int N/A kernel N/A N/A C 0.1 N/A 1e-05 N/A np inf N/A N/A DotProduct sigma_0 0.1 2 N/A gp N/A GaussianProcessClassifier kernel kernel N/A N/A N/A gp fit X y N/A N/A Learned kernel: %s  N/A gp kernel_ N/A res 50 N/A N/A x1 x2 N/A N/A np meshgrid N/A N/A np linspace N/A lim lim res N/A N/A np linspace N/A lim lim res N/A xx N/A N/A N/A np vstack N/A N/A N/A x1 reshape N/A x1 size N/A N/A x2 reshape N/A x2 size T N/A y_true N/A g xx N/A y_prob N/A N/A N/A gp predict_proba xx N/A N/A N/A 1 N/A y_true N/A N/A y_true reshape N/A res res N/A y_prob N/A N/A y_prob reshape N/A res res N/A fig N/A N/A pl figure 1 N/A ax N/A N/A fig gca N/A N/A N/A N/A ax axes set_aspect equal N/A N/A N/A pl xticks N/A N/A N/A N/A pl yticks N/A N/A N/A N/A ax set_xticklabels N/A N/A N/A N/A ax set_yticklabels N/A N/A N/A N/A pl xlabel $x_1$ N/A N/A N/A pl ylabel $x_2$ N/A cax N/A N/A pl imshow y_prob cmap N/A cm gray_r alpha 0.8 extent N/A N/A lim lim N/A lim lim N/A norm N/A N/A N/A N/A pl matplotlib colors Normalize vmin 0.0 vmax 0.9 N/A cb N/A N/A pl colorbar cax ticks N/A 0.0 0.2 0.4 0.6 0.8 1.0 norm norm N/A N/A N/A cb set_label ${\rm \mathbb{P}}\left[\widehat{G}(\mathbf{x}) \leq 0\right]$ N/A N/A N/A pl clim 0 1 N/A N/A N/A pl plot N/A X N/A N/A N/A y 0 0 N/A X N/A N/A N/A y 0 1 r. markersize 12 N/A N/A N/A pl plot N/A X N/A N/A N/A y 0 0 N/A X N/A N/A N/A y 0 1 b. markersize 12 N/A cs N/A N/A pl contour x1 x2 y_true N/A 0.0 colors k linestyles dashdot N/A cs N/A N/A pl contour x1 x2 y_prob N/A 0.666 colors b linestyles solid N/A N/A N/A pl clabel cs fontsize 11 N/A cs N/A N/A pl contour x1 x2 y_prob N/A 0.5 colors k linestyles dashed N/A N/A N/A pl clabel cs fontsize 11 N/A cs N/A N/A pl contour x1 x2 y_prob N/A 0.334 colors r linestyles solid N/A N/A N/A pl clabel cs fontsize 11 N/A N/A N/A pl show