<s> """<STR_LIT>""" <EOL> print ( __doc__ ) <EOL> import numpy as np <EOL> import matplotlib . pyplot as plt <EOL> from sklearn . semi_supervised import label_propagation <EOL> from sklearn . datasets import make_circles <EOL> n_samples = <NUM_LIT:200> <EOL> X , y = make_circles ( n_samples = n_samples , shuffle = False ) <EOL> outer , inner = <NUM_LIT:0> , <NUM_LIT:1> <EOL> labels = - np . ones ( n_samples ) <EOL> labels [ <NUM_LIT:0> ] = outer <EOL> labels [ - <NUM_LIT:1> ] = inner <EOL> label_spread = label_propagation . LabelSpreading ( kernel = '<STR_LIT>' , alpha = <NUM_LIT:1.0> ) <EOL> label_spread . fit ( X , labels ) <EOL> output_labels = label_spread . transduction_ <EOL> plt . figure ( figsize = ( <NUM_LIT> , <NUM_LIT:4> ) ) <EOL> plt . subplot ( <NUM_LIT:1> , <NUM_LIT:2> , <NUM_LIT:1> ) <EOL> plt . scatter ( X [ labels == outer , <NUM_LIT:0> ] , X [ labels == outer , <NUM_LIT:1> ] , color = '<STR_LIT>' , <EOL> marker = '<STR_LIT:s>' , lw = <NUM_LIT:0> , label = "<STR_LIT>" , s = <NUM_LIT:10> ) <EOL> plt . scatter ( X [ labels == inner , <NUM_LIT:0> ] , X [ labels == inner , <NUM_LIT:1> ] , color = '<STR_LIT:c>' , <EOL> marker = '<STR_LIT:s>' , lw = <NUM_LIT:0> , label = '<STR_LIT>' , s = <NUM_LIT:10> ) <EOL> plt . scatter ( X [ labels == - <NUM_LIT:1> , <NUM_LIT:0> ] , X [ labels == - <NUM_LIT:1> , <NUM_LIT:1> ] , color = '<STR_LIT>' , <EOL> marker = '<STR_LIT:.>' , label = '<STR_LIT>' ) <EOL> plt . legend ( scatterpoints = <NUM_LIT:1> , shadow = False , loc = '<STR_LIT>' ) <EOL> plt . title ( "<STR_LIT>" ) <EOL> plt . subplot ( <NUM_LIT:1> , <NUM_LIT:2> , <NUM_LIT:2> ) <EOL> output_label_array = np . asarray ( output_labels ) <EOL> outer_numbers = np . where ( output_label_array == outer ) [ <NUM_LIT:0> ] <EOL> inner_numbers = np . where ( output_label_array == inner ) [ <NUM_LIT:0> ] <EOL> plt . scatter ( X [ outer_numbers , <NUM_LIT:0> ] , X [ outer_numbers , <NUM_LIT:1> ] , color = '<STR_LIT>' , <EOL> marker = '<STR_LIT:s>' , lw = <NUM_LIT:0> , s = <NUM_LIT:10> , label = "<STR_LIT>" ) <EOL> plt . scatter ( X [ inner_numbers , <NUM_LIT:0> ] , X [ inner_numbers , <NUM_LIT:1> ] , color = '<STR_LIT:c>' , <EOL> marker = '<STR_LIT:s>' , lw = <NUM_LIT:0> , s = <NUM_LIT:10> , label = "<STR_LIT>" ) <EOL> plt . legend ( scatterpoints = <NUM_LIT:1> , shadow = False , loc = '<STR_LIT>' ) <EOL> plt . title ( "<STR_LIT>" ) <EOL> plt . subplots_adjust ( left = <NUM_LIT> , bottom = <NUM_LIT> , right = <NUM_LIT> , top = <NUM_LIT> ) <EOL> plt . show ( ) </s>
