original_docstring: Plot SVM Classification Distance from Hyperplane
  
      Args:
          stats_output: a pandas file with prediction output
  
      Returns:
          fig: Will return a seaborn plot of distance from hyperplane
  
      
docstring: Plot SVM Classification Distance from Hyperplane
docstring_tokens: Plot SVM Classification Distance from Hyperplane
code: def dist_from_hyperplane_plot(stats_output):
      """Plot SVM Classification Distance from Hyperplane
  
      Args:
          stats_output: a pandas file with prediction output
  
      Returns:
          fig: Will return a seaborn plot of distance from hyperplane
  
      """
  
      if "dist_from_hyperplane_xval" in stats_output.columns:
          sns.factorplot(
              "subject_id",
              "dist_from_hyperplane_xval",
              hue="Y",
              data=stats_output,
              kind="point",
          )
      else:
          sns.factorplot(
              "subject_id",
              "dist_from_hyperplane_all",
              hue="Y",
              data=stats_output,
              kind="point",
          )
      plt.xlabel("Subject", fontsize=16)
      plt.ylabel("Distance from Hyperplane", fontsize=16)
      plt.title("Classification", fontsize=18)
      return
code_tokens: def dist_from_hyperplane_plot ( stats_output ) : if "dist_from_hyperplane_xval" in stats_output . columns : sns . factorplot ( "subject_id" , "dist_from_hyperplane_xval" , hue = "Y" , data = stats_output , kind = "point" , ) else : sns . factorplot ( "subject_id" , "dist_from_hyperplane_all" , hue = "Y" , data = stats_output , kind = "point" , ) plt . xlabel ( "Subject" , fontsize = 16 ) plt . ylabel ( "Distance from Hyperplane" , fontsize = 16 ) plt . title ( "Classification" , fontsize = 18 ) return
short_docstring: Plot SVM Classification Distance from Hyperplane
short_docstring_tokens: Plot SVM Classification Distance from Hyperplane
comment: """Plot SVM Classification Distance from Hyperplane
  
      Args:
          stats_output: a pandas file with prediction output
  
      Returns:
          fig: Will return a seaborn plot of distance from hyperplane
  
      """